0s autopkgtest [10:21:54]: starting date and time: 2026-02-06 10:21:54+0000 0s autopkgtest [10:21:54]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [10:21:54]: host juju-7f2275-prod-proposed-migration-environment-20; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.m1y1bsie/out --timeout-copy=6000 --needs-internet=try --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:jinja2 --apt-upgrade jupyter-notebook --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=jinja2/3.1.6-1build1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-cpu2-ram4-disk20-amd64 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-20@sto01-32.secgroup --name adt-resolute-amd64-jupyter-notebook-20260206-102153-juju-7f2275-prod-proposed-migration-environment-20-ee289786-6431-4315-9b52-af19146056b4 --image adt/ubuntu-resolute-amd64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-20 --net-id=net_prod-autopkgtest-workers-amd64 -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 4s Creating nova instance adt-resolute-amd64-jupyter-notebook-20260206-102153-juju-7f2275-prod-proposed-migration-environment-20-ee289786-6431-4315-9b52-af19146056b4 from image adt/ubuntu-resolute-amd64-server-20260204.img (UUID fedf54b4-458b-493e-8072-6425c19717b4)... 89s autopkgtest [10:23:23]: testbed dpkg architecture: amd64 90s autopkgtest [10:23:24]: testbed apt version: 3.1.14 90s autopkgtest [10:23:24]: @@@@@@@@@@@@@@@@@@@@ test bed setup 90s autopkgtest [10:23:24]: testbed release detected to be: None 91s autopkgtest [10:23:25]: updating testbed package index (apt update) 91s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 91s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 91s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 91s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 91s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [6396 B] 91s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1491 kB] 91s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [30.8 kB] 91s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [192 kB] 91s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 Packages [247 kB] 91s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/main i386 Packages [185 kB] 91s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 c-n-f Metadata [7520 B] 91s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/restricted i386 Packages [3692 B] 91s Get:13 http://ftpmaster.internal/ubuntu resolute-proposed/restricted amd64 Packages [44.8 kB] 91s Get:14 http://ftpmaster.internal/ubuntu resolute-proposed/restricted amd64 c-n-f Metadata [336 B] 91s Get:15 http://ftpmaster.internal/ubuntu resolute-proposed/universe amd64 Packages [1356 kB] 91s Get:16 http://ftpmaster.internal/ubuntu resolute-proposed/universe i386 Packages [519 kB] 91s Get:17 http://ftpmaster.internal/ubuntu resolute-proposed/universe amd64 c-n-f Metadata [37.6 kB] 91s Get:18 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse amd64 Packages [26.7 kB] 91s Get:19 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse i386 Packages [4320 B] 91s Get:20 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse amd64 c-n-f Metadata [1060 B] 92s Fetched 4277 kB in 1s (5468 kB/s) 93s Reading package lists... 93s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 93s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 93s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 93s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 94s Reading package lists... 94s Reading package lists... 94s Building dependency tree... 94s Reading state information... 94s Calculating upgrade... 95s The following packages will be upgraded: 95s amd64-microcode busybox-initramfs busybox-static dmsetup findutils less 95s libattr1 libdevmapper1.02.1 libdrm-amdgpu1 libdrm-common libdrm2 libgpm2 95s libkeyutils1 libmaxminddb0 libnpth0t64 libsensors-config libsensors5 mawk 95s patch pollinate python3-jinja2 python3-linkify-it python3-markdown-it 95s python3-referencing sed tar 95s 26 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 95s Need to get 3461 kB of archives. 95s After this operation, 270 kB disk space will be freed. 95s Get:1 http://ftpmaster.internal/ubuntu resolute/main amd64 findutils amd64 4.10.0-3build2 [307 kB] 95s Get:2 http://ftpmaster.internal/ubuntu resolute/main amd64 sed amd64 4.9-2build3 [195 kB] 95s Get:3 http://ftpmaster.internal/ubuntu resolute/main amd64 tar amd64 1.35+dfsg-3.1build2 [257 kB] 95s Get:4 http://ftpmaster.internal/ubuntu resolute/main amd64 libattr1 amd64 1:2.5.2-3build2 [11.4 kB] 95s Get:5 http://ftpmaster.internal/ubuntu resolute/main amd64 mawk amd64 1.3.4.20260129-1 [133 kB] 95s Get:6 http://ftpmaster.internal/ubuntu resolute/main amd64 libdevmapper1.02.1 amd64 2:1.02.205-2ubuntu3 [142 kB] 95s Get:7 http://ftpmaster.internal/ubuntu resolute/main amd64 dmsetup amd64 2:1.02.205-2ubuntu3 [79.4 kB] 95s Get:8 http://ftpmaster.internal/ubuntu resolute/main amd64 less amd64 668-1build1 [172 kB] 95s Get:9 http://ftpmaster.internal/ubuntu resolute/main amd64 libkeyutils1 amd64 1.6.3-6ubuntu3 [10.6 kB] 95s Get:10 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-linkify-it all 2.0.3-1ubuntu3 [19.4 kB] 95s Get:11 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-markdown-it all 3.0.0-3build1 [54.4 kB] 95s Get:12 http://ftpmaster.internal/ubuntu resolute/main amd64 busybox-static amd64 1:1.37.0-7ubuntu1 [1034 kB] 95s Get:13 http://ftpmaster.internal/ubuntu resolute/main amd64 libdrm-common all 2.4.131-1 [9774 B] 95s Get:14 http://ftpmaster.internal/ubuntu resolute/main amd64 libdrm2 amd64 2.4.131-1 [42.3 kB] 95s Get:15 http://ftpmaster.internal/ubuntu resolute/main amd64 libgpm2 amd64 1.20.7-12build1 [14.4 kB] 95s Get:16 http://ftpmaster.internal/ubuntu resolute/main amd64 libmaxminddb0 amd64 1.12.2-1build2 [18.9 kB] 95s Get:17 http://ftpmaster.internal/ubuntu resolute/main amd64 libsensors-config all 1:3.6.2-2build1 [6862 B] 95s Get:18 http://ftpmaster.internal/ubuntu resolute/main amd64 libsensors5 amd64 1:3.6.2-2build1 [28.9 kB] 95s Get:19 http://ftpmaster.internal/ubuntu resolute/main amd64 busybox-initramfs amd64 1:1.37.0-7ubuntu1 [191 kB] 95s Get:20 http://ftpmaster.internal/ubuntu resolute/main amd64 libdrm-amdgpu1 amd64 2.4.131-1 [23.2 kB] 95s Get:21 http://ftpmaster.internal/ubuntu resolute/main amd64 libnpth0t64 amd64 1.8-3build1 [9302 B] 95s Get:22 http://ftpmaster.internal/ubuntu resolute/main amd64 patch amd64 2.8-2build1 [95.7 kB] 95s Get:23 http://ftpmaster.internal/ubuntu resolute/main amd64 pollinate all 4.33-4ubuntu5 [14.0 kB] 95s Get:24 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3-jinja2 all 3.1.6-1build1 [109 kB] 95s Get:25 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-referencing all 0.36.2-1ubuntu2 [22.2 kB] 95s Get:26 http://ftpmaster.internal/ubuntu resolute/main amd64 amd64-microcode amd64 3.20251202.1ubuntu1 [459 kB] 95s dpkg-preconfigure: unable to re-open stdin: No such file or directory 95s Fetched 3461 kB in 0s (25.1 MB/s) 95s (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 ... 83957 files and directories currently installed.) 95s Preparing to unpack .../findutils_4.10.0-3build2_amd64.deb ... 95s Unpacking findutils (4.10.0-3build2) over (4.10.0-3build1) ... 95s Setting up findutils (4.10.0-3build2) ... 95s (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 ... 83957 files and directories currently installed.) 95s Preparing to unpack .../sed_4.9-2build3_amd64.deb ... 95s Unpacking sed (4.9-2build3) over (4.9-2build2) ... 95s Setting up sed (4.9-2build3) ... 95s (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 ... 83957 files and directories currently installed.) 95s Preparing to unpack .../tar_1.35+dfsg-3.1build2_amd64.deb ... 95s Unpacking tar (1.35+dfsg-3.1build2) over (1.35+dfsg-3.1build1) ... 95s Setting up tar (1.35+dfsg-3.1build2) ... 95s (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 ... 83957 files and directories currently installed.) 95s Preparing to unpack .../libattr1_1%3a2.5.2-3build2_amd64.deb ... 95s Unpacking libattr1:amd64 (1:2.5.2-3build2) over (1:2.5.2-3build1) ... 96s Setting up libattr1:amd64 (1:2.5.2-3build2) ... 96s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 83957 files and directories currently installed.) 96s Preparing to unpack .../00-mawk_1.3.4.20260129-1_amd64.deb ... 96s Unpacking mawk (1.3.4.20260129-1) over (1.3.4.20250131-2) ... 96s Preparing to unpack .../01-libdevmapper1.02.1_2%3a1.02.205-2ubuntu3_amd64.deb ... 96s Unpacking libdevmapper1.02.1:amd64 (2:1.02.205-2ubuntu3) over (2:1.02.205-2ubuntu2) ... 96s Preparing to unpack .../02-dmsetup_2%3a1.02.205-2ubuntu3_amd64.deb ... 96s Unpacking dmsetup (2:1.02.205-2ubuntu3) over (2:1.02.205-2ubuntu2) ... 96s Preparing to unpack .../03-less_668-1build1_amd64.deb ... 96s Unpacking less (668-1build1) over (668-1) ... 96s Preparing to unpack .../04-libkeyutils1_1.6.3-6ubuntu3_amd64.deb ... 96s Unpacking libkeyutils1:amd64 (1.6.3-6ubuntu3) over (1.6.3-6ubuntu2) ... 96s Preparing to unpack .../05-python3-linkify-it_2.0.3-1ubuntu3_all.deb ... 96s Unpacking python3-linkify-it (2.0.3-1ubuntu3) over (2.0.3-1ubuntu2) ... 96s Preparing to unpack .../06-python3-markdown-it_3.0.0-3build1_all.deb ... 96s Unpacking python3-markdown-it (3.0.0-3build1) over (3.0.0-3) ... 96s Preparing to unpack .../07-busybox-static_1%3a1.37.0-7ubuntu1_amd64.deb ... 96s Unpacking busybox-static (1:1.37.0-7ubuntu1) over (1:1.37.0-4ubuntu1) ... 96s Preparing to unpack .../08-libdrm-common_2.4.131-1_all.deb ... 96s Unpacking libdrm-common (2.4.131-1) over (2.4.129-1) ... 96s Preparing to unpack .../09-libdrm2_2.4.131-1_amd64.deb ... 96s Unpacking libdrm2:amd64 (2.4.131-1) over (2.4.129-1) ... 96s Preparing to unpack .../10-libgpm2_1.20.7-12build1_amd64.deb ... 96s Unpacking libgpm2:amd64 (1.20.7-12build1) over (1.20.7-12) ... 96s Preparing to unpack .../11-libmaxminddb0_1.12.2-1build2_amd64.deb ... 96s Unpacking libmaxminddb0:amd64 (1.12.2-1build2) over (1.12.2-1build1) ... 96s Preparing to unpack .../12-libsensors-config_1%3a3.6.2-2build1_all.deb ... 96s Unpacking libsensors-config (1:3.6.2-2build1) over (1:3.6.2-2) ... 96s Preparing to unpack .../13-libsensors5_1%3a3.6.2-2build1_amd64.deb ... 96s Unpacking libsensors5:amd64 (1:3.6.2-2build1) over (1:3.6.2-2) ... 96s Preparing to unpack .../14-busybox-initramfs_1%3a1.37.0-7ubuntu1_amd64.deb ... 96s Unpacking busybox-initramfs (1:1.37.0-7ubuntu1) over (1:1.37.0-4ubuntu1) ... 96s Preparing to unpack .../15-libdrm-amdgpu1_2.4.131-1_amd64.deb ... 96s Unpacking libdrm-amdgpu1:amd64 (2.4.131-1) over (2.4.129-1) ... 96s Preparing to unpack .../16-libnpth0t64_1.8-3build1_amd64.deb ... 96s Unpacking libnpth0t64:amd64 (1.8-3build1) over (1.8-3) ... 96s Preparing to unpack .../17-patch_2.8-2build1_amd64.deb ... 96s Unpacking patch (2.8-2build1) over (2.8-2) ... 96s Preparing to unpack .../18-pollinate_4.33-4ubuntu5_all.deb ... 96s Unpacking pollinate (4.33-4ubuntu5) over (4.33-4ubuntu4) ... 96s Preparing to unpack .../19-python3-jinja2_3.1.6-1build1_all.deb ... 97s Unpacking python3-jinja2 (3.1.6-1build1) over (3.1.6-1) ... 97s Preparing to unpack .../20-python3-referencing_0.36.2-1ubuntu2_all.deb ... 97s Unpacking python3-referencing (0.36.2-1ubuntu2) over (0.36.2-1ubuntu1) ... 97s Preparing to unpack .../21-amd64-microcode_3.20251202.1ubuntu1_amd64.deb ... 97s Unpacking amd64-microcode (3.20251202.1ubuntu1) over (3.20250708.1ubuntu1) ... 97s Setting up libnpth0t64:amd64 (1.8-3build1) ... 97s Setting up libkeyutils1:amd64 (1.6.3-6ubuntu3) ... 97s Setting up libgpm2:amd64 (1.20.7-12build1) ... 97s Setting up libmaxminddb0:amd64 (1.12.2-1build2) ... 97s Setting up libsensors-config (1:3.6.2-2build1) ... 97s Setting up less (668-1build1) ... 97s Setting up amd64-microcode (3.20251202.1ubuntu1) ... 97s amd64-microcode: microcode will be updated at next boot 97s Setting up python3-jinja2 (3.1.6-1build1) ... 97s Setting up pollinate (4.33-4ubuntu5) ... 107s Setting up busybox-static (1:1.37.0-7ubuntu1) ... 107s Setting up patch (2.8-2build1) ... 107s Setting up libsensors5:amd64 (1:3.6.2-2build1) ... 107s Setting up busybox-initramfs (1:1.37.0-7ubuntu1) ... 107s Setting up libdevmapper1.02.1:amd64 (2:1.02.205-2ubuntu3) ... 107s Setting up dmsetup (2:1.02.205-2ubuntu3) ... 107s Setting up python3-linkify-it (2.0.3-1ubuntu3) ... 107s Setting up mawk (1.3.4.20260129-1) ... 107s Setting up libdrm-common (2.4.131-1) ... 107s Setting up python3-referencing (0.36.2-1ubuntu2) ... 108s Setting up python3-markdown-it (3.0.0-3build1) ... 108s Setting up libdrm2:amd64 (2.4.131-1) ... 108s Setting up libdrm-amdgpu1:amd64 (2.4.131-1) ... 108s Processing triggers for libc-bin (2.42-2ubuntu4) ... 108s Processing triggers for man-db (2.13.1-1) ... 108s Processing triggers for install-info (7.2-5) ... 108s Processing triggers for initramfs-tools (0.150ubuntu7) ... 108s update-initramfs: Generating /boot/initrd.img-6.18.0-9-generic 114s autopkgtest [10:23:48]: upgrading testbed (apt dist-upgrade and autopurge) 114s Reading package lists... 114s Building dependency tree... 114s Reading state information... 114s Calculating upgrade... 114s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 114s Reading package lists... 115s Building dependency tree... 115s Reading state information... 115s Solving dependencies... 115s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 115s autopkgtest [10:23:49]: rebooting testbed after setup commands that affected boot 143s autopkgtest [10:24:17]: testbed running kernel: Linux 6.18.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 12 16:49:02 UTC 2026 145s autopkgtest [10:24:19]: @@@@@@@@@@@@@@@@@@@@ apt-source jupyter-notebook 152s Get:1 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (dsc) [3737 B] 152s Get:2 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (tar) [8501 kB] 152s Get:3 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (diff) [52.5 kB] 152s gpgv: Signature made Tue Apr 22 01:32:11 2025 UTC 152s gpgv: using RSA key 00F6164E9C2D21BAFBC47E0E58DAD120A6939167 152s gpgv: Can't check signature: No public key 152s dpkg-source: warning: cannot verify inline signature for ./jupyter-notebook_6.4.13-5ubuntu0.1.dsc: no acceptable signature found 152s autopkgtest [10:24:26]: testing package jupyter-notebook version 6.4.13-5ubuntu0.1 153s autopkgtest [10:24:27]: build not needed 154s autopkgtest [10:24:28]: test pytest: preparing testbed 154s Reading package lists... 154s Building dependency tree... 154s Reading state information... 154s Solving dependencies... 154s The following NEW packages will be installed: 154s fonts-font-awesome fonts-glyphicons-halflings fonts-lato fonts-mathjax gdb 154s jupyter-core jupyter-notebook libargon2-1 libbabeltrace1 libipt2 154s libjs-backbone libjs-bootstrap libjs-bootstrap-tour libjs-codemirror 154s libjs-es6-promise libjs-jed libjs-jquery libjs-jquery-typeahead 154s libjs-jquery-ui libjs-marked libjs-mathjax libjs-moment libjs-requirejs 154s libjs-requirejs-text libjs-text-encoding libjs-underscore libjs-xterm 154s libnorm1t64 libpgm-5.3-0t64 libpython3.14 libpython3.14-minimal 154s libpython3.14-stdlib libsodium23 libsource-highlight-common 154s libsource-highlight4t64 libzmq5 node-jed python-notebook-doc 154s python-tinycss2-common python3-all python3-argon2 154s python3-argon2-cffi-bindings python3-astroid python3-asttokens 154s python3-bleach python3-bs4 python3-cffi python3-comm python3-coverage 154s python3-debugpy python3-decorator python3-defusedxml python3-executing 154s python3-fastjsonschema python3-html5lib python3-iniconfig python3-ipykernel 154s python3-ipython python3-ipython-genutils python3-jedi python3-jupyter-client 154s python3-jupyter-core python3-jupyterlab-pygments python3-matplotlib-inline 154s python3-mistune python3-nbclient python3-nbconvert python3-nbformat 154s python3-nest-asyncio python3-notebook python3-pandocfilters python3-parso 154s python3-platformdirs python3-pluggy python3-ply python3-prometheus-client 154s python3-prompt-toolkit python3-psutil python3-pure-eval python3-pycparser 154s python3-pytest python3-requests-unixsocket python3-send2trash 154s python3-soupsieve python3-stack-data python3-terminado python3-tinycss2 154s python3-tornado python3-traitlets python3-typeshed python3-wcwidth 154s python3-webencodings python3-zmq python3.14 python3.14-minimal 154s sphinx-rtd-theme-common 154s 0 upgraded, 96 newly installed, 0 to remove and 0 not upgraded. 154s Need to get 41.4 MB of archives. 154s After this operation, 199 MB of additional disk space will be used. 154s Get:1 http://ftpmaster.internal/ubuntu resolute/main amd64 fonts-lato all 2.015-1build1 [2779 kB] 155s Get:2 http://ftpmaster.internal/ubuntu resolute/main amd64 libpython3.14-minimal amd64 3.14.2-1 [920 kB] 155s Get:3 http://ftpmaster.internal/ubuntu resolute/main amd64 python3.14-minimal amd64 3.14.2-1 [2563 kB] 155s Get:4 http://ftpmaster.internal/ubuntu resolute/main amd64 fonts-font-awesome all 5.0.10+really4.7.0~dfsg-4.1build1 [531 kB] 155s Get:5 http://ftpmaster.internal/ubuntu resolute/universe amd64 fonts-glyphicons-halflings all 1.009~3.4.1+dfsg-6 [119 kB] 155s Get:6 http://ftpmaster.internal/ubuntu resolute/main amd64 fonts-mathjax all 2.7.9+dfsg-1build1 [2283 kB] 156s Get:7 http://ftpmaster.internal/ubuntu resolute/main amd64 libbabeltrace1 amd64 1.5.11-5 [166 kB] 156s Get:8 http://ftpmaster.internal/ubuntu resolute/main amd64 libipt2 amd64 2.1.2-3 [49.2 kB] 156s Get:9 http://ftpmaster.internal/ubuntu resolute/main amd64 libpython3.14-stdlib amd64 3.14.2-1 [2398 kB] 156s Get:10 http://ftpmaster.internal/ubuntu resolute/main amd64 libpython3.14 amd64 3.14.2-1 [2568 kB] 156s Get:11 http://ftpmaster.internal/ubuntu resolute/main amd64 libsource-highlight-common all 3.1.9-4.3build2 [64.2 kB] 156s Get:12 http://ftpmaster.internal/ubuntu resolute/main amd64 libsource-highlight4t64 amd64 3.1.9-4.3build2 [273 kB] 156s Get:13 http://ftpmaster.internal/ubuntu resolute/main amd64 gdb amd64 17.1-2ubuntu1 [4173 kB] 157s Get:14 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-platformdirs all 4.5.1-1 [17.1 kB] 157s Get:15 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-traitlets all 5.14.3+really5.14.3-2 [71.7 kB] 157s Get:16 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-jupyter-core all 5.9.1-1 [28.9 kB] 157s Get:17 http://ftpmaster.internal/ubuntu resolute/universe amd64 jupyter-core all 5.9.1-1 [6938 B] 157s Get:18 http://ftpmaster.internal/ubuntu resolute/main amd64 libjs-underscore all 1.13.7~dfsg+~1.13.0-1 [86.4 kB] 157s Get:19 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-backbone all 1.4.1~dfsg+~1.4.15-3build1 [186 kB] 157s Get:20 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-bootstrap all 3.4.1+dfsg-6 [129 kB] 157s Get:21 http://ftpmaster.internal/ubuntu resolute/main amd64 libjs-jquery all 3.7.1+dfsg+~3.5.33-1build1 [321 kB] 157s Get:22 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-bootstrap-tour all 0.12.0+dfsg-6 [21.6 kB] 157s Get:23 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-codemirror all 5.65.20+~cs5.83.25-1 [710 kB] 157s Get:24 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-es6-promise all 4.2.8-12 [14.1 kB] 157s Get:25 http://ftpmaster.internal/ubuntu resolute/universe amd64 node-jed all 1.1.1-4 [15.2 kB] 157s Get:26 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-jed all 1.1.1-4 [2584 B] 157s Get:27 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-jquery-typeahead all 2.11.0+dfsg1-3build1 [48.3 kB] 157s Get:28 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-jquery-ui all 1.13.2+dfsg-1build1 [251 kB] 158s Get:29 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-marked all 4.2.3+ds+~4.0.7-4 [36.2 kB] 158s Get:30 http://ftpmaster.internal/ubuntu resolute/main amd64 libjs-mathjax all 2.7.9+dfsg-1build1 [6017 kB] 159s Get:31 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-moment all 2.29.4+ds-1 [147 kB] 159s Get:32 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-requirejs all 2.3.8+ds+~2.1.37-1 [201 kB] 159s Get:33 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-requirejs-text all 2.0.12-2 [9732 B] 159s Get:34 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-text-encoding all 0.7.0-5 [140 kB] 159s Get:35 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-xterm all 5.3.0-4 [475 kB] 159s Get:36 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-tornado amd64 6.5.4-0.1 [306 kB] 159s Get:37 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-terminado all 0.18.1-1 [13.2 kB] 159s Get:38 http://ftpmaster.internal/ubuntu resolute/main amd64 libargon2-1 amd64 0~20190702+dfsg-5 [21.3 kB] 159s Get:39 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-ply all 3.11-10 [45.9 kB] 159s Get:40 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-pycparser all 2.23-2 [77.0 kB] 159s Get:41 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-cffi all 2.0.0-2 [75.5 kB] 159s Get:42 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-argon2-cffi-bindings amd64 25.1.0-2 [15.3 kB] 159s Get:43 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-argon2 amd64 25.1.0-2 [13.8 kB] 159s Get:44 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-comm all 0.2.1-1build1 [7148 B] 159s Get:45 http://ftpmaster.internal/ubuntu resolute/main amd64 python3.14 amd64 3.14.2-1 [816 kB] 159s Get:46 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-coverage amd64 7.8.2+dfsg1-1ubuntu1 [159 kB] 159s Get:47 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-debugpy amd64 1.8.19+ds-1ubuntu1 [942 kB] 159s Get:48 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-decorator all 5.2.1-2 [28.1 kB] 159s Get:49 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-parso all 0.8.5-1 [68.0 kB] 159s Get:50 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-typeshed all 0.0~git20241223.ea91db2-4 [1554 kB] 159s Get:51 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-jedi all 0.19.1+ds1-1build1 [694 kB] 160s Get:52 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-matplotlib-inline all 0.2.1-1 [9462 B] 160s Get:53 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-wcwidth all 0.2.14+dfsg1-1build1 [26.5 kB] 160s Get:54 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-prompt-toolkit all 3.0.52-2 [258 kB] 160s Get:55 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-astroid all 4.0.2-1ubuntu1 [172 kB] 160s Get:56 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-asttokens all 3.0.1-1 [20.7 kB] 160s Get:57 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-executing all 2.2.1-0.1 [26.2 kB] 160s Get:58 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pure-eval all 0.2.3-1 [11.4 kB] 160s Get:59 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-stack-data all 0.6.3-3 [22.2 kB] 160s Get:60 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-ipython all 8.35.0-2 [575 kB] 160s Get:61 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-psutil amd64 7.1.0-1ubuntu1 [191 kB] 160s Get:62 http://ftpmaster.internal/ubuntu resolute/universe amd64 libnorm1t64 amd64 1.5.9+dfsg-4 [158 kB] 160s Get:63 http://ftpmaster.internal/ubuntu resolute/universe amd64 libpgm-5.3-0t64 amd64 5.3.128~dfsg-2.1build2 [168 kB] 160s Get:64 http://ftpmaster.internal/ubuntu resolute/main amd64 libsodium23 amd64 1.0.18-2 [165 kB] 160s Get:65 http://ftpmaster.internal/ubuntu resolute/universe amd64 libzmq5 amd64 4.3.5-1build3 [262 kB] 160s Get:66 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-zmq amd64 27.1.0-1 [234 kB] 160s Get:67 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-jupyter-client all 8.7.0-1 [78.5 kB] 160s Get:68 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-nest-asyncio all 1.6.0-1 [6686 B] 160s Get:69 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-ipykernel all 6.30.1-1 [82.8 kB] 160s Get:70 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-ipython-genutils all 0.2.0-7 [22.0 kB] 160s Get:71 http://ftpmaster.internal/ubuntu resolute/universe amd64 python-tinycss2-common all 1.5.1-1 [47.3 kB] 160s Get:72 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-webencodings all 0.5.1-5build1 [11.7 kB] 160s Get:73 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-tinycss2 all 1.5.1-1 [23.3 kB] 160s Get:74 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-html5lib all 1.2-3 [90.6 kB] 160s Get:75 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-bleach all 6.3.0-1 [44.2 kB] 160s Get:76 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-soupsieve all 2.8.3-1 [34.0 kB] 160s Get:77 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-bs4 all 4.14.3-2build1 [84.8 kB] 160s Get:78 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-defusedxml all 0.7.1-3build1 [42.4 kB] 160s Get:79 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-jupyterlab-pygments all 0.2.2-3build1 [6188 B] 160s Get:80 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-mistune all 3.1.4-1 [35.0 kB] 160s Get:81 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-fastjsonschema all 2.21.1-1 [20.4 kB] 160s Get:82 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-nbformat all 5.10.4-1 [39.2 kB] 160s Get:83 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-nbclient all 0.10.4-1 [22.6 kB] 160s Get:84 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pandocfilters all 1.5.1-1 [23.6 kB] 160s Get:85 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-nbconvert all 7.16.6-1 [140 kB] 160s Get:86 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-prometheus-client all 0.21.1+ds1-1build1 [46.0 kB] 160s Get:87 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-send2trash all 1.8.3-1 [14.6 kB] 160s Get:88 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-notebook all 6.4.13-5ubuntu0.1 [1624 kB] 160s Get:89 http://ftpmaster.internal/ubuntu resolute/universe amd64 jupyter-notebook all 6.4.13-5ubuntu0.1 [10.4 kB] 160s Get:90 http://ftpmaster.internal/ubuntu resolute/main amd64 sphinx-rtd-theme-common all 3.0.2+dfsg-3 [1013 kB] 160s Get:91 http://ftpmaster.internal/ubuntu resolute/universe amd64 python-notebook-doc all 6.4.13-5ubuntu0.1 [2545 kB] 160s Get:92 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-all amd64 3.13.9-3 [890 B] 160s Get:93 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-iniconfig all 2.1.0-2 [6962 B] 160s Get:94 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pluggy all 1.6.0-2 [21.1 kB] 160s Get:95 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pytest all 9.0.2-2 [277 kB] 160s Get:96 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-requests-unixsocket all 1.0.1-1 [8620 B] 160s Fetched 41.4 MB in 6s (7199 kB/s) 160s Selecting previously unselected package fonts-lato. 161s (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 ... 83962 files and directories currently installed.) 161s Preparing to unpack .../00-fonts-lato_2.015-1build1_all.deb ... 161s Unpacking fonts-lato (2.015-1build1) ... 161s Selecting previously unselected package libpython3.14-minimal:amd64. 161s Preparing to unpack .../01-libpython3.14-minimal_3.14.2-1_amd64.deb ... 161s Unpacking libpython3.14-minimal:amd64 (3.14.2-1) ... 161s Selecting previously unselected package python3.14-minimal. 161s Preparing to unpack .../02-python3.14-minimal_3.14.2-1_amd64.deb ... 161s Unpacking python3.14-minimal (3.14.2-1) ... 161s Selecting previously unselected package fonts-font-awesome. 161s Preparing to unpack .../03-fonts-font-awesome_5.0.10+really4.7.0~dfsg-4.1build1_all.deb ... 161s Unpacking fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1build1) ... 161s Selecting previously unselected package fonts-glyphicons-halflings. 161s Preparing to unpack .../04-fonts-glyphicons-halflings_1.009~3.4.1+dfsg-6_all.deb ... 161s Unpacking fonts-glyphicons-halflings (1.009~3.4.1+dfsg-6) ... 161s Selecting previously unselected package fonts-mathjax. 161s Preparing to unpack .../05-fonts-mathjax_2.7.9+dfsg-1build1_all.deb ... 161s Unpacking fonts-mathjax (2.7.9+dfsg-1build1) ... 161s Selecting previously unselected package libbabeltrace1:amd64. 161s Preparing to unpack .../06-libbabeltrace1_1.5.11-5_amd64.deb ... 161s Unpacking libbabeltrace1:amd64 (1.5.11-5) ... 161s Selecting previously unselected package libipt2. 161s Preparing to unpack .../07-libipt2_2.1.2-3_amd64.deb ... 161s Unpacking libipt2 (2.1.2-3) ... 161s Selecting previously unselected package libpython3.14-stdlib:amd64. 161s Preparing to unpack .../08-libpython3.14-stdlib_3.14.2-1_amd64.deb ... 161s Unpacking libpython3.14-stdlib:amd64 (3.14.2-1) ... 161s Selecting previously unselected package libpython3.14:amd64. 161s Preparing to unpack .../09-libpython3.14_3.14.2-1_amd64.deb ... 161s Unpacking libpython3.14:amd64 (3.14.2-1) ... 161s Selecting previously unselected package libsource-highlight-common. 161s Preparing to unpack .../10-libsource-highlight-common_3.1.9-4.3build2_all.deb ... 161s Unpacking libsource-highlight-common (3.1.9-4.3build2) ... 161s Selecting previously unselected package libsource-highlight4t64:amd64. 161s Preparing to unpack .../11-libsource-highlight4t64_3.1.9-4.3build2_amd64.deb ... 161s Unpacking libsource-highlight4t64:amd64 (3.1.9-4.3build2) ... 161s Selecting previously unselected package gdb. 161s Preparing to unpack .../12-gdb_17.1-2ubuntu1_amd64.deb ... 161s Unpacking gdb (17.1-2ubuntu1) ... 161s Selecting previously unselected package python3-platformdirs. 161s Preparing to unpack .../13-python3-platformdirs_4.5.1-1_all.deb ... 161s Unpacking python3-platformdirs (4.5.1-1) ... 161s Selecting previously unselected package python3-traitlets. 161s Preparing to unpack .../14-python3-traitlets_5.14.3+really5.14.3-2_all.deb ... 161s Unpacking python3-traitlets (5.14.3+really5.14.3-2) ... 161s Selecting previously unselected package python3-jupyter-core. 161s Preparing to unpack .../15-python3-jupyter-core_5.9.1-1_all.deb ... 161s Unpacking python3-jupyter-core (5.9.1-1) ... 161s Selecting previously unselected package jupyter-core. 161s Preparing to unpack .../16-jupyter-core_5.9.1-1_all.deb ... 161s Unpacking jupyter-core (5.9.1-1) ... 161s Selecting previously unselected package libjs-underscore. 161s Preparing to unpack .../17-libjs-underscore_1.13.7~dfsg+~1.13.0-1_all.deb ... 161s Unpacking libjs-underscore (1.13.7~dfsg+~1.13.0-1) ... 161s Selecting previously unselected package libjs-backbone. 161s Preparing to unpack .../18-libjs-backbone_1.4.1~dfsg+~1.4.15-3build1_all.deb ... 161s Unpacking libjs-backbone (1.4.1~dfsg+~1.4.15-3build1) ... 161s Selecting previously unselected package libjs-bootstrap. 161s Preparing to unpack .../19-libjs-bootstrap_3.4.1+dfsg-6_all.deb ... 161s Unpacking libjs-bootstrap (3.4.1+dfsg-6) ... 161s Selecting previously unselected package libjs-jquery. 161s Preparing to unpack .../20-libjs-jquery_3.7.1+dfsg+~3.5.33-1build1_all.deb ... 161s Unpacking libjs-jquery (3.7.1+dfsg+~3.5.33-1build1) ... 161s Selecting previously unselected package libjs-bootstrap-tour. 161s Preparing to unpack .../21-libjs-bootstrap-tour_0.12.0+dfsg-6_all.deb ... 161s Unpacking libjs-bootstrap-tour (0.12.0+dfsg-6) ... 161s Selecting previously unselected package libjs-codemirror. 161s Preparing to unpack .../22-libjs-codemirror_5.65.20+~cs5.83.25-1_all.deb ... 161s Unpacking libjs-codemirror (5.65.20+~cs5.83.25-1) ... 161s Selecting previously unselected package libjs-es6-promise. 161s Preparing to unpack .../23-libjs-es6-promise_4.2.8-12_all.deb ... 161s Unpacking libjs-es6-promise (4.2.8-12) ... 161s Selecting previously unselected package node-jed. 161s Preparing to unpack .../24-node-jed_1.1.1-4_all.deb ... 161s Unpacking node-jed (1.1.1-4) ... 161s Selecting previously unselected package libjs-jed. 161s Preparing to unpack .../25-libjs-jed_1.1.1-4_all.deb ... 161s Unpacking libjs-jed (1.1.1-4) ... 161s Selecting previously unselected package libjs-jquery-typeahead. 161s Preparing to unpack .../26-libjs-jquery-typeahead_2.11.0+dfsg1-3build1_all.deb ... 161s Unpacking libjs-jquery-typeahead (2.11.0+dfsg1-3build1) ... 161s Selecting previously unselected package libjs-jquery-ui. 161s Preparing to unpack .../27-libjs-jquery-ui_1.13.2+dfsg-1build1_all.deb ... 161s Unpacking libjs-jquery-ui (1.13.2+dfsg-1build1) ... 161s Selecting previously unselected package libjs-marked. 161s Preparing to unpack .../28-libjs-marked_4.2.3+ds+~4.0.7-4_all.deb ... 161s Unpacking libjs-marked (4.2.3+ds+~4.0.7-4) ... 161s Selecting previously unselected package libjs-mathjax. 161s Preparing to unpack .../29-libjs-mathjax_2.7.9+dfsg-1build1_all.deb ... 161s Unpacking libjs-mathjax (2.7.9+dfsg-1build1) ... 161s Selecting previously unselected package libjs-moment. 161s Preparing to unpack .../30-libjs-moment_2.29.4+ds-1_all.deb ... 161s Unpacking libjs-moment (2.29.4+ds-1) ... 161s Selecting previously unselected package libjs-requirejs. 161s Preparing to unpack .../31-libjs-requirejs_2.3.8+ds+~2.1.37-1_all.deb ... 161s Unpacking libjs-requirejs (2.3.8+ds+~2.1.37-1) ... 161s Selecting previously unselected package libjs-requirejs-text. 162s Preparing to unpack .../32-libjs-requirejs-text_2.0.12-2_all.deb ... 162s Unpacking libjs-requirejs-text (2.0.12-2) ... 162s Selecting previously unselected package libjs-text-encoding. 162s Preparing to unpack .../33-libjs-text-encoding_0.7.0-5_all.deb ... 162s Unpacking libjs-text-encoding (0.7.0-5) ... 162s Selecting previously unselected package libjs-xterm. 162s Preparing to unpack .../34-libjs-xterm_5.3.0-4_all.deb ... 162s Unpacking libjs-xterm (5.3.0-4) ... 162s Selecting previously unselected package python3-tornado. 162s Preparing to unpack .../35-python3-tornado_6.5.4-0.1_amd64.deb ... 162s Unpacking python3-tornado (6.5.4-0.1) ... 162s Selecting previously unselected package python3-terminado. 162s Preparing to unpack .../36-python3-terminado_0.18.1-1_all.deb ... 162s Unpacking python3-terminado (0.18.1-1) ... 162s Selecting previously unselected package libargon2-1:amd64. 162s Preparing to unpack .../37-libargon2-1_0~20190702+dfsg-5_amd64.deb ... 162s Unpacking libargon2-1:amd64 (0~20190702+dfsg-5) ... 162s Selecting previously unselected package python3-ply. 162s Preparing to unpack .../38-python3-ply_3.11-10_all.deb ... 162s Unpacking python3-ply (3.11-10) ... 162s Selecting previously unselected package python3-pycparser. 162s Preparing to unpack .../39-python3-pycparser_2.23-2_all.deb ... 162s Unpacking python3-pycparser (2.23-2) ... 162s Selecting previously unselected package python3-cffi. 162s Preparing to unpack .../40-python3-cffi_2.0.0-2_all.deb ... 162s Unpacking python3-cffi (2.0.0-2) ... 162s Selecting previously unselected package python3-argon2-cffi-bindings. 162s Preparing to unpack .../41-python3-argon2-cffi-bindings_25.1.0-2_amd64.deb ... 162s Unpacking python3-argon2-cffi-bindings (25.1.0-2) ... 162s Selecting previously unselected package python3-argon2. 162s Preparing to unpack .../42-python3-argon2_25.1.0-2_amd64.deb ... 162s Unpacking python3-argon2 (25.1.0-2) ... 162s Selecting previously unselected package python3-comm. 162s Preparing to unpack .../43-python3-comm_0.2.1-1build1_all.deb ... 162s Unpacking python3-comm (0.2.1-1build1) ... 162s Selecting previously unselected package python3.14. 162s Preparing to unpack .../44-python3.14_3.14.2-1_amd64.deb ... 162s Unpacking python3.14 (3.14.2-1) ... 162s Selecting previously unselected package python3-coverage. 162s Preparing to unpack .../45-python3-coverage_7.8.2+dfsg1-1ubuntu1_amd64.deb ... 162s Unpacking python3-coverage (7.8.2+dfsg1-1ubuntu1) ... 162s Selecting previously unselected package python3-debugpy. 162s Preparing to unpack .../46-python3-debugpy_1.8.19+ds-1ubuntu1_amd64.deb ... 162s Unpacking python3-debugpy (1.8.19+ds-1ubuntu1) ... 162s Selecting previously unselected package python3-decorator. 162s Preparing to unpack .../47-python3-decorator_5.2.1-2_all.deb ... 162s Unpacking python3-decorator (5.2.1-2) ... 162s Selecting previously unselected package python3-parso. 162s Preparing to unpack .../48-python3-parso_0.8.5-1_all.deb ... 162s Unpacking python3-parso (0.8.5-1) ... 162s Selecting previously unselected package python3-typeshed. 162s Preparing to unpack .../49-python3-typeshed_0.0~git20241223.ea91db2-4_all.deb ... 162s Unpacking python3-typeshed (0.0~git20241223.ea91db2-4) ... 162s Selecting previously unselected package python3-jedi. 162s Preparing to unpack .../50-python3-jedi_0.19.1+ds1-1build1_all.deb ... 162s Unpacking python3-jedi (0.19.1+ds1-1build1) ... 162s Selecting previously unselected package python3-matplotlib-inline. 162s Preparing to unpack .../51-python3-matplotlib-inline_0.2.1-1_all.deb ... 162s Unpacking python3-matplotlib-inline (0.2.1-1) ... 162s Selecting previously unselected package python3-wcwidth. 162s Preparing to unpack .../52-python3-wcwidth_0.2.14+dfsg1-1build1_all.deb ... 162s Unpacking python3-wcwidth (0.2.14+dfsg1-1build1) ... 162s Selecting previously unselected package python3-prompt-toolkit. 162s Preparing to unpack .../53-python3-prompt-toolkit_3.0.52-2_all.deb ... 162s Unpacking python3-prompt-toolkit (3.0.52-2) ... 162s Selecting previously unselected package python3-astroid. 162s Preparing to unpack .../54-python3-astroid_4.0.2-1ubuntu1_all.deb ... 162s Unpacking python3-astroid (4.0.2-1ubuntu1) ... 162s Selecting previously unselected package python3-asttokens. 162s Preparing to unpack .../55-python3-asttokens_3.0.1-1_all.deb ... 162s Unpacking python3-asttokens (3.0.1-1) ... 162s Selecting previously unselected package python3-executing. 162s Preparing to unpack .../56-python3-executing_2.2.1-0.1_all.deb ... 162s Unpacking python3-executing (2.2.1-0.1) ... 162s Selecting previously unselected package python3-pure-eval. 162s Preparing to unpack .../57-python3-pure-eval_0.2.3-1_all.deb ... 162s Unpacking python3-pure-eval (0.2.3-1) ... 162s Selecting previously unselected package python3-stack-data. 162s Preparing to unpack .../58-python3-stack-data_0.6.3-3_all.deb ... 162s Unpacking python3-stack-data (0.6.3-3) ... 162s Selecting previously unselected package python3-ipython. 162s Preparing to unpack .../59-python3-ipython_8.35.0-2_all.deb ... 162s Unpacking python3-ipython (8.35.0-2) ... 162s Selecting previously unselected package python3-psutil. 162s Preparing to unpack .../60-python3-psutil_7.1.0-1ubuntu1_amd64.deb ... 162s Unpacking python3-psutil (7.1.0-1ubuntu1) ... 162s Selecting previously unselected package libnorm1t64:amd64. 162s Preparing to unpack .../61-libnorm1t64_1.5.9+dfsg-4_amd64.deb ... 162s Unpacking libnorm1t64:amd64 (1.5.9+dfsg-4) ... 162s Selecting previously unselected package libpgm-5.3-0t64:amd64. 162s Preparing to unpack .../62-libpgm-5.3-0t64_5.3.128~dfsg-2.1build2_amd64.deb ... 162s Unpacking libpgm-5.3-0t64:amd64 (5.3.128~dfsg-2.1build2) ... 162s Selecting previously unselected package libsodium23:amd64. 162s Preparing to unpack .../63-libsodium23_1.0.18-2_amd64.deb ... 162s Unpacking libsodium23:amd64 (1.0.18-2) ... 162s Selecting previously unselected package libzmq5:amd64. 162s Preparing to unpack .../64-libzmq5_4.3.5-1build3_amd64.deb ... 162s Unpacking libzmq5:amd64 (4.3.5-1build3) ... 162s Selecting previously unselected package python3-zmq. 162s Preparing to unpack .../65-python3-zmq_27.1.0-1_amd64.deb ... 162s Unpacking python3-zmq (27.1.0-1) ... 162s Selecting previously unselected package python3-jupyter-client. 162s Preparing to unpack .../66-python3-jupyter-client_8.7.0-1_all.deb ... 162s Unpacking python3-jupyter-client (8.7.0-1) ... 162s Selecting previously unselected package python3-nest-asyncio. 162s Preparing to unpack .../67-python3-nest-asyncio_1.6.0-1_all.deb ... 162s Unpacking python3-nest-asyncio (1.6.0-1) ... 162s Selecting previously unselected package python3-ipykernel. 162s Preparing to unpack .../68-python3-ipykernel_6.30.1-1_all.deb ... 162s Unpacking python3-ipykernel (6.30.1-1) ... 162s Selecting previously unselected package python3-ipython-genutils. 162s Preparing to unpack .../69-python3-ipython-genutils_0.2.0-7_all.deb ... 162s Unpacking python3-ipython-genutils (0.2.0-7) ... 162s Selecting previously unselected package python-tinycss2-common. 162s Preparing to unpack .../70-python-tinycss2-common_1.5.1-1_all.deb ... 162s Unpacking python-tinycss2-common (1.5.1-1) ... 162s Selecting previously unselected package python3-webencodings. 162s Preparing to unpack .../71-python3-webencodings_0.5.1-5build1_all.deb ... 162s Unpacking python3-webencodings (0.5.1-5build1) ... 162s Selecting previously unselected package python3-tinycss2. 162s Preparing to unpack .../72-python3-tinycss2_1.5.1-1_all.deb ... 162s Unpacking python3-tinycss2 (1.5.1-1) ... 162s Selecting previously unselected package python3-html5lib. 162s Preparing to unpack .../73-python3-html5lib_1.2-3_all.deb ... 162s Unpacking python3-html5lib (1.2-3) ... 162s Selecting previously unselected package python3-bleach. 162s Preparing to unpack .../74-python3-bleach_6.3.0-1_all.deb ... 162s Unpacking python3-bleach (6.3.0-1) ... 162s Selecting previously unselected package python3-soupsieve. 162s Preparing to unpack .../75-python3-soupsieve_2.8.3-1_all.deb ... 162s Unpacking python3-soupsieve (2.8.3-1) ... 162s Selecting previously unselected package python3-bs4. 162s Preparing to unpack .../76-python3-bs4_4.14.3-2build1_all.deb ... 162s Unpacking python3-bs4 (4.14.3-2build1) ... 162s Selecting previously unselected package python3-defusedxml. 162s Preparing to unpack .../77-python3-defusedxml_0.7.1-3build1_all.deb ... 162s Unpacking python3-defusedxml (0.7.1-3build1) ... 162s Selecting previously unselected package python3-jupyterlab-pygments. 162s Preparing to unpack .../78-python3-jupyterlab-pygments_0.2.2-3build1_all.deb ... 162s Unpacking python3-jupyterlab-pygments (0.2.2-3build1) ... 162s Selecting previously unselected package python3-mistune. 162s Preparing to unpack .../79-python3-mistune_3.1.4-1_all.deb ... 162s Unpacking python3-mistune (3.1.4-1) ... 162s Selecting previously unselected package python3-fastjsonschema. 162s Preparing to unpack .../80-python3-fastjsonschema_2.21.1-1_all.deb ... 162s Unpacking python3-fastjsonschema (2.21.1-1) ... 162s Selecting previously unselected package python3-nbformat. 162s Preparing to unpack .../81-python3-nbformat_5.10.4-1_all.deb ... 162s Unpacking python3-nbformat (5.10.4-1) ... 162s Selecting previously unselected package python3-nbclient. 162s Preparing to unpack .../82-python3-nbclient_0.10.4-1_all.deb ... 162s Unpacking python3-nbclient (0.10.4-1) ... 162s Selecting previously unselected package python3-pandocfilters. 162s Preparing to unpack .../83-python3-pandocfilters_1.5.1-1_all.deb ... 162s Unpacking python3-pandocfilters (1.5.1-1) ... 162s Selecting previously unselected package python3-nbconvert. 162s Preparing to unpack .../84-python3-nbconvert_7.16.6-1_all.deb ... 162s Unpacking python3-nbconvert (7.16.6-1) ... 162s Selecting previously unselected package python3-prometheus-client. 162s Preparing to unpack .../85-python3-prometheus-client_0.21.1+ds1-1build1_all.deb ... 162s Unpacking python3-prometheus-client (0.21.1+ds1-1build1) ... 162s Selecting previously unselected package python3-send2trash. 162s Preparing to unpack .../86-python3-send2trash_1.8.3-1_all.deb ... 162s Unpacking python3-send2trash (1.8.3-1) ... 163s Selecting previously unselected package python3-notebook. 163s Preparing to unpack .../87-python3-notebook_6.4.13-5ubuntu0.1_all.deb ... 163s Unpacking python3-notebook (6.4.13-5ubuntu0.1) ... 163s Selecting previously unselected package jupyter-notebook. 163s Preparing to unpack .../88-jupyter-notebook_6.4.13-5ubuntu0.1_all.deb ... 163s Unpacking jupyter-notebook (6.4.13-5ubuntu0.1) ... 163s Selecting previously unselected package sphinx-rtd-theme-common. 163s Preparing to unpack .../89-sphinx-rtd-theme-common_3.0.2+dfsg-3_all.deb ... 163s Unpacking sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 163s Selecting previously unselected package python-notebook-doc. 163s Preparing to unpack .../90-python-notebook-doc_6.4.13-5ubuntu0.1_all.deb ... 163s Unpacking python-notebook-doc (6.4.13-5ubuntu0.1) ... 163s Selecting previously unselected package python3-all. 163s Preparing to unpack .../91-python3-all_3.13.9-3_amd64.deb ... 163s Unpacking python3-all (3.13.9-3) ... 163s Selecting previously unselected package python3-iniconfig. 163s Preparing to unpack .../92-python3-iniconfig_2.1.0-2_all.deb ... 163s Unpacking python3-iniconfig (2.1.0-2) ... 163s Selecting previously unselected package python3-pluggy. 163s Preparing to unpack .../93-python3-pluggy_1.6.0-2_all.deb ... 163s Unpacking python3-pluggy (1.6.0-2) ... 163s Selecting previously unselected package python3-pytest. 163s Preparing to unpack .../94-python3-pytest_9.0.2-2_all.deb ... 163s Unpacking python3-pytest (9.0.2-2) ... 163s Selecting previously unselected package python3-requests-unixsocket. 163s Preparing to unpack .../95-python3-requests-unixsocket_1.0.1-1_all.deb ... 163s Unpacking python3-requests-unixsocket (1.0.1-1) ... 163s Setting up libjs-jquery-typeahead (2.11.0+dfsg1-3build1) ... 163s Setting up python3-iniconfig (2.1.0-2) ... 163s Setting up python3-tornado (6.5.4-0.1) ... 163s Setting up libnorm1t64:amd64 (1.5.9+dfsg-4) ... 163s Setting up python3-pure-eval (0.2.3-1) ... 164s Setting up python3-send2trash (1.8.3-1) ... 164s Setting up fonts-lato (2.015-1build1) ... 164s Setting up fonts-mathjax (2.7.9+dfsg-1build1) ... 164s Setting up libsodium23:amd64 (1.0.18-2) ... 164s Setting up libjs-mathjax (2.7.9+dfsg-1build1) ... 164s Setting up libjs-requirejs-text (2.0.12-2) ... 164s Setting up python3-parso (0.8.5-1) ... 164s Setting up python3-defusedxml (0.7.1-3build1) ... 164s Setting up python3-ipython-genutils (0.2.0-7) ... 164s Setting up fonts-glyphicons-halflings (1.009~3.4.1+dfsg-6) ... 164s Setting up libargon2-1:amd64 (0~20190702+dfsg-5) ... 164s Setting up python3-ply (3.11-10) ... 164s Setting up libpython3.14-minimal:amd64 (3.14.2-1) ... 164s Setting up libjs-moment (2.29.4+ds-1) ... 164s Setting up python3-pandocfilters (1.5.1-1) ... 164s Setting up libjs-requirejs (2.3.8+ds+~2.1.37-1) ... 164s Setting up libjs-es6-promise (4.2.8-12) ... 164s Setting up libjs-text-encoding (0.7.0-5) ... 164s Setting up python3-webencodings (0.5.1-5build1) ... 164s Setting up python3-platformdirs (4.5.1-1) ... 165s Setting up python3-psutil (7.1.0-1ubuntu1) ... 165s Setting up libsource-highlight-common (3.1.9-4.3build2) ... 165s Setting up python3-pycparser (2.23-2) ... 165s Setting up python3-requests-unixsocket (1.0.1-1) ... 165s Setting up python3-jupyterlab-pygments (0.2.2-3build1) ... 165s Setting up libpgm-5.3-0t64:amd64 (5.3.128~dfsg-2.1build2) ... 165s Setting up python3-decorator (5.2.1-2) ... 165s Setting up python3-wcwidth (0.2.14+dfsg1-1build1) ... 166s Setting up node-jed (1.1.1-4) ... 166s Setting up python3-typeshed (0.0~git20241223.ea91db2-4) ... 166s Setting up libjs-xterm (5.3.0-4) ... 166s Setting up python3-nest-asyncio (1.6.0-1) ... 166s Setting up libjs-codemirror (5.65.20+~cs5.83.25-1) ... 166s Setting up libjs-jed (1.1.1-4) ... 166s Setting up libipt2 (2.1.2-3) ... 166s Setting up python3-html5lib (1.2-3) ... 166s Setting up libbabeltrace1:amd64 (1.5.11-5) ... 166s Setting up python3-pluggy (1.6.0-2) ... 166s Setting up python3-fastjsonschema (2.21.1-1) ... 166s Setting up python3-terminado (0.18.1-1) ... 166s Setting up python3-astroid (4.0.2-1ubuntu1) ... 167s Setting up python3-traitlets (5.14.3+really5.14.3-2) ... 167s Setting up python-tinycss2-common (1.5.1-1) ... 167s Setting up libjs-jquery (3.7.1+dfsg+~3.5.33-1build1) ... 167s Setting up python3-mistune (3.1.4-1) ... 167s Setting up python3-soupsieve (2.8.3-1) ... 167s Setting up fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1build1) ... 167s Setting up sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 167s Setting up python3.14-minimal (3.14.2-1) ... 168s Setting up python3-jupyter-core (5.9.1-1) ... 168s Setting up libjs-bootstrap (3.4.1+dfsg-6) ... 168s Setting up libjs-underscore (1.13.7~dfsg+~1.13.0-1) ... 168s Setting up libjs-marked (4.2.3+ds+~4.0.7-4) ... 168s Setting up python3-prompt-toolkit (3.0.52-2) ... 168s Setting up python3-tinycss2 (1.5.1-1) ... 168s Setting up libzmq5:amd64 (4.3.5-1build3) ... 168s Setting up python3-jedi (0.19.1+ds1-1build1) ... 169s Setting up libpython3.14-stdlib:amd64 (3.14.2-1) ... 169s Setting up python3-asttokens (3.0.1-1) ... 169s Setting up python3-pytest (9.0.2-2) ... 169s Setting up python3-cffi (2.0.0-2) ... 170s Setting up libjs-bootstrap-tour (0.12.0+dfsg-6) ... 170s Setting up libjs-backbone (1.4.1~dfsg+~1.4.15-3build1) ... 170s Setting up libsource-highlight4t64:amd64 (3.1.9-4.3build2) ... 170s Setting up python3-nbformat (5.10.4-1) ... 170s Setting up python-notebook-doc (6.4.13-5ubuntu0.1) ... 170s Setting up python3-bs4 (4.14.3-2build1) ... 170s Setting up python3-bleach (6.3.0-1) ... 170s Setting up python3-matplotlib-inline (0.2.1-1) ... 170s Setting up python3-comm (0.2.1-1build1) ... 170s Setting up python3-prometheus-client (0.21.1+ds1-1build1) ... 170s Setting up libjs-jquery-ui (1.13.2+dfsg-1build1) ... 170s Setting up python3-executing (2.2.1-0.1) ... 171s Setting up python3-zmq (27.1.0-1) ... 171s Setting up python3-argon2-cffi-bindings (25.1.0-2) ... 171s Setting up python3-argon2 (25.1.0-2) ... 171s Setting up libpython3.14:amd64 (3.14.2-1) ... 171s Setting up python3-jupyter-client (8.7.0-1) ... 171s Setting up jupyter-core (5.9.1-1) ... 171s Setting up python3.14 (3.14.2-1) ... 172s Setting up python3-stack-data (0.6.3-3) ... 172s Setting up python3-all (3.13.9-3) ... 172s Setting up python3-coverage (7.8.2+dfsg1-1ubuntu1) ... 172s Setting up python3-nbclient (0.10.4-1) ... 172s Setting up gdb (17.1-2ubuntu1) ... 172s Setting up python3-ipython (8.35.0-2) ... 173s /usr/lib/python3/dist-packages/IPython/core/interactiveshell.py:3141: SyntaxWarning: 'return' in a 'finally' block 173s return result 173s Setting up python3-nbconvert (7.16.6-1) ... 173s Setting up python3-debugpy (1.8.19+ds-1ubuntu1) ... 174s Setting up python3-ipykernel (6.30.1-1) ... 174s Setting up python3-notebook (6.4.13-5ubuntu0.1) ... 175s Setting up jupyter-notebook (6.4.13-5ubuntu0.1) ... 175s Processing triggers for systemd (259-1ubuntu3) ... 175s Processing triggers for man-db (2.13.1-1) ... 175s Processing triggers for libc-bin (2.42-2ubuntu4) ... 176s autopkgtest [10:24:50]: test pytest: [----------------------- 176s Testing with python3.14 176s *** 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 178s ============================= test session starts ============================== 178s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 178s rootdir: /tmp/autopkgtest.g9YpMG/autopkgtest_tmp 178s plugins: typeguard-4.4.4 178s collected 330 items / 6 deselected / 324 selected 178s 179s auth/tests/test_login.py .. [ 0%] 179s auth/tests/test_security.py .... [ 1%] 179s bundler/tests/test_bundler_api.py ..... [ 3%] 179s bundler/tests/test_bundler_tools.py ............. [ 7%] 179s bundler/tests/test_bundlerextension.py ... [ 8%] 179s nbconvert/tests/test_nbconvert_handlers.py ssssss [ 10%] 179s services/api/tests/test_api.py ... [ 11%] 179s services/config/tests/test_config_api.py ... [ 12%] 180s services/contents/tests/test_contents_api.py .s..........ss..s.......... [ 20%] 181s ................s...........ss..s......................... [ 38%] 181s services/contents/tests/test_fileio.py ... [ 39%] 181s services/contents/tests/test_largefilemanager.py . [ 39%] 181s services/contents/tests/test_manager.py .....s........ss..........ss.... [ 49%] 181s .... [ 50%] 191s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF.. [ 54%] 191s services/kernelspecs/tests/test_kernelspecs_api.py ....... [ 56%] 191s services/nbconvert/tests/test_nbconvert_api.py . [ 56%] 192s services/sessions/tests/test_sessionmanager.py ......... [ 59%] 193s services/sessions/tests/test_sessions_api.py FFFFFE.FEFE.FFFFFFFE.FEFE.F [ 65%] 193s F [ 66%] 197s terminal/tests/test_terminals_api.py ........ [ 68%] 197s tests/test_config_manager.py . [ 68%] 197s tests/test_files.py ..... [ 70%] 197s tests/test_gateway.py ...... [ 72%] 197s tests/test_i18n.py . [ 72%] 197s tests/test_log.py . [ 72%] 198s tests/test_nbextensions.py ................................... [ 83%] 198s tests/test_notebookapp.py .......................... [ 91%] 198s tests/test_paths.py ... [ 92%] 198s tests/test_serialize.py .. [ 93%] 199s tests/test_serverextensions.py ..... [ 94%] 199s tests/test_traittypes.py ........... [ 98%] 200s tests/test_utils.py ....s [ 99%] 200s tree/tests/test_tree_handler.py . [100%] 200s 200s ==================================== ERRORS ==================================== 200s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 200s 200s self = 200s 200s def tearDown(self): 200s for k in self.kern_api.list().json(): 200s > self.kern_api.shutdown(k['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/cba79bf9-15e2-4845-95b9-4e5e6bc60caf 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 200s from pathlib import Path 200s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 200s from ._local import * 200s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 200s class PureWindowsPath(PurePath): 200s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 200s import ntpath 200s File "", line 1357, in _find_and_load 200s File "", line 418, in __enter__ 200s File "", line 311, in acquire 200s File "", line 170, in __enter__ 200s File "", line 132, in setdefault 200s File "", line 74, in __new__ 200s KeyboardInterrupt 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprnhqxyee/runtime/kernel-cba79bf9-15e2-4845-95b9-4e5e6bc60caf.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57271 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58125 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: cba79bf9-15e2-4845-95b9-4e5e6bc60caf, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.320000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprnhqxyee/runtime/kernel-f6de27fa-5647-4136-89fa-829c0ae451ae.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33051 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37169 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: f6de27fa-5647-4136-89fa-829c0ae451ae, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.390000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 3.510000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: f6de27fa-5647-4136-89fa-829c0ae451ae 200s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/f6de27fa-5647-4136-89fa-829c0ae451ae/interrupt (::1) 0.540000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 200s yield maybe_future(km.restart_kernel(kernel_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 200s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 200s await ensure_async(kernel.restart_kernel(now=now)) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 200s await self._async_shutdown_kernel(now=now, restart=True) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/f6de27fa-5647-4136-89fa-829c0ae451ae/restart (::1) 3.700000ms referer=None 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.790000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cba79bf9-15e2-4845-95b9-4e5e6bc60caf 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cba79bf9-15e2-4845-95b9-4e5e6bc60caf 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/cba79bf9-15e2-4845-95b9-4e5e6bc60caf (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/cba79bf9-15e2-4845-95b9-4e5e6bc60caf', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 200s yielded = ctx_run(next, result) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 200s yield maybe_future(km.shutdown_kernel(kernel_id)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s --------------------------- Captured stderr teardown --------------------------- 200s Traceback (most recent call last): 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 200s import jupyter_client 200s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 200s from .asynchronous import AsyncKernelClient 200s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 200s from .client import AsyncKernelClient # noqa 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 200s import zmq.asyncio 200s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 200s import asyncio 200s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 200s from .base_events import * 200s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 200s import ssl 200s File "/usr/lib/python3.13/ssl.py", line 263, in 200s import base64 # for DER-to-PEM translation 200s ^^^^^^^^^^^^^ 200s File "/usr/lib/python3.13/base64.py", line 11, in 200s import binascii 200s File "", line 1357, in _find_and_load 200s File "", line 418, in __enter__ 200s File "", line 316, in acquire 200s KeyboardInterrupt 200s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 200s 200s self = 200s 200s def tearDown(self): 200s for k in self.kern_api.list().json(): 200s > self.kern_api.shutdown(k['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/4bcc2a8c-af45-4efd-96bd-a113521c3ada 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 200s import jupyter_client 200s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 200s from .asynchronous import AsyncKernelClient 200s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 200s from .client import AsyncKernelClient # noqa 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 200s import zmq.asyncio 200s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 200s import asyncio 200s File "/usr/lib/python3.13/asyncio/__init__.py", line 14, in 200s from .protocols import * 200s File "", line 645, in parent 200s KeyboardInterrupt 200s Traceback (most recent call last): 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 200s from ._version import ( 200s ...<4 lines>... 200s ) 200s File "/usr/lib/python3/dist-packages/ipykernel/_version.py", line 11, in 200s match = re.match(pattern, __version__) 200s File "/usr/lib/python3.13/re/__init__.py", line 167, in match 200s return _compile(pattern, flags).match(string) 200s ~~~~~~~~^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 200s p = _compiler.compile(pattern, flags) 200s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 200s p = _parser.parse(p, flags) 200s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 200s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 200s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 200s itemsappend(_parse(source, state, verbose, nested + 1, 200s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s not nested and not items)) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3.13/re/_parser.py", line 868, in _parse 200s state.closegroup(group, p) 200s ~~~~~~~~~~~~~~~~^^^^^^^^^^ 200s File "/usr/lib/python3.13/re/_parser.py", line 97, in closegroup 200s def closegroup(self, gid, p): 200s 200s KeyboardInterrupt 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmxo_rncs/runtime/kernel-4bcc2a8c-af45-4efd-96bd-a113521c3ada.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34817 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52793 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4bcc2a8c-af45-4efd-96bd-a113521c3ada, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.160000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.210000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmxo_rncs/runtime/kernel-742dd16e-514b-46b3-921a-df8e68fdffd0.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54101 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55427 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 742dd16e-514b-46b3-921a-df8e68fdffd0, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.710000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.440000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 742dd16e-514b-46b3-921a-df8e68fdffd0 200s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/742dd16e-514b-46b3-921a-df8e68fdffd0/interrupt (::1) 0.500000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 200s yield maybe_future(km.restart_kernel(kernel_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 200s result = coro.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 200s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 200s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 200s yield self # This tells Task to wait for completion. 200s ^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 200s await ensure_async(kernel.restart_kernel(now=now)) 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 200s await self._async_shutdown_kernel(now=now, restart=True) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/742dd16e-514b-46b3-921a-df8e68fdffd0/restart (::1) 4.510000ms referer=None 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.410000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4bcc2a8c-af45-4efd-96bd-a113521c3ada 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4bcc2a8c-af45-4efd-96bd-a113521c3ada 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/4bcc2a8c-af45-4efd-96bd-a113521c3ada (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/4bcc2a8c-af45-4efd-96bd-a113521c3ada', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 200s yield maybe_future(km.shutdown_kernel(kernel_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a0237a31-083a-4a2c-b5ca-e6a7199479ea 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp20qc71n0/runtime/kernel-d4535d6a-c5ce-4c79-a739-6985fec2755a.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38597 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34589 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: d4535d6a-c5ce-4c79-a739-6985fec2755a, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.320000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.600000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.460000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.150000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ed2436d4-1eb7-496d-ab83-dfc6e8e41ccc 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ed2436d4-1eb7-496d-ab83-dfc6e8e41ccc 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/63acc47c-946f-4d97-a9c1-4591aa8442b2 (::1) 1.400000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d4535d6a-c5ce-4c79-a739-6985fec2755a 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d4535d6a-c5ce-4c79-a739-6985fec2755a 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a0237a31-083a-4a2c-b5ca-e6a7199479ea (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a0237a31-083a-4a2c-b5ca-e6a7199479ea', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 200s yielded = self.gen.send(value) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a0237a31-083a-4a2c-b5ca-e6a7199479ea (::1) 4.430000ms referer=None 200s --------------------------- Captured stderr teardown --------------------------- 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 200s from typing import TYPE_CHECKING, Any 200s File "", line 1360, in _find_and_load 200s File "", line 1331, in _find_and_load_unlocked 200s File "", line 935, in _load_unlocked 200s File "", line 1019, in exec_module 200s File "", line 1152, in get_code 200s File "", line 781, in _compile_bytecode 200s KeyboardInterrupt 200s __________ ERROR at teardown of SessionAPITest.test_modify_kernel_id ___________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/55536774-75f4-45f4-af4f-1b5ea1d2f6e0 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 200s import jupyter_client 200s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 200s from .asynchronous import AsyncKernelClient 200s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 200s from .client import AsyncKernelClient # noqa 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 200s import zmq.asyncio 200s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 200s from zmq import sugar 200s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 200s from zmq.sugar import context, frame, poll, socket, tracker, version 200s File "/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 23, in 200s from .socket import Socket, SyncSocket 200s File "/usr/lib/python3/dist-packages/zmq/sugar/socket.py", line 9, in 200s import pickle 200s File "/usr/lib/python3.13/pickle.py", line 194, in 200s class _Framer: 200s ...<59 lines>... 200s write(payload) 200s KeyboardInterrupt 200s Traceback (most recent call last): 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 200s import jupyter_client 200s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 200s from .asynchronous import AsyncKernelClient 200s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 200s from .client import AsyncKernelClient # noqa 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 200s import zmq.asyncio 200s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 200s from zmq import backend 200s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 200s _ns = select_backend(first) 200s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 200s mod = import_module(name) 200s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 200s return _bootstrap._gcd_import(name[level:], package, level) 200s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 200s from . import _zmq 200s File "_zmq.py", line 39, in init zmq.backend.cython._zmq 200s File "", line 1349, in _find_and_load 200s KeyboardInterrupt 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp20qc71n0/runtime/kernel-de9a82f4-5b10-45b7-bc2f-90c0b0592079.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59375 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51523 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: de9a82f4-5b10-45b7-bc2f-90c0b0592079, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp20qc71n0/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.390000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp20qc71n0/runtime/kernel-e3d93781-f780-4114-b326-e431ebf8d90c.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34055 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37733 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: e3d93781-f780-4114-b326-e431ebf8d90c, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.740000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for de9a82f4-5b10-45b7-bc2f-90c0b0592079 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: de9a82f4-5b10-45b7-bc2f-90c0b0592079 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/55536774-75f4-45f4-af4f-1b5ea1d2f6e0 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/55536774-75f4-45f4-af4f-1b5ea1d2f6e0', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 200s yielded = self.gen.send(value) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 154, in patch 200s km.shutdown_kernel(before['kernel']['id']) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/55536774-75f4-45f4-af4f-1b5ea1d2f6e0 (::1) 8.820000ms referer=None 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.540000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e3d93781-f780-4114-b326-e431ebf8d90c 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e3d93781-f780-4114-b326-e431ebf8d90c 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/55536774-75f4-45f4-af4f-1b5ea1d2f6e0 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/55536774-75f4-45f4-af4f-1b5ea1d2f6e0', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 200s yielded = self.gen.send(value) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/55536774-75f4-45f4-af4f-1b5ea1d2f6e0 (::1) 9.840000ms referer=None 200s _________ ERROR at teardown of SessionAPITest.test_modify_kernel_name __________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/55536774-75f4-45f4-af4f-1b5ea1d2f6e0 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.690000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp20qc71n0/runtime/kernel-989f47c5-6007-45e7-a6cb-bb09c6e2ed01.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47779 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37671 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 989f47c5-6007-45e7-a6cb-bb09c6e2ed01, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp20qc71n0/notebooks/foo'} 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e3d93781-f780-4114-b326-e431ebf8d90c 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e3d93781-f780-4114-b326-e431ebf8d90c 200s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/55536774-75f4-45f4-af4f-1b5ea1d2f6e0 (::1) 16.030000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.670000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.650000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 989f47c5-6007-45e7-a6cb-bb09c6e2ed01 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 989f47c5-6007-45e7-a6cb-bb09c6e2ed01 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/55536774-75f4-45f4-af4f-1b5ea1d2f6e0 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/55536774-75f4-45f4-af4f-1b5ea1d2f6e0', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 200s yielded = self.gen.send(value) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/55536774-75f4-45f4-af4f-1b5ea1d2f6e0 (::1) 4.730000ms referer=None 200s --------------------------- Captured stderr teardown --------------------------- 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 200s from subprocess import PIPE, Popen 200s File "/usr/lib/python3.13/subprocess.py", line 46, in 200s import locale 200s File "", line 1360, in _find_and_load 200s File "", line 1331, in _find_and_load_unlocked 200s File "", line 935, in _load_unlocked 200s File "", line 1019, in exec_module 200s File "", line 1152, in get_code 200s File "", line 781, in _compile_bytecode 200s KeyboardInterrupt 200s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/9fa37921-2363-4921-8cd9-6ea02eaf25d4 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmposaf1ii9/runtime/kernel-a0dc3ee7-9291-466e-9b16-b4ff688c2ee6.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43599 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50457 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: a0dc3ee7-9291-466e-9b16-b4ff688c2ee6, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.540000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.630000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.390000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.450000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d3502940-d551-4a0e-bf4a-1f139a1f6f16 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d3502940-d551-4a0e-bf4a-1f139a1f6f16 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/f030cccb-0449-4bf0-b0dd-0a99c08a39fa (::1) 0.580000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a0dc3ee7-9291-466e-9b16-b4ff688c2ee6 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a0dc3ee7-9291-466e-9b16-b4ff688c2ee6 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9fa37921-2363-4921-8cd9-6ea02eaf25d4 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9fa37921-2363-4921-8cd9-6ea02eaf25d4', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s --------------------------- Captured stderr teardown --------------------------- 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 200s from typing import TYPE_CHECKING, Any 200s File "", line 1360, in _find_and_load 200s File "", line 1322, in _find_and_load_unlocked 200s File "", line 1262, in _find_spec 200s File "", line 1556, in find_spec 200s File "", line 1530, in _get_spec 200s File "", line 1657, in find_spec 200s File "", line 133, in _path_join 200s KeyboardInterrupt 200s ________ ERROR at teardown of AsyncSessionAPITest.test_modify_kernel_id ________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a00533b4-5808-4b80-8cc5-6d5601b6830a 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 200s import jupyter_client 200s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 200s from .asynchronous import AsyncKernelClient 200s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 200s from .client import AsyncKernelClient # noqa 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 200s import zmq.asyncio 200s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 200s from zmq import backend 200s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 200s _ns = select_backend(first) 200s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 200s mod = import_module(name) 200s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 200s return _bootstrap._gcd_import(name[level:], package, level) 200s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 200s from . import _zmq 200s File "_zmq.py", line 156, in init zmq.backend.cython._zmq 200s File "/usr/lib/python3/dist-packages/zmq/constants.py", line 134, in 200s class SocketOption(IntEnum): 200s ...<138 lines>... 200s NORM_PUSH = 124 200s File "/usr/lib/python3.13/enum.py", line 568, in __new__ 200s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 200s File "/usr/lib/python3.13/enum.py", line 251, in __set_name__ 200s def __set_name__(self, enum_class, member_name): 200s 200s KeyboardInterrupt 200s Error calling __set_name__ on '_proto_member' instance 'RECONNECT_IVL' in 'SocketOption' 200s Traceback (most recent call last): 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 200s import jupyter_client 200s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 200s from .asynchronous import AsyncKernelClient 200s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 200s from .client import AsyncKernelClient # noqa 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 200s import zmq.asyncio 200s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 200s from zmq import sugar 200s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 200s from zmq.sugar import context, frame, poll, socket, tracker, version 200s File "/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 23, in 200s from .socket import Socket, SyncSocket 200s File "/usr/lib/python3/dist-packages/zmq/sugar/socket.py", line 35, in 200s from .poll import Poller 200s File "", line 1360, in _find_and_load 200s File "", line 1322, in _find_and_load_unlocked 200s File "", line 1262, in _find_spec 200s File "", line 1556, in find_spec 200s File "", line 1530, in _get_spec 200s File "", line 1661, in find_spec 200s KeyboardInterrupt 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmposaf1ii9/runtime/kernel-d0711875-c204-4a74-b92e-9ea5ca433725.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35161 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35113 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: d0711875-c204-4a74-b92e-9ea5ca433725, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmposaf1ii9/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.160000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmposaf1ii9/runtime/kernel-b28f12e2-496d-4b0a-acbd-ea6dbb212268.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56027 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41475 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: b28f12e2-496d-4b0a-acbd-ea6dbb212268, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.070000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d0711875-c204-4a74-b92e-9ea5ca433725 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d0711875-c204-4a74-b92e-9ea5ca433725 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/a00533b4-5808-4b80-8cc5-6d5601b6830a (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/a00533b4-5808-4b80-8cc5-6d5601b6830a', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 153, in patch 200s yield maybe_future( 200s km.shutdown_kernel(before['kernel']['id']) 200s ) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/a00533b4-5808-4b80-8cc5-6d5601b6830a (::1) 7.290000ms referer=None 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.500000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b28f12e2-496d-4b0a-acbd-ea6dbb212268 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b28f12e2-496d-4b0a-acbd-ea6dbb212268 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a00533b4-5808-4b80-8cc5-6d5601b6830a (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a00533b4-5808-4b80-8cc5-6d5601b6830a', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a00533b4-5808-4b80-8cc5-6d5601b6830a (::1) 8.050000ms referer=None 200s _______ ERROR at teardown of AsyncSessionAPITest.test_modify_kernel_name _______ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a00533b4-5808-4b80-8cc5-6d5601b6830a 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.700000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmposaf1ii9/runtime/kernel-3c4a00d1-1224-4ca7-af61-6ac5a664d662.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40671 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42257 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3c4a00d1-1224-4ca7-af61-6ac5a664d662, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmposaf1ii9/notebooks/foo'} 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b28f12e2-496d-4b0a-acbd-ea6dbb212268 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b28f12e2-496d-4b0a-acbd-ea6dbb212268 200s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/a00533b4-5808-4b80-8cc5-6d5601b6830a (::1) 13.700000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.440000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.420000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3c4a00d1-1224-4ca7-af61-6ac5a664d662 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3c4a00d1-1224-4ca7-af61-6ac5a664d662 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a00533b4-5808-4b80-8cc5-6d5601b6830a (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a00533b4-5808-4b80-8cc5-6d5601b6830a', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a00533b4-5808-4b80-8cc5-6d5601b6830a (::1) 4.170000ms referer=None 200s --------------------------- Captured stderr teardown --------------------------- 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 200s from subprocess import PIPE, Popen 200s File "", line 1360, in _find_and_load 200s File "", line 1331, in _find_and_load_unlocked 200s File "", line 935, in _load_unlocked 200s File "", line 1019, in exec_module 200s File "", line 1152, in get_code 200s File "", line 781, in _compile_bytecode 200s KeyboardInterrupt 200s =================================== FAILURES =================================== 200s ______________________ KernelAPITest.test_default_kernel _______________________ 200s 200s self = 200s 200s def tearDown(self): 200s for k in self.kern_api.list().json(): 200s > self.kern_api.shutdown(k['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/9706e42d-76e9-4983-8efd-117667f39feb 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ------------------------------ Captured log setup ------------------------------ 200s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmprnhqxyee/config', '/tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmprnhqxyee/etc/jupyter'] for config files 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmprnhqxyee/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmprnhqxyee/config 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmprnhqxyee/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmprnhqxyee/config 200s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmprnhqxyee/notebooks 200s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 200s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 200s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 200s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 200s WARNING NotebookApp:handlers.py:612 Forbidden 200s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.900000ms referer=None 200s ----------------------------- Captured stderr call ----------------------------- 200s Could not import runpy module 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprnhqxyee/runtime/kernel-9706e42d-76e9-4983-8efd-117667f39feb.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54997 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60743 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9706e42d-76e9-4983-8efd-117667f39feb, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 45.770000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9706e42d-76e9-4983-8efd-117667f39feb 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9706e42d-76e9-4983-8efd-117667f39feb 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/9706e42d-76e9-4983-8efd-117667f39feb (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/9706e42d-76e9-4983-8efd-117667f39feb', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 200s yielded = ctx_run(next, result) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 200s yield maybe_future(km.shutdown_kernel(kernel_id)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/9706e42d-76e9-4983-8efd-117667f39feb (::1) 5.370000ms referer=None 200s --------------------------- Captured stderr teardown --------------------------- 200s Traceback (most recent call last): 200s File "/usr/lib/python3.13/runpy.py", line 15, in 200s import importlib.util 200s File "", line 1360, in _find_and_load 200s File "", line 1331, in _find_and_load_unlocked 200s File "", line 935, in _load_unlocked 200s File "", line 1019, in exec_module 200s File "", line 1115, in get_code 200s File "", line 1215, in get_data 200s KeyboardInterrupt 200s ______________________ KernelAPITest.test_kernel_handler _______________________ 200s 200s self = 200s 200s def test_kernel_handler(self): 200s # GET kernel with given id 200s kid = self.kern_api.start().json()['id'] 200s r = self.kern_api.get(kid) 200s kern1 = r.json() 200s self.assertEqual(r.status_code, 200) 200s assert isinstance(kern1, dict) 200s self.assertIn('id', kern1) 200s self.assertEqual(kern1['id'], kid) 200s 200s # Request a bad kernel id and check that a JSON 200s # message is returned! 200s bad_id = '111-111-111-111-111' 200s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 200s self.kern_api.get(bad_id) 200s 200s # DELETE kernel with id 200s > r = self.kern_api.shutdown(kid) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/45dcf9e2-8ec9-4f15-9bbd-e9d379b7b2a1 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 200s import json 200s File "", line 1360, in _find_and_load 200s File "", line 1331, in _find_and_load_unlocked 200s File "", line 935, in _load_unlocked 200s File "", line 1019, in exec_module 200s File "", line 1115, in get_code 200s File "", line 1214, in get_data 200s KeyboardInterrupt 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprnhqxyee/runtime/kernel-45dcf9e2-8ec9-4f15-9bbd-e9d379b7b2a1.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48671 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52063 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 45dcf9e2-8ec9-4f15-9bbd-e9d379b7b2a1, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.620000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/45dcf9e2-8ec9-4f15-9bbd-e9d379b7b2a1 (::1) 0.440000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s 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 200s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 200s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 1.150000ms referer=None 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 45dcf9e2-8ec9-4f15-9bbd-e9d379b7b2a1 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 45dcf9e2-8ec9-4f15-9bbd-e9d379b7b2a1 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/45dcf9e2-8ec9-4f15-9bbd-e9d379b7b2a1 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/45dcf9e2-8ec9-4f15-9bbd-e9d379b7b2a1', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 200s yielded = ctx_run(next, result) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 200s yield maybe_future(km.shutdown_kernel(kernel_id)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/45dcf9e2-8ec9-4f15-9bbd-e9d379b7b2a1 (::1) 4.530000ms referer=None 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.370000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9706e42d-76e9-4983-8efd-117667f39feb 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9706e42d-76e9-4983-8efd-117667f39feb 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/9706e42d-76e9-4983-8efd-117667f39feb (::1) 0.450000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 45dcf9e2-8ec9-4f15-9bbd-e9d379b7b2a1 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 45dcf9e2-8ec9-4f15-9bbd-e9d379b7b2a1 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/45dcf9e2-8ec9-4f15-9bbd-e9d379b7b2a1 (::1) 0.450000ms 200s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 200s 200s self = 200s 200s def test_main_kernel_handler(self): 200s # POST request 200s r = self.kern_api.start() 200s kern1 = r.json() 200s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 200s self.assertEqual(r.status_code, 201) 200s self.assertIsInstance(kern1, dict) 200s 200s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 200s expected_csp = '; '.join([ 200s "frame-ancestors 'self'", 200s 'report-uri ' + report_uri, 200s "default-src 'none'" 200s ]) 200s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 200s 200s # GET request 200s r = self.kern_api.list() 200s self.assertEqual(r.status_code, 200) 200s assert isinstance(r.json(), list) 200s self.assertEqual(r.json()[0]['id'], kern1['id']) 200s self.assertEqual(r.json()[0]['name'], kern1['name']) 200s 200s # create another kernel and check that they both are added to the 200s # list of kernels from a GET request 200s kern2 = self.kern_api.start().json() 200s assert isinstance(kern2, dict) 200s r = self.kern_api.list() 200s kernels = r.json() 200s self.assertEqual(r.status_code, 200) 200s assert isinstance(kernels, list) 200s self.assertEqual(len(kernels), 2) 200s 200s # Interrupt a kernel 200s r = self.kern_api.interrupt(kern2['id']) 200s self.assertEqual(r.status_code, 204) 200s 200s # Restart a kernel 200s > r = self.kern_api.restart(kern2['id']) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 200s return self._req('POST', url_path_join(id, 'restart')) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/f6de27fa-5647-4136-89fa-829c0ae451ae/restart 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 200s from pathlib import Path 200s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 200s from ._local import * 200s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 200s class PureWindowsPath(PurePath): 200s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 200s import ntpath 200s File "", line 1357, in _find_and_load 200s File "", line 418, in __enter__ 200s File "", line 311, in acquire 200s File "", line 170, in __enter__ 200s File "", line 132, in setdefault 200s File "", line 74, in __new__ 200s KeyboardInterrupt 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprnhqxyee/runtime/kernel-cba79bf9-15e2-4845-95b9-4e5e6bc60caf.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57271 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58125 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: cba79bf9-15e2-4845-95b9-4e5e6bc60caf, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.320000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprnhqxyee/runtime/kernel-f6de27fa-5647-4136-89fa-829c0ae451ae.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33051 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37169 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: f6de27fa-5647-4136-89fa-829c0ae451ae, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.390000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 3.510000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: f6de27fa-5647-4136-89fa-829c0ae451ae 200s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/f6de27fa-5647-4136-89fa-829c0ae451ae/interrupt (::1) 0.540000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 200s yield maybe_future(km.restart_kernel(kernel_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 200s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 200s await ensure_async(kernel.restart_kernel(now=now)) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 200s await self._async_shutdown_kernel(now=now, restart=True) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/f6de27fa-5647-4136-89fa-829c0ae451ae/restart (::1) 3.700000ms referer=None 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.790000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cba79bf9-15e2-4845-95b9-4e5e6bc60caf 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cba79bf9-15e2-4845-95b9-4e5e6bc60caf 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/cba79bf9-15e2-4845-95b9-4e5e6bc60caf (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/cba79bf9-15e2-4845-95b9-4e5e6bc60caf', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 200s yielded = ctx_run(next, result) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 200s yield maybe_future(km.shutdown_kernel(kernel_id)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ________________________ KernelAPITest.test_no_kernels _________________________ 200s 200s self = 200s 200s def test_no_kernels(self): 200s """Make sure there are no kernels running at the start""" 200s kernels = self.kern_api.list().json() 200s > self.assertEqual(kernels, []) 200s E AssertionError: Lists differ: [{'id': 'cba79bf9-15e2-4845-95b9-4e5e6bc60[281 chars]: 0}] != [] 200s E 200s E First list contains 2 additional elements. 200s E First extra element 0: 200s E {'id': 'cba79bf9-15e2-4845-95b9-4e5e6bc60caf', 'name': 'python3', 'last_activity': '2026-02-06T10:24:55.141921Z', 'execution_state': 'starting', 'connections': 0} 200s E 200s E + [] 200s E - [{'connections': 0, 200s E - 'execution_state': 'starting', 200s E - 'id': 'cba79bf9-15e2-4845-95b9-4e5e6bc60caf', 200s E - 'last_activity': '2026-02-06T10:24:55.141921Z', 200s E - 'name': 'python3'}, 200s E - {'connections': 0, 200s E - 'execution_state': 'starting', 200s E - 'id': 'f6de27fa-5647-4136-89fa-829c0ae451ae', 200s E - 'last_activity': '2026-02-06T10:24:55.160408Z', 200s E - 'name': 'python3'}] 200s 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.570000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.420000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cba79bf9-15e2-4845-95b9-4e5e6bc60caf 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cba79bf9-15e2-4845-95b9-4e5e6bc60caf 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/cba79bf9-15e2-4845-95b9-4e5e6bc60caf (::1) 0.840000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f6de27fa-5647-4136-89fa-829c0ae451ae 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f6de27fa-5647-4136-89fa-829c0ae451ae 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/f6de27fa-5647-4136-89fa-829c0ae451ae (::1) 0.600000ms 200s ---------------------------- Captured log teardown ----------------------------- 200s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 200s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 200s _____________________ AsyncKernelAPITest.test_connections ______________________ 200s 200s self = 200s 200s def tearDown(self): 200s for k in self.kern_api.list().json(): 200s > self.kern_api.shutdown(k['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ------------------------------ Captured log setup ------------------------------ 200s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpmxo_rncs/config', '/tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpmxo_rncs/etc/jupyter'] for config files 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpmxo_rncs/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpmxo_rncs/config 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpmxo_rncs/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpmxo_rncs/config 200s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpmxo_rncs/notebooks 200s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 200s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 200s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 200s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 200s WARNING NotebookApp:handlers.py:612 Forbidden 200s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.330000ms referer=None 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmxo_rncs/runtime/kernel-1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57819 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51663 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.530000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b (::1) 0.520000ms 200s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b/channels 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 200s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43195 200s 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/'}]} 200s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b) to 5.4 (client). 200s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b/channels (::1) 385.600000ms 200s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b/channels 200s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51663 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43195 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57819 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57295 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43195 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57819 200s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 200s Setting websocket_ping_timeout=30000 200s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b (::1) 2.360000ms 200s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b 200s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b (::1) 0.420000ms 200s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: 1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b 200s DEBUG NotebookApp:handlers.py:197 Nudge: resolving shell future: 1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b 200s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b 200s DEBUG NotebookApp:handlers.py:579 Websocket closed 1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b:c9308f0a-b0f6deeebd9f1b37a6c74c8a 200s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b:c9308f0a-b0f6deeebd9f1b37a6c74c8a 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b 200s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b:iopub 200s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b:iopub 200s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b:iopub 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b (::1) 1.620000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b (::1) 1.170000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.180000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b 200s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for 1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b:c9308f0a-b0f6deeebd9f1b37a6c74c8a 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 200s yield maybe_future(km.shutdown_kernel(kernel_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b (::1) 5.490000ms referer=None 200s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 200s 200s self = 200s 200s def tearDown(self): 200s for k in self.kern_api.list().json(): 200s > self.kern_api.shutdown(k['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/3c1d71fe-6918-464c-8892-efad4bc6d5a3 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmxo_rncs/runtime/kernel-3c1d71fe-6918-464c-8892-efad4bc6d5a3.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58939 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40951 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3c1d71fe-6918-464c-8892-efad4bc6d5a3, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.650000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.570000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b (::1) 1.870000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3c1d71fe-6918-464c-8892-efad4bc6d5a3 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3c1d71fe-6918-464c-8892-efad4bc6d5a3 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/3c1d71fe-6918-464c-8892-efad4bc6d5a3 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/3c1d71fe-6918-464c-8892-efad4bc6d5a3', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 200s yield maybe_future(km.shutdown_kernel(kernel_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/3c1d71fe-6918-464c-8892-efad4bc6d5a3 (::1) 7.110000ms referer=None 200s --------------------------- Captured stderr teardown --------------------------- 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 200s from typing import TYPE_CHECKING, Any 200s File "/usr/lib/python3.13/typing.py", line 3472, in 200s class IO(Generic[AnyStr]): 200s ...<95 lines>... 200s pass 200s File "", line 471, in _lock_unlock_module 200s File "", line 311, in acquire 200s File "", line 170, in __enter__ 200s File "", line 124, in setdefault 200s KeyboardInterrupt 200s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 200s 200s self = 200s 200s def test_kernel_handler(self): 200s # GET kernel with given id 200s kid = self.kern_api.start().json()['id'] 200s r = self.kern_api.get(kid) 200s kern1 = r.json() 200s self.assertEqual(r.status_code, 200) 200s assert isinstance(kern1, dict) 200s self.assertIn('id', kern1) 200s self.assertEqual(kern1['id'], kid) 200s 200s # Request a bad kernel id and check that a JSON 200s # message is returned! 200s bad_id = '111-111-111-111-111' 200s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 200s self.kern_api.get(bad_id) 200s 200s # DELETE kernel with id 200s > r = self.kern_api.shutdown(kid) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/2d3155d4-5fc8-41fa-aabb-49c82bd4eac9 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 200s import json 200s File "/usr/lib/python3.13/json/__init__.py", line 106, in 200s from .decoder import JSONDecoder, JSONDecodeError 200s File "/usr/lib/python3.13/json/decoder.py", line 5, in 200s from json import scanner 200s File "", line 1360, in _find_and_load 200s File "", line 1331, in _find_and_load_unlocked 200s File "", line 935, in _load_unlocked 200s File "", line 1019, in exec_module 200s File "", line 1152, in get_code 200s File "", line 781, in _compile_bytecode 200s KeyboardInterrupt 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmxo_rncs/runtime/kernel-2d3155d4-5fc8-41fa-aabb-49c82bd4eac9.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41247 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38677 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2d3155d4-5fc8-41fa-aabb-49c82bd4eac9, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.330000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/2d3155d4-5fc8-41fa-aabb-49c82bd4eac9 (::1) 1.760000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s 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 200s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 200s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 1.120000ms referer=None 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2d3155d4-5fc8-41fa-aabb-49c82bd4eac9 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2d3155d4-5fc8-41fa-aabb-49c82bd4eac9 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/2d3155d4-5fc8-41fa-aabb-49c82bd4eac9 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/2d3155d4-5fc8-41fa-aabb-49c82bd4eac9', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 200s yield maybe_future(km.shutdown_kernel(kernel_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/2d3155d4-5fc8-41fa-aabb-49c82bd4eac9 (::1) 7.000000ms referer=None 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.590000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3c1d71fe-6918-464c-8892-efad4bc6d5a3 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3c1d71fe-6918-464c-8892-efad4bc6d5a3 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/3c1d71fe-6918-464c-8892-efad4bc6d5a3 (::1) 0.550000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2d3155d4-5fc8-41fa-aabb-49c82bd4eac9 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2d3155d4-5fc8-41fa-aabb-49c82bd4eac9 200s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 200s 200s self = 200s 200s def test_main_kernel_handler(self): 200s # POST request 200s r = self.kern_api.start() 200s kern1 = r.json() 200s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 200s self.assertEqual(r.status_code, 201) 200s self.assertIsInstance(kern1, dict) 200s 200s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 200s expected_csp = '; '.join([ 200s "frame-ancestors 'self'", 200s 'report-uri ' + report_uri, 200s "default-src 'none'" 200s ]) 200s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 200s 200s # GET request 200s r = self.kern_api.list() 200s self.assertEqual(r.status_code, 200) 200s assert isinstance(r.json(), list) 200s self.assertEqual(r.json()[0]['id'], kern1['id']) 200s self.assertEqual(r.json()[0]['name'], kern1['name']) 200s 200s # create another kernel and check that they both are added to the 200s # list of kernels from a GET request 200s kern2 = self.kern_api.start().json() 200s assert isinstance(kern2, dict) 200s r = self.kern_api.list() 200s kernels = r.json() 200s self.assertEqual(r.status_code, 200) 200s assert isinstance(kernels, list) 200s self.assertEqual(len(kernels), 2) 200s 200s # Interrupt a kernel 200s r = self.kern_api.interrupt(kern2['id']) 200s self.assertEqual(r.status_code, 204) 200s 200s # Restart a kernel 200s > r = self.kern_api.restart(kern2['id']) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 200s return self._req('POST', url_path_join(id, 'restart')) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/742dd16e-514b-46b3-921a-df8e68fdffd0/restart 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 200s import jupyter_client 200s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 200s from .asynchronous import AsyncKernelClient 200s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 200s from .client import AsyncKernelClient # noqa 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 200s import zmq.asyncio 200s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 200s import asyncio 200s File "/usr/lib/python3.13/asyncio/__init__.py", line 14, in 200s from .protocols import * 200s File "", line 645, in parent 200s KeyboardInterrupt 200s Traceback (most recent call last): 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 200s from ._version import ( 200s ...<4 lines>... 200s ) 200s File "/usr/lib/python3/dist-packages/ipykernel/_version.py", line 11, in 200s match = re.match(pattern, __version__) 200s File "/usr/lib/python3.13/re/__init__.py", line 167, in match 200s return _compile(pattern, flags).match(string) 200s ~~~~~~~~^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 200s p = _compiler.compile(pattern, flags) 200s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 200s p = _parser.parse(p, flags) 200s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 200s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 200s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 200s itemsappend(_parse(source, state, verbose, nested + 1, 200s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s not nested and not items)) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3.13/re/_parser.py", line 868, in _parse 200s state.closegroup(group, p) 200s ~~~~~~~~~~~~~~~~^^^^^^^^^^ 200s File "/usr/lib/python3.13/re/_parser.py", line 97, in closegroup 200s def closegroup(self, gid, p): 200s 200s KeyboardInterrupt 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmxo_rncs/runtime/kernel-4bcc2a8c-af45-4efd-96bd-a113521c3ada.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34817 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52793 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4bcc2a8c-af45-4efd-96bd-a113521c3ada, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.160000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.210000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmxo_rncs/runtime/kernel-742dd16e-514b-46b3-921a-df8e68fdffd0.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54101 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55427 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 742dd16e-514b-46b3-921a-df8e68fdffd0, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.710000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.440000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 742dd16e-514b-46b3-921a-df8e68fdffd0 200s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/742dd16e-514b-46b3-921a-df8e68fdffd0/interrupt (::1) 0.500000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 200s yield maybe_future(km.restart_kernel(kernel_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 200s result = coro.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 200s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 200s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 200s yield self # This tells Task to wait for completion. 200s ^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 200s await ensure_async(kernel.restart_kernel(now=now)) 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 200s await self._async_shutdown_kernel(now=now, restart=True) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/742dd16e-514b-46b3-921a-df8e68fdffd0/restart (::1) 4.510000ms referer=None 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.410000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4bcc2a8c-af45-4efd-96bd-a113521c3ada 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4bcc2a8c-af45-4efd-96bd-a113521c3ada 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/4bcc2a8c-af45-4efd-96bd-a113521c3ada (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/4bcc2a8c-af45-4efd-96bd-a113521c3ada', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 200s yield maybe_future(km.shutdown_kernel(kernel_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 200s 200s self = 200s 200s def test_no_kernels(self): 200s """Make sure there are no kernels running at the start""" 200s kernels = self.kern_api.list().json() 200s > self.assertEqual(kernels, []) 200s E AssertionError: Lists differ: [{'id': '4bcc2a8c-af45-4efd-96bd-a113521c3[281 chars]: 0}] != [] 200s E 200s E First list contains 2 additional elements. 200s E First extra element 0: 200s E {'id': '4bcc2a8c-af45-4efd-96bd-a113521c3ada', 'name': 'python3', 'last_activity': '2026-02-06T10:24:55.945431Z', 'execution_state': 'starting', 'connections': 0} 200s E 200s E + [] 200s E - [{'connections': 0, 200s E - 'execution_state': 'starting', 200s E - 'id': '4bcc2a8c-af45-4efd-96bd-a113521c3ada', 200s E - 'last_activity': '2026-02-06T10:24:55.945431Z', 200s E - 'name': 'python3'}, 200s E - {'connections': 0, 200s E - 'execution_state': 'starting', 200s E - 'id': '742dd16e-514b-46b3-921a-df8e68fdffd0', 200s E - 'last_activity': '2026-02-06T10:24:55.961797Z', 200s E - 'name': 'python3'}] 200s 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.580000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.390000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4bcc2a8c-af45-4efd-96bd-a113521c3ada 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4bcc2a8c-af45-4efd-96bd-a113521c3ada 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/4bcc2a8c-af45-4efd-96bd-a113521c3ada (::1) 0.400000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 742dd16e-514b-46b3-921a-df8e68fdffd0 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 742dd16e-514b-46b3-921a-df8e68fdffd0 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/742dd16e-514b-46b3-921a-df8e68fdffd0 (::1) 0.420000ms 200s ---------------------------- Captured log teardown ----------------------------- 200s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4bcc2a8c-af45-4efd-96bd-a113521c3ada 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2d3155d4-5fc8-41fa-aabb-49c82bd4eac9 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1dff03c8-5a7f-4adb-91b4-dc22bfe88d4b 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3c1d71fe-6918-464c-8892-efad4bc6d5a3 200s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 200s __________________________ SessionAPITest.test_create __________________________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/0e9aca14-85a4-4a3f-8f3c-1269e7a5f4d0 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ------------------------------ Captured log setup ------------------------------ 200s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp20qc71n0/config', '/tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp20qc71n0/etc/jupyter'] for config files 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp20qc71n0/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp20qc71n0/config 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp20qc71n0/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp20qc71n0/config 200s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp20qc71n0/notebooks 200s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 200s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 200s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 200s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 200s WARNING NotebookApp:handlers.py:612 Forbidden 200s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.860000ms referer=None 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.690000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp20qc71n0/runtime/kernel-b3510705-bfc0-4390-ac76-b0fd768fa737.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58505 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47517 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: b3510705-bfc0-4390-ac76-b0fd768fa737, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp20qc71n0/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.640000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/0e9aca14-85a4-4a3f-8f3c-1269e7a5f4d0 (::1) 0.560000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.150000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b3510705-bfc0-4390-ac76-b0fd768fa737 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b3510705-bfc0-4390-ac76-b0fd768fa737 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/0e9aca14-85a4-4a3f-8f3c-1269e7a5f4d0 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/0e9aca14-85a4-4a3f-8f3c-1269e7a5f4d0', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 200s yielded = self.gen.send(value) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s --------------------------- Captured stderr teardown --------------------------- 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 200s from subprocess import PIPE, Popen 200s File "/usr/lib/python3.13/subprocess.py", line 46, in 200s import locale 200s File "", line 1360, in _find_and_load 200s File "", line 1331, in _find_and_load_unlocked 200s File "", line 935, in _load_unlocked 200s File "", line 1019, in exec_module 200s File "", line 1152, in get_code 200s File "", line 781, in _compile_bytecode 200s KeyboardInterrupt 200s __________________ SessionAPITest.test_create_console_session __________________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d7e9241c-104b-4463-868b-d510963a5e0c 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp20qc71n0/runtime/kernel-328a5667-bdd5-4a02-8587-4e453857735c.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54995 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48315 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 328a5667-bdd5-4a02-8587-4e453857735c, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp20qc71n0/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.970000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.610000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b3510705-bfc0-4390-ac76-b0fd768fa737 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b3510705-bfc0-4390-ac76-b0fd768fa737 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/0e9aca14-85a4-4a3f-8f3c-1269e7a5f4d0 (::1) 0.740000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 328a5667-bdd5-4a02-8587-4e453857735c 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 328a5667-bdd5-4a02-8587-4e453857735c 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d7e9241c-104b-4463-868b-d510963a5e0c (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d7e9241c-104b-4463-868b-d510963a5e0c', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 200s yielded = self.gen.send(value) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/d7e9241c-104b-4463-868b-d510963a5e0c (::1) 4.790000ms referer=None 200s --------------------------- Captured stderr teardown --------------------------- 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 200s import json 200s File "/usr/lib/python3.13/json/__init__.py", line 106, in 200s from .decoder import JSONDecoder, JSONDecodeError 200s File "/usr/lib/python3.13/json/decoder.py", line 5, in 200s from json import scanner 200s File "/usr/lib/python3.13/json/scanner.py", line 11, in 200s NUMBER_RE = re.compile( 200s r'(-?(?:0|[1-9][0-9]*))(\.[0-9]+)?([eE][-+]?[0-9]+)?', 200s (re.VERBOSE | re.MULTILINE | re.DOTALL)) 200s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 200s return _compile(pattern, flags) 200s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 200s p = _compiler.compile(pattern, flags) 200s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 200s p = _parser.parse(p, flags) 200s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 200s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 200s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 200s itemsappend(_parse(source, state, verbose, nested + 1, 200s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s not nested and not items)) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3.13/re/_parser.py", line 709, in _parse 200s start = source.tell() - 1 200s ~~~~~~~~~~~^^ 200s File "/usr/lib/python3.13/re/_parser.py", line 292, in tell 200s def tell(self): 200s 200s KeyboardInterrupt 200s ____________________ SessionAPITest.test_create_deprecated _____________________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/2e708042-e330-47a7-8b3e-5629a0e2a302 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp20qc71n0/runtime/kernel-c28fded1-4188-4381-b366-d5d861491ee2.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39007 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52407 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: c28fded1-4188-4381-b366-d5d861491ee2, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp20qc71n0/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.730000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.340000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 328a5667-bdd5-4a02-8587-4e453857735c 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 328a5667-bdd5-4a02-8587-4e453857735c 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d7e9241c-104b-4463-868b-d510963a5e0c (::1) 0.570000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c28fded1-4188-4381-b366-d5d861491ee2 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c28fded1-4188-4381-b366-d5d861491ee2 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/2e708042-e330-47a7-8b3e-5629a0e2a302 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/2e708042-e330-47a7-8b3e-5629a0e2a302', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 200s yielded = self.gen.send(value) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s --------------------------- Captured stderr teardown --------------------------- 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 200s import json 200s File "/usr/lib/python3.13/json/__init__.py", line 106, in 200s from .decoder import JSONDecoder, JSONDecodeError 200s File "/usr/lib/python3.13/json/decoder.py", line 5, in 200s from json import scanner 200s File "/usr/lib/python3.13/json/scanner.py", line 11, in 200s NUMBER_RE = re.compile( 200s r'(-?(?:0|[1-9][0-9]*))(\.[0-9]+)?([eE][-+]?[0-9]+)?', 200s (re.VERBOSE | re.MULTILINE | re.DOTALL)) 200s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 200s return _compile(pattern, flags) 200s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 200s p = _compiler.compile(pattern, flags) 200s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 200s p = _parser.parse(p, flags) 200s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 200s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 200s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 200s itemsappend(_parse(source, state, verbose, nested + 1, 200s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s not nested and not items)) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3.13/re/_parser.py", line 863, in _parse 200s p = _parse_sub(source, state, sub_verbose, nested + 1) 200s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 200s itemsappend(_parse(source, state, verbose, nested + 1, 200s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s not nested and not items)) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3.13/re/_parser.py", line 547, in _parse 200s subpatternappend((LITERAL, _ord(this))) 200s ~~~~^^^^^^ 200s KeyboardInterrupt 200s ___________________ SessionAPITest.test_create_file_session ____________________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/63acc47c-946f-4d97-a9c1-4591aa8442b2 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp20qc71n0/runtime/kernel-ed2436d4-1eb7-496d-ab83-dfc6e8e41ccc.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50161 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34301 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: ed2436d4-1eb7-496d-ab83-dfc6e8e41ccc, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp20qc71n0/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.830000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.520000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c28fded1-4188-4381-b366-d5d861491ee2 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c28fded1-4188-4381-b366-d5d861491ee2 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/2e708042-e330-47a7-8b3e-5629a0e2a302 (::1) 1.460000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ed2436d4-1eb7-496d-ab83-dfc6e8e41ccc 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ed2436d4-1eb7-496d-ab83-dfc6e8e41ccc 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/63acc47c-946f-4d97-a9c1-4591aa8442b2 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/63acc47c-946f-4d97-a9c1-4591aa8442b2', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 200s yielded = self.gen.send(value) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/63acc47c-946f-4d97-a9c1-4591aa8442b2 (::1) 3.940000ms referer=None 200s --------------------------- Captured stderr teardown --------------------------- 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 200s import json 200s File "/usr/lib/python3.13/json/__init__.py", line 107, in 200s from .encoder import JSONEncoder 200s File "/usr/lib/python3.13/json/encoder.py", line 19, in 200s ESCAPE_ASCII = re.compile(r'([\\"]|[^\ -~])') 200s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 200s return _compile(pattern, flags) 200s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 200s p = _compiler.compile(pattern, flags) 200s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 200s p = _parser.parse(p, flags) 200s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 200s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 200s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 200s itemsappend(_parse(source, state, verbose, nested + 1, 200s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s not nested and not items)) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3.13/re/_parser.py", line 868, in _parse 200s state.closegroup(group, p) 200s ~~~~~~~~~~~~~~~~^^^^^^^^^^ 200s File "/usr/lib/python3.13/re/_parser.py", line 98, in closegroup 200s self.groupwidths[gid] = p.getwidth() 200s ~~~~~~~~~~^^ 200s File "/usr/lib/python3.13/re/_parser.py", line 226, in getwidth 200s self.width = min(lo, MAXWIDTH), min(hi, MAXWIDTH) 200s ~~~^^^^^^^^^^^^^^ 200s KeyboardInterrupt 200s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 200s 200s self = 200s 200s def test_create_with_kernel_id(self): 200s # create a new kernel 200s r = self.request('POST', 'api/kernels') 200s r.raise_for_status() 200s kernel = r.json() 200s 200s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 200s self.assertEqual(resp.status_code, 201) 200s newsession = resp.json() 200s self.assertIn('id', newsession) 200s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 200s self.assertEqual(newsession['kernel']['id'], kernel['id']) 200s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 200s 200s sessions = self.sess_api.list().json() 200s > self.assertEqual(sessions, [newsession]) 200s E AssertionError: Lists differ: [{'id': '63acc47c-946f-4d97-a9c1-4591aa8442b2', 'p[553 chars]ne}}] != [{'id': 'a0237a31-083a-4a2c-b5ca-e6a7199479ea', 'p[279 chars]ne}}] 200s E 200s E First differing element 0: 200s E {'id': '63acc47c-946f-4d97-a9c1-4591aa8442b2', 'p[218 chars]: 0}} 200s E {'id': 'a0237a31-083a-4a2c-b5ca-e6a7199479ea', 'p[278 chars]one}} 200s E 200s E First list contains 1 additional elements. 200s E First extra element 1: 200s E {'id': 'a0237a31-083a-4a2c-b5ca-e6a7199479ea', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'd4535d6a-c5ce-4c79-a739-6985fec2755a', 'name': 'python3', 'last_activity': '2026-02-06T10:25:05.802176Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 200s E 200s E Diff is 830 characters long. Set self.maxDiff to None to see it. 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 200s gc.collect() 200s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 200s Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp20qc71n0/runtime/kernel-d4535d6a-c5ce-4c79-a739-6985fec2755a.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38597 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34589 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: d4535d6a-c5ce-4c79-a739-6985fec2755a, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.320000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.600000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.460000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.150000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ed2436d4-1eb7-496d-ab83-dfc6e8e41ccc 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ed2436d4-1eb7-496d-ab83-dfc6e8e41ccc 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/63acc47c-946f-4d97-a9c1-4591aa8442b2 (::1) 1.400000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d4535d6a-c5ce-4c79-a739-6985fec2755a 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d4535d6a-c5ce-4c79-a739-6985fec2755a 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a0237a31-083a-4a2c-b5ca-e6a7199479ea (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a0237a31-083a-4a2c-b5ca-e6a7199479ea', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 200s yielded = self.gen.send(value) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a0237a31-083a-4a2c-b5ca-e6a7199479ea (::1) 4.430000ms referer=None 200s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 200s 200s self = 200s 200s def test_modify_kernel_id(self): 200s before = self.sess_api.create('foo/nb1.ipynb').json() 200s sid = before['id'] 200s 200s # create a new kernel 200s r = self.request('POST', 'api/kernels') 200s r.raise_for_status() 200s kernel = r.json() 200s 200s # Attach our session to the existing kernel 200s > after = self.sess_api.modify_kernel_id(sid, kernel['id']).json() 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:250: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:82: in modify_kernel_id 200s return self._req('PATCH', id, body) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/55536774-75f4-45f4-af4f-1b5ea1d2f6e0 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 200s import jupyter_client 200s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 200s from .asynchronous import AsyncKernelClient 200s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 200s from .client import AsyncKernelClient # noqa 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 200s import zmq.asyncio 200s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 200s from zmq import sugar 200s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 200s from zmq.sugar import context, frame, poll, socket, tracker, version 200s File "/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 23, in 200s from .socket import Socket, SyncSocket 200s File "/usr/lib/python3/dist-packages/zmq/sugar/socket.py", line 9, in 200s import pickle 200s File "/usr/lib/python3.13/pickle.py", line 194, in 200s class _Framer: 200s ...<59 lines>... 200s write(payload) 200s KeyboardInterrupt 200s Traceback (most recent call last): 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 200s import jupyter_client 200s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 200s from .asynchronous import AsyncKernelClient 200s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 200s from .client import AsyncKernelClient # noqa 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 200s import zmq.asyncio 200s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 200s from zmq import backend 200s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 200s _ns = select_backend(first) 200s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 200s mod = import_module(name) 200s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 200s return _bootstrap._gcd_import(name[level:], package, level) 200s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 200s from . import _zmq 200s File "_zmq.py", line 39, in init zmq.backend.cython._zmq 200s File "", line 1349, in _find_and_load 200s KeyboardInterrupt 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp20qc71n0/runtime/kernel-de9a82f4-5b10-45b7-bc2f-90c0b0592079.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59375 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51523 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: de9a82f4-5b10-45b7-bc2f-90c0b0592079, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp20qc71n0/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.390000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp20qc71n0/runtime/kernel-e3d93781-f780-4114-b326-e431ebf8d90c.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34055 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37733 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: e3d93781-f780-4114-b326-e431ebf8d90c, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.740000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for de9a82f4-5b10-45b7-bc2f-90c0b0592079 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: de9a82f4-5b10-45b7-bc2f-90c0b0592079 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/55536774-75f4-45f4-af4f-1b5ea1d2f6e0 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/55536774-75f4-45f4-af4f-1b5ea1d2f6e0', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 200s yielded = self.gen.send(value) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 154, in patch 200s km.shutdown_kernel(before['kernel']['id']) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/55536774-75f4-45f4-af4f-1b5ea1d2f6e0 (::1) 8.820000ms referer=None 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.540000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e3d93781-f780-4114-b326-e431ebf8d90c 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e3d93781-f780-4114-b326-e431ebf8d90c 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/55536774-75f4-45f4-af4f-1b5ea1d2f6e0 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/55536774-75f4-45f4-af4f-1b5ea1d2f6e0', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 200s yielded = self.gen.send(value) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/55536774-75f4-45f4-af4f-1b5ea1d2f6e0 (::1) 9.840000ms referer=None 200s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 200s 200s self = 200s 200s def test_modify_kernel_name(self): 200s before = self.sess_api.create('foo/nb1.ipynb').json() 200s sid = before['id'] 200s 200s after = self.sess_api.modify_kernel_name(sid, before['kernel']['name']).json() 200s self.assertEqual(after['id'], sid) 200s self.assertEqual(after['path'], before['path']) 200s self.assertEqual(after['type'], before['type']) 200s self.assertNotEqual(after['kernel']['id'], before['kernel']['id']) 200s 200s # check kernel list, to be sure previous kernel was cleaned up 200s r = self.request('GET', 'api/kernels') 200s r.raise_for_status() 200s kernel_list = r.json() 200s after['kernel'].pop('last_activity') 200s [ k.pop('last_activity') for k in kernel_list ] 200s > self.assertEqual(kernel_list, [after['kernel']]) 200s E AssertionError: Lists differ: [{'id': 'de9a82f4-5b10-45b7-bc2f-90c0b0592079', 'n[177 chars]: 0}] != [{'id': '989f47c5-6007-45e7-a6cb-bb09c6e2ed01', 'n[61 chars]: 0}] 200s E 200s E First differing element 0: 200s E {'id': 'de9a82f4-5b10-45b7-bc2f-90c0b0592079', 'n[60 chars]': 0} 200s E {'id': '989f47c5-6007-45e7-a6cb-bb09c6e2ed01', 'n[60 chars]': 0} 200s E 200s E First list contains 1 additional elements. 200s E First extra element 1: 200s E {'id': '989f47c5-6007-45e7-a6cb-bb09c6e2ed01', 'name': 'python3', 'execution_state': 'starting', 'connections': 0} 200s E 200s E [{'connections': 0, 200s E - 'execution_state': 'starting', 200s E - 'id': 'de9a82f4-5b10-45b7-bc2f-90c0b0592079', 200s E - 'name': 'python3'}, 200s E - {'connections': 0, 200s E 'execution_state': 'starting', 200s E 'id': '989f47c5-6007-45e7-a6cb-bb09c6e2ed01', 200s E 'name': 'python3'}] 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:238: AssertionError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.690000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp20qc71n0/runtime/kernel-989f47c5-6007-45e7-a6cb-bb09c6e2ed01.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47779 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37671 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 989f47c5-6007-45e7-a6cb-bb09c6e2ed01, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp20qc71n0/notebooks/foo'} 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e3d93781-f780-4114-b326-e431ebf8d90c 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e3d93781-f780-4114-b326-e431ebf8d90c 200s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/55536774-75f4-45f4-af4f-1b5ea1d2f6e0 (::1) 16.030000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.670000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.650000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 989f47c5-6007-45e7-a6cb-bb09c6e2ed01 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 989f47c5-6007-45e7-a6cb-bb09c6e2ed01 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/55536774-75f4-45f4-af4f-1b5ea1d2f6e0 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/55536774-75f4-45f4-af4f-1b5ea1d2f6e0', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 200s yielded = self.gen.send(value) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/55536774-75f4-45f4-af4f-1b5ea1d2f6e0 (::1) 4.730000ms referer=None 200s __________________ SessionAPITest.test_modify_path_deprecated __________________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b29deb86-3aa4-46e5-802c-52e81b9a48ae 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp20qc71n0/runtime/kernel-ac61da78-257f-4c0e-9aaa-db7026516915.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52757 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50615 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: ac61da78-257f-4c0e-9aaa-db7026516915, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp20qc71n0/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.860000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s WARNING NotebookApp:handlers.py:124 Sessions API changed, see updated swagger docs 200s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/b29deb86-3aa4-46e5-802c-52e81b9a48ae (::1) 1.550000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.460000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ac61da78-257f-4c0e-9aaa-db7026516915 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ac61da78-257f-4c0e-9aaa-db7026516915 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b29deb86-3aa4-46e5-802c-52e81b9a48ae (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b29deb86-3aa4-46e5-802c-52e81b9a48ae', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 200s yielded = self.gen.send(value) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b29deb86-3aa4-46e5-802c-52e81b9a48ae (::1) 5.140000ms referer=None 200s --------------------------- Captured stderr teardown --------------------------- 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 200s import json 200s File "/usr/lib/python3.13/json/__init__.py", line 110, in 200s _default_encoder = JSONEncoder( 200s skipkeys=False, 200s ...<5 lines>... 200s default=None, 200s ) 200s KeyboardInterrupt 200s _______________________ SessionAPITest.test_modify_type ________________________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/108cf00d-8e54-45ee-a8d2-e047068ffd03 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp20qc71n0/runtime/kernel-979f4123-b92f-4214-b61e-801bd012a1e2.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36763 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42525 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 979f4123-b92f-4214-b61e-801bd012a1e2, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp20qc71n0/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.010000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/108cf00d-8e54-45ee-a8d2-e047068ffd03 (::1) 1.620000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.450000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ac61da78-257f-4c0e-9aaa-db7026516915 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ac61da78-257f-4c0e-9aaa-db7026516915 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/b29deb86-3aa4-46e5-802c-52e81b9a48ae (::1) 1.440000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 979f4123-b92f-4214-b61e-801bd012a1e2 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 979f4123-b92f-4214-b61e-801bd012a1e2 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/108cf00d-8e54-45ee-a8d2-e047068ffd03 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/108cf00d-8e54-45ee-a8d2-e047068ffd03', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 200s yielded = self.gen.send(value) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/108cf00d-8e54-45ee-a8d2-e047068ffd03 (::1) 4.080000ms referer=None 200s --------------------------- Captured stderr teardown --------------------------- 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 200s from subprocess import PIPE, Popen 200s File "/usr/lib/python3.13/subprocess.py", line 51, in 200s import threading 200s File "", line 1360, in _find_and_load 200s File "", line 1331, in _find_and_load_unlocked 200s File "", line 935, in _load_unlocked 200s File "", line 1019, in exec_module 200s File "", line 1115, in get_code 200s File "", line 1215, in get_data 200s KeyboardInterrupt 200s ---------------------------- Captured log teardown ----------------------------- 200s INFO NotebookApp:notebookapp.py:2164 Shutting down 2 kernels 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: de9a82f4-5b10-45b7-bc2f-90c0b0592079 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 979f4123-b92f-4214-b61e-801bd012a1e2 200s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 200s _______________________ AsyncSessionAPITest.test_create ________________________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/be725a4b-1b5b-49bb-814e-93d46ba89652 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ------------------------------ Captured log setup ------------------------------ 200s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmposaf1ii9/config', '/tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmposaf1ii9/etc/jupyter'] for config files 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmposaf1ii9/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmposaf1ii9/config 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmposaf1ii9/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmposaf1ii9/config 200s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmposaf1ii9/notebooks 200s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 200s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 200s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 200s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 200s WARNING NotebookApp:handlers.py:612 Forbidden 200s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.380000ms referer=None 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.760000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmposaf1ii9/runtime/kernel-7bd6d04a-eb13-4726-9729-c997fe919daf.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47003 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44939 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7bd6d04a-eb13-4726-9729-c997fe919daf, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmposaf1ii9/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.950000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.480000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/be725a4b-1b5b-49bb-814e-93d46ba89652 (::1) 1.380000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.420000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7bd6d04a-eb13-4726-9729-c997fe919daf 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7bd6d04a-eb13-4726-9729-c997fe919daf 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/be725a4b-1b5b-49bb-814e-93d46ba89652 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/be725a4b-1b5b-49bb-814e-93d46ba89652', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/be725a4b-1b5b-49bb-814e-93d46ba89652 (::1) 4.440000ms referer=None 200s --------------------------- Captured stderr teardown --------------------------- 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 200s from subprocess import PIPE, Popen 200s File "/usr/lib/python3.13/subprocess.py", line 46, in 200s import locale 200s File "/usr/lib/python3.13/locale.py", line 180, in 200s _percent_re = re.compile(r'%(?:\((?P.*?)\))?' 200s r'(?P[-#0-9 +*.hlL]*?)[eEfFgGdiouxXcrs%]') 200s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 200s return _compile(pattern, flags) 200s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 200s p = _compiler.compile(pattern, flags) 200s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 200s p = _parser.parse(p, flags) 200s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 200s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 200s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 200s itemsappend(_parse(source, state, verbose, nested + 1, 200s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s not nested and not items)) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3.13/re/_parser.py", line 715, in _parse 200s if sourcematch("?"): 200s ~~~~~~~~~~~^^^^^ 200s File "/usr/lib/python3.13/re/_parser.py", line 255, in match 200s def match(self, char): 200s 200s KeyboardInterrupt 200s _______________ AsyncSessionAPITest.test_create_console_session ________________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/dd27c78d-3a8a-4510-9c80-77ab2f4e35cb 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmposaf1ii9/runtime/kernel-4f788435-b315-489f-bfab-94d81c1259df.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46775 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46525 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4f788435-b315-489f-bfab-94d81c1259df, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmposaf1ii9/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.760000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.940000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7bd6d04a-eb13-4726-9729-c997fe919daf 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7bd6d04a-eb13-4726-9729-c997fe919daf 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/be725a4b-1b5b-49bb-814e-93d46ba89652 (::1) 0.590000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4f788435-b315-489f-bfab-94d81c1259df 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4f788435-b315-489f-bfab-94d81c1259df 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/dd27c78d-3a8a-4510-9c80-77ab2f4e35cb (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/dd27c78d-3a8a-4510-9c80-77ab2f4e35cb', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/dd27c78d-3a8a-4510-9c80-77ab2f4e35cb (::1) 4.280000ms referer=None 200s --------------------------- Captured stderr teardown --------------------------- 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 200s from subprocess import PIPE, Popen 200s File "", line 1360, in _find_and_load 200s File "", line 1331, in _find_and_load_unlocked 200s File "", line 935, in _load_unlocked 200s File "", line 1019, in exec_module 200s File "", line 1152, in get_code 200s File "", line 781, in _compile_bytecode 200s KeyboardInterrupt 200s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c3d2ca83-8802-40d6-b92e-d9c8b70ec77c 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmposaf1ii9/runtime/kernel-3fc9aaee-dd38-4c18-9e2f-638c59d028b1.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54051 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51363 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3fc9aaee-dd38-4c18-9e2f-638c59d028b1, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmposaf1ii9/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.560000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.470000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4f788435-b315-489f-bfab-94d81c1259df 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4f788435-b315-489f-bfab-94d81c1259df 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/dd27c78d-3a8a-4510-9c80-77ab2f4e35cb (::1) 0.520000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3fc9aaee-dd38-4c18-9e2f-638c59d028b1 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3fc9aaee-dd38-4c18-9e2f-638c59d028b1 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c3d2ca83-8802-40d6-b92e-d9c8b70ec77c (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c3d2ca83-8802-40d6-b92e-d9c8b70ec77c', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s --------------------------- Captured stderr teardown --------------------------- 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 200s from subprocess import PIPE, Popen 200s File "/usr/lib/python3.13/subprocess.py", line 46, in 200s import locale 200s File "", line 1357, in _find_and_load 200s File "", line 418, in __enter__ 200s File "", line 316, in acquire 200s KeyboardInterrupt 200s _________________ AsyncSessionAPITest.test_create_file_session _________________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f030cccb-0449-4bf0-b0dd-0a99c08a39fa 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmposaf1ii9/runtime/kernel-d3502940-d551-4a0e-bf4a-1f139a1f6f16.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35891 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58067 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: d3502940-d551-4a0e-bf4a-1f139a1f6f16, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmposaf1ii9/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.710000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.420000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3fc9aaee-dd38-4c18-9e2f-638c59d028b1 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3fc9aaee-dd38-4c18-9e2f-638c59d028b1 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c3d2ca83-8802-40d6-b92e-d9c8b70ec77c (::1) 0.650000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d3502940-d551-4a0e-bf4a-1f139a1f6f16 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d3502940-d551-4a0e-bf4a-1f139a1f6f16 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f030cccb-0449-4bf0-b0dd-0a99c08a39fa (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f030cccb-0449-4bf0-b0dd-0a99c08a39fa', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s --------------------------- Captured stderr teardown --------------------------- 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 200s import json 200s File "/usr/lib/python3.13/json/__init__.py", line 107, in 200s from .encoder import JSONEncoder 200s File "/usr/lib/python3.13/json/encoder.py", line 19, in 200s ESCAPE_ASCII = re.compile(r'([\\"]|[^\ -~])') 200s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 200s return _compile(pattern, flags) 200s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 200s p = _compiler.compile(pattern, flags) 200s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 200s code = _code(p, flags) 200s File "/usr/lib/python3.13/re/_compiler.py", line 585, in _code 200s _compile(code, p.data, flags) 200s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3.13/re/_compiler.py", line 126, in _compile 200s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 200s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3.13/re/_compiler.py", line 174, in _compile 200s _compile(code, av, flags) 200s ~~~~~~~~^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3.13/re/_compiler.py", line 96, in _compile 200s _compile_charset(charset, flags, code) 200s ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3.13/re/_compiler.py", line 218, in _compile_charset 200s emit(op) 200s ~~~~^^^^ 200s KeyboardInterrupt 200s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 200s 200s self = 200s 200s def test_create_with_kernel_id(self): 200s # create a new kernel 200s r = self.request('POST', 'api/kernels') 200s r.raise_for_status() 200s kernel = r.json() 200s 200s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 200s self.assertEqual(resp.status_code, 201) 200s newsession = resp.json() 200s self.assertIn('id', newsession) 200s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 200s self.assertEqual(newsession['kernel']['id'], kernel['id']) 200s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 200s 200s sessions = self.sess_api.list().json() 200s > self.assertEqual(sessions, [newsession]) 200s E AssertionError: Lists differ: [{'id': 'f030cccb-0449-4bf0-b0dd-0a99c08a39fa', 'p[553 chars]ne}}] != [{'id': '9fa37921-2363-4921-8cd9-6ea02eaf25d4', 'p[279 chars]ne}}] 200s E 200s E First differing element 0: 200s E {'id': 'f030cccb-0449-4bf0-b0dd-0a99c08a39fa', 'p[218 chars]: 0}} 200s E {'id': '9fa37921-2363-4921-8cd9-6ea02eaf25d4', 'p[278 chars]one}} 200s E 200s E First list contains 1 additional elements. 200s E First extra element 1: 200s E {'id': '9fa37921-2363-4921-8cd9-6ea02eaf25d4', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'a0dc3ee7-9291-466e-9b16-b4ff688c2ee6', 'name': 'python3', 'last_activity': '2026-02-06T10:25:06.490008Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 200s E 200s E Diff is 830 characters long. Set self.maxDiff to None to see it. 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmposaf1ii9/runtime/kernel-a0dc3ee7-9291-466e-9b16-b4ff688c2ee6.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43599 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50457 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: a0dc3ee7-9291-466e-9b16-b4ff688c2ee6, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.540000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.630000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.390000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.450000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d3502940-d551-4a0e-bf4a-1f139a1f6f16 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d3502940-d551-4a0e-bf4a-1f139a1f6f16 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/f030cccb-0449-4bf0-b0dd-0a99c08a39fa (::1) 0.580000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a0dc3ee7-9291-466e-9b16-b4ff688c2ee6 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a0dc3ee7-9291-466e-9b16-b4ff688c2ee6 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9fa37921-2363-4921-8cd9-6ea02eaf25d4 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9fa37921-2363-4921-8cd9-6ea02eaf25d4', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 200s 200s self = 200s 200s def test_modify_kernel_id(self): 200s before = self.sess_api.create('foo/nb1.ipynb').json() 200s sid = before['id'] 200s 200s # create a new kernel 200s r = self.request('POST', 'api/kernels') 200s r.raise_for_status() 200s kernel = r.json() 200s 200s # Attach our session to the existing kernel 200s > after = self.sess_api.modify_kernel_id(sid, kernel['id']).json() 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:250: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:82: in modify_kernel_id 200s return self._req('PATCH', id, body) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a00533b4-5808-4b80-8cc5-6d5601b6830a 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 200s import jupyter_client 200s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 200s from .asynchronous import AsyncKernelClient 200s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 200s from .client import AsyncKernelClient # noqa 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 200s import zmq.asyncio 200s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 200s from zmq import backend 200s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 200s _ns = select_backend(first) 200s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 200s mod = import_module(name) 200s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 200s return _bootstrap._gcd_import(name[level:], package, level) 200s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 200s from . import _zmq 200s File "_zmq.py", line 156, in init zmq.backend.cython._zmq 200s File "/usr/lib/python3/dist-packages/zmq/constants.py", line 134, in 200s class SocketOption(IntEnum): 200s ...<138 lines>... 200s NORM_PUSH = 124 200s File "/usr/lib/python3.13/enum.py", line 568, in __new__ 200s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 200s File "/usr/lib/python3.13/enum.py", line 251, in __set_name__ 200s def __set_name__(self, enum_class, member_name): 200s 200s KeyboardInterrupt 200s Error calling __set_name__ on '_proto_member' instance 'RECONNECT_IVL' in 'SocketOption' 200s Traceback (most recent call last): 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 200s import jupyter_client 200s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 200s from .asynchronous import AsyncKernelClient 200s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 200s from .client import AsyncKernelClient # noqa 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 200s import zmq.asyncio 200s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 200s from zmq import sugar 200s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 200s from zmq.sugar import context, frame, poll, socket, tracker, version 200s File "/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 23, in 200s from .socket import Socket, SyncSocket 200s File "/usr/lib/python3/dist-packages/zmq/sugar/socket.py", line 35, in 200s from .poll import Poller 200s File "", line 1360, in _find_and_load 200s File "", line 1322, in _find_and_load_unlocked 200s File "", line 1262, in _find_spec 200s File "", line 1556, in find_spec 200s File "", line 1530, in _get_spec 200s File "", line 1661, in find_spec 200s KeyboardInterrupt 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmposaf1ii9/runtime/kernel-d0711875-c204-4a74-b92e-9ea5ca433725.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35161 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35113 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: d0711875-c204-4a74-b92e-9ea5ca433725, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmposaf1ii9/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.160000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmposaf1ii9/runtime/kernel-b28f12e2-496d-4b0a-acbd-ea6dbb212268.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56027 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41475 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: b28f12e2-496d-4b0a-acbd-ea6dbb212268, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.070000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d0711875-c204-4a74-b92e-9ea5ca433725 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d0711875-c204-4a74-b92e-9ea5ca433725 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/a00533b4-5808-4b80-8cc5-6d5601b6830a (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/a00533b4-5808-4b80-8cc5-6d5601b6830a', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 153, in patch 200s yield maybe_future( 200s km.shutdown_kernel(before['kernel']['id']) 200s ) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/a00533b4-5808-4b80-8cc5-6d5601b6830a (::1) 7.290000ms referer=None 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.500000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b28f12e2-496d-4b0a-acbd-ea6dbb212268 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b28f12e2-496d-4b0a-acbd-ea6dbb212268 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a00533b4-5808-4b80-8cc5-6d5601b6830a (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a00533b4-5808-4b80-8cc5-6d5601b6830a', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a00533b4-5808-4b80-8cc5-6d5601b6830a (::1) 8.050000ms referer=None 200s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 200s 200s self = 200s 200s def test_modify_kernel_name(self): 200s before = self.sess_api.create('foo/nb1.ipynb').json() 200s sid = before['id'] 200s 200s after = self.sess_api.modify_kernel_name(sid, before['kernel']['name']).json() 200s self.assertEqual(after['id'], sid) 200s self.assertEqual(after['path'], before['path']) 200s self.assertEqual(after['type'], before['type']) 200s self.assertNotEqual(after['kernel']['id'], before['kernel']['id']) 200s 200s # check kernel list, to be sure previous kernel was cleaned up 200s r = self.request('GET', 'api/kernels') 200s r.raise_for_status() 200s kernel_list = r.json() 200s after['kernel'].pop('last_activity') 200s [ k.pop('last_activity') for k in kernel_list ] 200s > self.assertEqual(kernel_list, [after['kernel']]) 200s E AssertionError: Lists differ: [{'id': 'd0711875-c204-4a74-b92e-9ea5ca433725', 'n[177 chars]: 0}] != [{'id': '3c4a00d1-1224-4ca7-af61-6ac5a664d662', 'n[61 chars]: 0}] 200s E 200s E First differing element 0: 200s E {'id': 'd0711875-c204-4a74-b92e-9ea5ca433725', 'n[60 chars]': 0} 200s E {'id': '3c4a00d1-1224-4ca7-af61-6ac5a664d662', 'n[60 chars]': 0} 200s E 200s E First list contains 1 additional elements. 200s E First extra element 1: 200s E {'id': '3c4a00d1-1224-4ca7-af61-6ac5a664d662', 'name': 'python3', 'execution_state': 'starting', 'connections': 0} 200s E 200s E [{'connections': 0, 200s E - 'execution_state': 'starting', 200s E - 'id': 'd0711875-c204-4a74-b92e-9ea5ca433725', 200s E - 'name': 'python3'}, 200s E - {'connections': 0, 200s E 'execution_state': 'starting', 200s E 'id': '3c4a00d1-1224-4ca7-af61-6ac5a664d662', 200s E 'name': 'python3'}] 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:238: AssertionError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.700000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmposaf1ii9/runtime/kernel-3c4a00d1-1224-4ca7-af61-6ac5a664d662.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40671 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42257 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3c4a00d1-1224-4ca7-af61-6ac5a664d662, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmposaf1ii9/notebooks/foo'} 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b28f12e2-496d-4b0a-acbd-ea6dbb212268 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b28f12e2-496d-4b0a-acbd-ea6dbb212268 200s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/a00533b4-5808-4b80-8cc5-6d5601b6830a (::1) 13.700000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.440000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.420000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3c4a00d1-1224-4ca7-af61-6ac5a664d662 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3c4a00d1-1224-4ca7-af61-6ac5a664d662 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a00533b4-5808-4b80-8cc5-6d5601b6830a (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a00533b4-5808-4b80-8cc5-6d5601b6830a', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a00533b4-5808-4b80-8cc5-6d5601b6830a (::1) 4.170000ms referer=None 200s _______________ AsyncSessionAPITest.test_modify_path_deprecated ________________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3cce7c85-503a-491e-acb4-5511cc0c1372 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmposaf1ii9/runtime/kernel-c0d2ad10-7174-43a1-873b-07a4f8911885.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60681 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42473 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: c0d2ad10-7174-43a1-873b-07a4f8911885, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmposaf1ii9/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.320000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s WARNING NotebookApp:handlers.py:124 Sessions API changed, see updated swagger docs 200s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/3cce7c85-503a-491e-acb4-5511cc0c1372 (::1) 1.440000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.210000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c0d2ad10-7174-43a1-873b-07a4f8911885 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c0d2ad10-7174-43a1-873b-07a4f8911885 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3cce7c85-503a-491e-acb4-5511cc0c1372 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3cce7c85-503a-491e-acb4-5511cc0c1372', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/3cce7c85-503a-491e-acb4-5511cc0c1372 (::1) 3.880000ms referer=None 200s --------------------------- Captured stderr teardown --------------------------- 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 200s import json 200s KeyboardInterrupt 200s _____________________ AsyncSessionAPITest.test_modify_type _____________________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c2117216-7bab-4c45-8ab1-239e5603930c 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmposaf1ii9/runtime/kernel-2d5bf6fb-8e33-4c76-b90e-92202d27bcd7.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54851 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56453 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2d5bf6fb-8e33-4c76-b90e-92202d27bcd7, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmposaf1ii9/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.080000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/c2117216-7bab-4c45-8ab1-239e5603930c (::1) 1.270000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.180000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c0d2ad10-7174-43a1-873b-07a4f8911885 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c0d2ad10-7174-43a1-873b-07a4f8911885 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/3cce7c85-503a-491e-acb4-5511cc0c1372 (::1) 1.270000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2d5bf6fb-8e33-4c76-b90e-92202d27bcd7 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2d5bf6fb-8e33-4c76-b90e-92202d27bcd7 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c2117216-7bab-4c45-8ab1-239e5603930c (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c2117216-7bab-4c45-8ab1-239e5603930c', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c2117216-7bab-4c45-8ab1-239e5603930c (::1) 3.860000ms referer=None 200s --------------------------- Captured stderr teardown --------------------------- 200s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 200s from subprocess import PIPE, Popen 200s File "/usr/lib/python3.13/subprocess.py", line 51, in 200s import threading 200s File "", line 1360, in _find_and_load 200s File "", line 1331, in _find_and_load_unlocked 200s File "", line 935, in _load_unlocked 200s File "", line 1019, in exec_module 200s File "", line 1152, in get_code 200s File "", line 781, in _compile_bytecode 200s KeyboardInterrupt 200s ---------------------------- Captured log teardown ----------------------------- 200s INFO NotebookApp:notebookapp.py:2164 Shutting down 2 kernels 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c0d2ad10-7174-43a1-873b-07a4f8911885 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d3502940-d551-4a0e-bf4a-1f139a1f6f16 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3c4a00d1-1224-4ca7-af61-6ac5a664d662 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3fc9aaee-dd38-4c18-9e2f-638c59d028b1 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d0711875-c204-4a74-b92e-9ea5ca433725 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4f788435-b315-489f-bfab-94d81c1259df 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7bd6d04a-eb13-4726-9729-c997fe919daf 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b28f12e2-496d-4b0a-acbd-ea6dbb212268 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2d5bf6fb-8e33-4c76-b90e-92202d27bcd7 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a0dc3ee7-9291-466e-9b16-b4ff688c2ee6 200s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 200s =============================== warnings summary =============================== 200s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 200s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 200s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 200s return LooseVersion(v) >= LooseVersion(check) 200s 200s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 200s auth/tests/test_login.py: 2 warnings 200s bundler/tests/test_bundler_api.py: 2 warnings 200s services/api/tests/test_api.py: 4 warnings 200s services/config/tests/test_config_api.py: 7 warnings 200s services/contents/tests/test_contents_api.py: 318 warnings 200s services/kernels/tests/test_kernels_api.py: 104 warnings 200s services/kernelspecs/tests/test_kernelspecs_api.py: 7 warnings 200s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 200s services/sessions/tests/test_sessionmanager.py: 9 warnings 200s services/sessions/tests/test_sessions_api.py: 128 warnings 200s terminal/tests/test_terminals_api.py: 50 warnings 200s tests/test_files.py: 2 warnings 200s tests/test_gateway.py: 21 warnings 200s tests/test_notebookapp.py: 8 warnings 200s tests/test_paths.py: 2 warnings 200s tree/tests/test_tree_handler.py: 2 warnings 200s /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). 200s dt = unaware(*args, **kwargs) 200s 200s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 200s /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 200s pytestmark = pytest.mark.integration_tests 200s 200s auth/tests/test_login.py: 3 warnings 200s bundler/tests/test_bundler_api.py: 3 warnings 200s services/api/tests/test_api.py: 3 warnings 200s services/config/tests/test_config_api.py: 3 warnings 200s services/contents/tests/test_contents_api.py: 6 warnings 200s services/kernels/tests/test_kernels_api.py: 12 warnings 200s services/kernelspecs/tests/test_kernelspecs_api.py: 3 warnings 200s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 200s services/sessions/tests/test_sessions_api.py: 6 warnings 200s terminal/tests/test_terminals_api.py: 6 warnings 200s tests/test_files.py: 3 warnings 200s tests/test_gateway.py: 3 warnings 200s tests/test_notebookapp.py: 11 warnings 200s tests/test_paths.py: 3 warnings 200s tree/tests/test_tree_handler.py: 3 warnings 200s /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 200s policy = events.get_event_loop_policy() 200s 200s auth/tests/test_login.py: 9 warnings 200s bundler/tests/test_bundler_api.py: 9 warnings 200s services/api/tests/test_api.py: 9 warnings 200s services/config/tests/test_config_api.py: 9 warnings 200s services/contents/tests/test_contents_api.py: 18 warnings 200s services/kernels/tests/test_kernels_api.py: 47 warnings 200s services/kernelspecs/tests/test_kernelspecs_api.py: 9 warnings 200s services/nbconvert/tests/test_nbconvert_api.py: 9 warnings 200s services/sessions/tests/test_sessionmanager.py: 18 warnings 200s services/sessions/tests/test_sessions_api.py: 19 warnings 200s terminal/tests/test_terminals_api.py: 18 warnings 200s tests/test_files.py: 9 warnings 200s tests/test_gateway.py: 9 warnings 200s tests/test_notebookapp.py: 28 warnings 200s tests/test_paths.py: 9 warnings 200s tree/tests/test_tree_handler.py: 9 warnings 200s /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 200s loop = events.get_event_loop_policy().get_event_loop() 200s 200s bundler/tests/test_bundler_api.py: 6 warnings 200s services/api/tests/test_api.py: 6 warnings 200s services/contents/tests/test_contents_api.py: 806 warnings 200s services/contents/tests/test_largefilemanager.py: 42 warnings 200s services/contents/tests/test_manager.py: 526 warnings 200s tests/test_files.py: 8 warnings 200s tree/tests/test_tree_handler.py: 6 warnings 200s /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). 200s dt = unaware(*args, **kwargs) 200s 200s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 200s services/kernels/tests/test_kernels_api.py::KernelCullingTest::test_culling 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 200s loop.make_current() 200s 200s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs 200s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs_bad 200s /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/tmphqltx6pc/data/kernels/sample 2 200s d = self.find_kernel_specs() 200s 200s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal 200s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 200s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 200s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_with_name 200s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_handler 200s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 200s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 200s terminal/tests/test_terminals_api.py::TerminalCullingTest::test_culling 200s /usr/lib/python3.14/pty.py:66: DeprecationWarning: This process (pid=3018) is multi-threaded, use of forkpty() may lead to deadlocks in the child. 200s pid, fd = os.forkpty() 200s 200s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 200s /usr/lib/python3/dist-packages/jinja2/nodes.py:143: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 200s for name, arg in zip(self.fields, fields): 200s Enable tracemalloc to get traceback where the object was allocated. 200s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 200s 200s tests/test_gateway.py::TestGateway::test_gateway_kernel_lifecycle 200s tests/test_gateway.py::TestGateway::test_gateway_session_lifecycle 200s /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). 200s dt = datetime.utcnow().isoformat() + 'Z' 200s 200s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 200s =========================== short test summary info ============================ 200s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:86: Pandoc wasn't found. Skipping this test. 200s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:101: Pandoc wasn't found. Skipping this test. 200s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:109: Pandoc wasn't found. Skipping this test. 200s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:119: Pandoc wasn't found. Skipping this test. 200s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:128: Pandoc wasn't found. Skipping this test. 200s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:145: Pandoc wasn't found. Skipping this test. 200s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:682: skip send2trash tests 200s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:592: skip send2trash tests 200s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:606: skip send2trash tests 200s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:616: skip send2trash tests 200s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:332: skip send2trash tests 200s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:658: skip send2trash tests 200s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:727: skip send2trash tests 200s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/tests/test_utils.py:83: run on windows only 200s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 200s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 200s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 200s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 200s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 200s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 200s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 200s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 200s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 200s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 200s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 200s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 200s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 200s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 200s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 200s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 200s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_path_deprecated 200s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_type 200s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 200s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 200s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 200s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 200s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 200s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 200s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 200s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_path_deprecated 200s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_type 200s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 200s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 200s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 200s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 200s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 200s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 200s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 200s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 200s = 27 failed, 277 passed, 20 skipped, 6 deselected, 2397 warnings, 8 errors in 23.35s = 201s *** END OF RUN 1: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 201s *** 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 203s ============================= test session starts ============================== 203s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 203s rootdir: /tmp/autopkgtest.g9YpMG/autopkgtest_tmp 203s plugins: typeguard-4.4.4 203s collected 330 items / 303 deselected / 27 selected 203s run-last-failure: rerun previous 27 failures 203s 204s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 33%] 205s services/sessions/tests/test_sessions_api.py FFFFFEFF.FFFFFFEFF.F [100%] 205s 205s ==================================== ERRORS ==================================== 205s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 205s 205s self = 205s 205s def tearDown(self): 205s for k in self.kern_api.list().json(): 205s > self.kern_api.shutdown(k['id']) 205s 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 205s return self._req('DELETE', id) 205s ^^^^^^^^^^^^^^^^^^^^^^^ 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 205s response.raise_for_status() 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s self = 205s 205s def raise_for_status(self): 205s """Raises :class:`HTTPError`, if one occurred.""" 205s 205s http_error_msg = "" 205s if isinstance(self.reason, bytes): 205s # We attempt to decode utf-8 first because some servers 205s # choose to localize their reason strings. If the string 205s # isn't utf-8, we fall back to iso-8859-1 for all other 205s # encodings. (See PR #3538) 205s try: 205s reason = self.reason.decode("utf-8") 205s except UnicodeDecodeError: 205s reason = self.reason.decode("iso-8859-1") 205s else: 205s reason = self.reason 205s 205s if 400 <= self.status_code < 500: 205s http_error_msg = ( 205s f"{self.status_code} Client Error: {reason} for url: {self.url}" 205s ) 205s 205s elif 500 <= self.status_code < 600: 205s http_error_msg = ( 205s f"{self.status_code} Server Error: {reason} for url: {self.url}" 205s ) 205s 205s if http_error_msg: 205s > raise HTTPError(http_error_msg, response=self) 205s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/caabf53b-e408-444c-b725-3a337dd95220 205s 205s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 205s ----------------------------- Captured stderr call ----------------------------- 205s Traceback (most recent call last): 205s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 205s return _run_code(code, main_globals, None, 205s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 205s exec(code, run_globals) 205s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 205s from pathlib import Path 205s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 205s from ._abc import * 205s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 205s from glob import _Globber, _no_recurse_symlinks 205s File "/usr/lib/python3.13/glob.py", line 5, in 205s import re 205s File "/usr/lib/python3.13/re/__init__.py", line 125, in 205s import enum 205s File "/usr/lib/python3.13/enum.py", line 1355, in 205s class StrEnum(str, ReprEnum): 205s File "/usr/lib/python3.13/enum.py", line 568, in __new__ 205s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 205s KeyboardInterrupt 205s Traceback (most recent call last): 205s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 205s return _run_code(code, main_globals, None, 205s "__main__", mod_spec) 205s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 205s exec(code, run_globals) 205s ~~~~^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 205s from ipykernel import kernelapp as app 205s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 205s from .connect import * # noqa: F403 205s ^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 205s import jupyter_client 205s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 205s from .asynchronous import AsyncKernelClient 205s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 205s from .client import AsyncKernelClient # noqa 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 205s import zmq.asyncio 205s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 205s import asyncio 205s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 205s from .base_events import * 205s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 205s import ssl 205s File "/usr/lib/python3.13/ssl.py", line 143, in 205s _IntFlag._convert_( 205s ~~~~~~~~~~~~~~~~~~^ 205s 'VerifyFlags', __name__, 205s ^^^^^^^^^^^^^^^^^^^^^^^^ 205s lambda name: name.startswith('VERIFY_'), 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s source=_ssl) 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3.13/enum.py", line 928, in _convert_ 205s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 205s File "/usr/lib/python3.13/enum.py", line 1864, in convert_class 205s gnv_last_values.append(value) 205s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s KeyboardInterrupt 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpb2t4_8cp/runtime/kernel-caabf53b-e408-444c-b725-3a337dd95220.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46297 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51539 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: caabf53b-e408-444c-b725-3a337dd95220, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.880000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.370000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpb2t4_8cp/runtime/kernel-374faa06-0ad1-4f76-9e58-e1bb4581540e.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55539 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51893 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: 374faa06-0ad1-4f76-9e58-e1bb4581540e, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.200000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.450000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 374faa06-0ad1-4f76-9e58-e1bb4581540e 205s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/374faa06-0ad1-4f76-9e58-e1bb4581540e/interrupt (::1) 1.870000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 205s yield maybe_future(km.restart_kernel(kernel_id)) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 205s raise self._exception.with_traceback(self._exception_tb) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 205s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 205s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 205s await ensure_async(kernel.restart_kernel(now=now)) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 205s await self._async_shutdown_kernel(now=now, restart=True) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:log.py:55 { 205s "Host": "localhost:12341", 205s "Accept": "*/*", 205s "User-Agent": "python-requests/2.32.5" 205s } 205s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/374faa06-0ad1-4f76-9e58-e1bb4581540e/restart (::1) 6.230000ms referer=None 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.390000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for caabf53b-e408-444c-b725-3a337dd95220 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: caabf53b-e408-444c-b725-3a337dd95220 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/caabf53b-e408-444c-b725-3a337dd95220 (::1) 205s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/caabf53b-e408-444c-b725-3a337dd95220', version='HTTP/1.1', remote_ip='::1') 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 205s result = await result 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 205s yielded = ctx_run(next, result) 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 205s yield maybe_future(km.shutdown_kernel(kernel_id)) 205s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 205s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 205s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 205s stopper = ensure_async(km.shutdown_kernel(now, restart)) 205s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s WARNING NotebookApp:handlers.py:612 Unhandled error 205s ERROR NotebookApp:log.py:55 { 205s "Host": "localhost:12341", 205s "Accept": "*/*", 205s "User-Agent": "python-requests/2.32.5" 205s } 205s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/caabf53b-e408-444c-b725-3a337dd95220 (::1) 4.540000ms referer=None 205s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 205s 205s self = 205s 205s def tearDown(self): 205s for k in self.kern_api.list().json(): 205s > self.kern_api.shutdown(k['id']) 205s 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 205s return self._req('DELETE', id) 205s ^^^^^^^^^^^^^^^^^^^^^^^ 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 205s response.raise_for_status() 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s self = 205s 205s def raise_for_status(self): 205s """Raises :class:`HTTPError`, if one occurred.""" 205s 205s http_error_msg = "" 205s if isinstance(self.reason, bytes): 205s # We attempt to decode utf-8 first because some servers 205s # choose to localize their reason strings. If the string 205s # isn't utf-8, we fall back to iso-8859-1 for all other 205s # encodings. (See PR #3538) 205s try: 205s reason = self.reason.decode("utf-8") 205s except UnicodeDecodeError: 205s reason = self.reason.decode("iso-8859-1") 205s else: 205s reason = self.reason 205s 205s if 400 <= self.status_code < 500: 205s http_error_msg = ( 205s f"{self.status_code} Client Error: {reason} for url: {self.url}" 205s ) 205s 205s elif 500 <= self.status_code < 600: 205s http_error_msg = ( 205s f"{self.status_code} Server Error: {reason} for url: {self.url}" 205s ) 205s 205s if http_error_msg: 205s > raise HTTPError(http_error_msg, response=self) 205s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/e22ecf28-5dc2-4af6-a214-946f31443008 205s 205s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 205s ----------------------------- Captured stderr call ----------------------------- 205s Traceback (most recent call last): 205s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 205s return _run_code(code, main_globals, None, 205s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 205s exec(code, run_globals) 205s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 205s from pathlib import Path 205s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 205s from ._local import * 205s File "", line 1360, in _find_and_load 205s File "", line 1331, in _find_and_load_unlocked 205s File "", line 935, in _load_unlocked 205s File "", line 1019, in exec_module 205s File "", line 1152, in get_code 205s File "", line 781, in _compile_bytecode 205s KeyboardInterrupt 205s Traceback (most recent call last): 205s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 205s return _run_code(code, main_globals, None, 205s "__main__", mod_spec) 205s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 205s exec(code, run_globals) 205s ~~~~^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 205s from ipykernel import kernelapp as app 205s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 205s from .connect import * # noqa: F403 205s ^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 205s import jupyter_client 205s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 205s from .asynchronous import AsyncKernelClient 205s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 205s from .client import AsyncKernelClient # noqa 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 205s import zmq.asyncio 205s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 205s import asyncio 205s File "/usr/lib/python3.13/asyncio/__init__.py", line 46, in 205s from .unix_events import * # pragma: no cover 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "", line 1357, in _find_and_load 205s File "", line 418, in __enter__ 205s File "", line 311, in acquire 205s File "", line 170, in __enter__ 205s KeyboardInterrupt 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqvtyoplb/runtime/kernel-e22ecf28-5dc2-4af6-a214-946f31443008.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39463 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54189 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: e22ecf28-5dc2-4af6-a214-946f31443008, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.180000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.360000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqvtyoplb/runtime/kernel-8375854b-1e46-4056-bd86-07821c5f5739.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35983 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54675 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8375854b-1e46-4056-bd86-07821c5f5739, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.400000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.400000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 8375854b-1e46-4056-bd86-07821c5f5739 205s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/8375854b-1e46-4056-bd86-07821c5f5739/interrupt (::1) 2.630000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 205s yield maybe_future(km.restart_kernel(kernel_id)) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 205s raise self._exception.with_traceback(self._exception_tb) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 205s result = coro.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 205s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 205s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 205s yield self # This tells Task to wait for completion. 205s ^^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 205s future.result() 205s ~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 205s raise self._exception.with_traceback(self._exception_tb) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 205s await ensure_async(kernel.restart_kernel(now=now)) 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 205s await self._async_shutdown_kernel(now=now, restart=True) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:log.py:55 { 205s "Host": "localhost:12341", 205s "Accept": "*/*", 205s "User-Agent": "python-requests/2.32.5" 205s } 205s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/8375854b-1e46-4056-bd86-07821c5f5739/restart (::1) 5.670000ms referer=None 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.790000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e22ecf28-5dc2-4af6-a214-946f31443008 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e22ecf28-5dc2-4af6-a214-946f31443008 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 205s await kernel_awaitable 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/e22ecf28-5dc2-4af6-a214-946f31443008 (::1) 205s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/e22ecf28-5dc2-4af6-a214-946f31443008', version='HTTP/1.1', remote_ip='::1') 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 205s result = await result 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 205s future.result() 205s ~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 205s yield maybe_future(km.shutdown_kernel(kernel_id)) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 205s raise self._exception.with_traceback(self._exception_tb) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 205s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 205s raise km.ready.exception() # type: ignore[misc] 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 205s await kernel_awaitable 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s WARNING NotebookApp:handlers.py:612 Unhandled error 205s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 205s 205s @self.addCleanup 205s def cleanup_sessions(): 205s for session in self.sess_api.list().json(): 205s > self.sess_api.delete(session['id']) 205s 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 205s return self._req('DELETE', id) 205s ^^^^^^^^^^^^^^^^^^^^^^^ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 205s response.raise_for_status() 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s self = 205s 205s def raise_for_status(self): 205s """Raises :class:`HTTPError`, if one occurred.""" 205s 205s http_error_msg = "" 205s if isinstance(self.reason, bytes): 205s # We attempt to decode utf-8 first because some servers 205s # choose to localize their reason strings. If the string 205s # isn't utf-8, we fall back to iso-8859-1 for all other 205s # encodings. (See PR #3538) 205s try: 205s reason = self.reason.decode("utf-8") 205s except UnicodeDecodeError: 205s reason = self.reason.decode("iso-8859-1") 205s else: 205s reason = self.reason 205s 205s if 400 <= self.status_code < 500: 205s http_error_msg = ( 205s f"{self.status_code} Client Error: {reason} for url: {self.url}" 205s ) 205s 205s elif 500 <= self.status_code < 600: 205s http_error_msg = ( 205s f"{self.status_code} Server Error: {reason} for url: {self.url}" 205s ) 205s 205s if http_error_msg: 205s > raise HTTPError(http_error_msg, response=self) 205s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/744e00a6-af01-4e7e-8135-8f66a5e94257 205s 205s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 205s ----------------------------- Captured stderr call ----------------------------- 205s Traceback (most recent call last): 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7eudmda5/runtime/kernel-f4cedfb8-1205-4a7f-aa94-30e94f8f7727.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48893 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35681 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: f4cedfb8-1205-4a7f-aa94-30e94f8f7727, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.950000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.520000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.440000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.380000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 54717dd7-02b9-42fc-aaf0-14ad561b58fd 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 54717dd7-02b9-42fc-aaf0-14ad561b58fd 205s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e619f5f0-001a-4d27-a800-196b31cf1d8e (::1) 0.960000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f4cedfb8-1205-4a7f-aa94-30e94f8f7727 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f4cedfb8-1205-4a7f-aa94-30e94f8f7727 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/744e00a6-af01-4e7e-8135-8f66a5e94257 (::1) 205s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/744e00a6-af01-4e7e-8135-8f66a5e94257', version='HTTP/1.1', remote_ip='::1') 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 205s result = await result 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 205s yield maybe_future(sm.delete_session(session_id)) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 205s yielded = self.gen.send(value) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 205s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 205s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 205s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 205s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 205s stopper = ensure_async(km.shutdown_kernel(now, restart)) 205s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s WARNING NotebookApp:handlers.py:612 Unhandled error 205s --------------------------- Captured stderr teardown --------------------------- 205s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 205s return _run_code(code, main_globals, None, 205s "__main__", mod_spec) 205s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 205s exec(code, run_globals) 205s ~~~~^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 205s from ipykernel import kernelapp as app 205s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 205s from .connect import * # noqa: F403 205s ^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 205s from typing import TYPE_CHECKING, Any 205s KeyboardInterrupt 205s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 205s 205s @self.addCleanup 205s def cleanup_sessions(): 205s for session in self.sess_api.list().json(): 205s > self.sess_api.delete(session['id']) 205s 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 205s return self._req('DELETE', id) 205s ^^^^^^^^^^^^^^^^^^^^^^^ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 205s response.raise_for_status() 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s self = 205s 205s def raise_for_status(self): 205s """Raises :class:`HTTPError`, if one occurred.""" 205s 205s http_error_msg = "" 205s if isinstance(self.reason, bytes): 205s # We attempt to decode utf-8 first because some servers 205s # choose to localize their reason strings. If the string 205s # isn't utf-8, we fall back to iso-8859-1 for all other 205s # encodings. (See PR #3538) 205s try: 205s reason = self.reason.decode("utf-8") 205s except UnicodeDecodeError: 205s reason = self.reason.decode("iso-8859-1") 205s else: 205s reason = self.reason 205s 205s if 400 <= self.status_code < 500: 205s http_error_msg = ( 205s f"{self.status_code} Client Error: {reason} for url: {self.url}" 205s ) 205s 205s elif 500 <= self.status_code < 600: 205s http_error_msg = ( 205s f"{self.status_code} Server Error: {reason} for url: {self.url}" 205s ) 205s 205s if http_error_msg: 205s > raise HTTPError(http_error_msg, response=self) 205s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a96ceec1-8ac1-4c4d-a853-5936561affe9 205s 205s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 205s ----------------------------- Captured stderr call ----------------------------- 205s Traceback (most recent call last): 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5lw5r4uw/runtime/kernel-905ea4f8-0db2-4fa4-be3a-5c9705fab416.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48889 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45963 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: 905ea4f8-0db2-4fa4-be3a-5c9705fab416, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.380000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.490000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.410000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0b73a0b9-cbc9-4b6d-b26f-b5174e09e391 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0b73a0b9-cbc9-4b6d-b26f-b5174e09e391 205s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/72cb70e5-b186-4bf1-89bf-681ad66680f9 (::1) 0.520000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 905ea4f8-0db2-4fa4-be3a-5c9705fab416 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 905ea4f8-0db2-4fa4-be3a-5c9705fab416 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 205s await kernel_awaitable 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a96ceec1-8ac1-4c4d-a853-5936561affe9 (::1) 205s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a96ceec1-8ac1-4c4d-a853-5936561affe9', version='HTTP/1.1', remote_ip='::1') 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 205s result = await result 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 205s future.result() 205s ~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 205s yield maybe_future(sm.delete_session(session_id)) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 205s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 205s raise self._exception.with_traceback(self._exception_tb) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 205s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 205s raise km.ready.exception() # type: ignore[misc] 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 205s await kernel_awaitable 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s WARNING NotebookApp:handlers.py:612 Unhandled error 205s --------------------------- Captured stderr teardown --------------------------- 205s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 205s return _run_code(code, main_globals, None, 205s "__main__", mod_spec) 205s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 205s exec(code, run_globals) 205s ~~~~^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 205s from ipykernel import kernelapp as app 205s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 205s from .connect import * # noqa: F403 205s ^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 205s from subprocess import PIPE, Popen 205s File "/usr/lib/python3.13/subprocess.py", line 125, in 205s import selectors 205s File "/usr/lib/python3.13/selectors.py", line 426, in 205s class EpollSelector(_PollLikeSelector): 205s ...<40 lines>... 205s super().close() 205s File "/usr/lib/python3.13/abc.py", line 106, in __new__ 205s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 205s KeyboardInterrupt 205s =================================== FAILURES =================================== 205s ______________________ KernelAPITest.test_default_kernel _______________________ 205s 205s self = 205s 205s def tearDown(self): 205s for k in self.kern_api.list().json(): 205s > self.kern_api.shutdown(k['id']) 205s 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 205s return self._req('DELETE', id) 205s ^^^^^^^^^^^^^^^^^^^^^^^ 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 205s response.raise_for_status() 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s self = 205s 205s def raise_for_status(self): 205s """Raises :class:`HTTPError`, if one occurred.""" 205s 205s http_error_msg = "" 205s if isinstance(self.reason, bytes): 205s # We attempt to decode utf-8 first because some servers 205s # choose to localize their reason strings. If the string 205s # isn't utf-8, we fall back to iso-8859-1 for all other 205s # encodings. (See PR #3538) 205s try: 205s reason = self.reason.decode("utf-8") 205s except UnicodeDecodeError: 205s reason = self.reason.decode("iso-8859-1") 205s else: 205s reason = self.reason 205s 205s if 400 <= self.status_code < 500: 205s http_error_msg = ( 205s f"{self.status_code} Client Error: {reason} for url: {self.url}" 205s ) 205s 205s elif 500 <= self.status_code < 600: 205s http_error_msg = ( 205s f"{self.status_code} Server Error: {reason} for url: {self.url}" 205s ) 205s 205s if http_error_msg: 205s > raise HTTPError(http_error_msg, response=self) 205s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/34be62e6-ec68-4d29-8ff4-98b70545a641 205s 205s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 205s ------------------------------ Captured log setup ------------------------------ 205s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpb2t4_8cp/config', '/tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpb2t4_8cp/etc/jupyter'] for config files 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpb2t4_8cp/etc/jupyter 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpb2t4_8cp/config 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpb2t4_8cp/etc/jupyter 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpb2t4_8cp/config 205s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpb2t4_8cp/notebooks 205s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 205s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 205s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 205s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 205s WARNING NotebookApp:handlers.py:612 Forbidden 205s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.590000ms referer=None 205s ----------------------------- Captured stderr call ----------------------------- 205s Traceback (most recent call last): 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpb2t4_8cp/runtime/kernel-34be62e6-ec68-4d29-8ff4-98b70545a641.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37653 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56839 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: 34be62e6-ec68-4d29-8ff4-98b70545a641, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 34.510000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.370000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 34be62e6-ec68-4d29-8ff4-98b70545a641 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 34be62e6-ec68-4d29-8ff4-98b70545a641 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/34be62e6-ec68-4d29-8ff4-98b70545a641 (::1) 205s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/34be62e6-ec68-4d29-8ff4-98b70545a641', version='HTTP/1.1', remote_ip='::1') 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 205s result = await result 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 205s yielded = ctx_run(next, result) 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 205s yield maybe_future(km.shutdown_kernel(kernel_id)) 205s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 205s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 205s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 205s stopper = ensure_async(km.shutdown_kernel(now, restart)) 205s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s WARNING NotebookApp:handlers.py:612 Unhandled error 205s ERROR NotebookApp:log.py:55 { 205s "Host": "localhost:12341", 205s "Accept": "*/*", 205s "User-Agent": "python-requests/2.32.5" 205s } 205s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/34be62e6-ec68-4d29-8ff4-98b70545a641 (::1) 4.960000ms referer=None 205s --------------------------- Captured stderr teardown --------------------------- 205s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 205s return _run_code(code, main_globals, None, 205s "__main__", mod_spec) 205s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 205s exec(code, run_globals) 205s ~~~~^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 205s from ipykernel import kernelapp as app 205s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 205s from .connect import * # noqa: F403 205s ^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 205s from subprocess import PIPE, Popen 205s File "/usr/lib/python3.13/subprocess.py", line 46, in 205s import locale 205s File "", line 1360, in _find_and_load 205s File "", line 1331, in _find_and_load_unlocked 205s File "", line 935, in _load_unlocked 205s File "", line 1019, in exec_module 205s File "", line 1152, in get_code 205s File "", line 781, in _compile_bytecode 205s KeyboardInterrupt 205s ______________________ KernelAPITest.test_kernel_handler _______________________ 205s 205s self = 205s 205s def test_kernel_handler(self): 205s # GET kernel with given id 205s kid = self.kern_api.start().json()['id'] 205s r = self.kern_api.get(kid) 205s kern1 = r.json() 205s self.assertEqual(r.status_code, 200) 205s assert isinstance(kern1, dict) 205s self.assertIn('id', kern1) 205s self.assertEqual(kern1['id'], kid) 205s 205s # Request a bad kernel id and check that a JSON 205s # message is returned! 205s bad_id = '111-111-111-111-111' 205s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 205s self.kern_api.get(bad_id) 205s 205s # DELETE kernel with id 205s > r = self.kern_api.shutdown(kid) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 205s return self._req('DELETE', id) 205s ^^^^^^^^^^^^^^^^^^^^^^^ 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 205s response.raise_for_status() 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s self = 205s 205s def raise_for_status(self): 205s """Raises :class:`HTTPError`, if one occurred.""" 205s 205s http_error_msg = "" 205s if isinstance(self.reason, bytes): 205s # We attempt to decode utf-8 first because some servers 205s # choose to localize their reason strings. If the string 205s # isn't utf-8, we fall back to iso-8859-1 for all other 205s # encodings. (See PR #3538) 205s try: 205s reason = self.reason.decode("utf-8") 205s except UnicodeDecodeError: 205s reason = self.reason.decode("iso-8859-1") 205s else: 205s reason = self.reason 205s 205s if 400 <= self.status_code < 500: 205s http_error_msg = ( 205s f"{self.status_code} Client Error: {reason} for url: {self.url}" 205s ) 205s 205s elif 500 <= self.status_code < 600: 205s http_error_msg = ( 205s f"{self.status_code} Server Error: {reason} for url: {self.url}" 205s ) 205s 205s if http_error_msg: 205s > raise HTTPError(http_error_msg, response=self) 205s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/e866e581-1de1-4332-8453-b2065126c8b1 205s 205s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 205s ----------------------------- Captured stderr call ----------------------------- 205s Traceback (most recent call last): 205s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 205s return _run_code(code, main_globals, None, 205s "__main__", mod_spec) 205s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 205s exec(code, run_globals) 205s ~~~~^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 205s from ipykernel import kernelapp as app 205s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 205s from .connect import * # noqa: F403 205s ^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 205s import json 205s File "/usr/lib/python3.13/json/__init__.py", line 106, in 205s from .decoder import JSONDecoder, JSONDecodeError 205s File "/usr/lib/python3.13/json/decoder.py", line 133, in 205s WHITESPACE = re.compile(r'[ \t\n\r]*', FLAGS) 205s File "/usr/lib/python3.13/re/__init__.py", line 287, in compile 205s def compile(pattern, flags=0): 205s 205s KeyboardInterrupt 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpb2t4_8cp/runtime/kernel-e866e581-1de1-4332-8453-b2065126c8b1.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58245 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59337 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: e866e581-1de1-4332-8453-b2065126c8b1, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.310000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/e866e581-1de1-4332-8453-b2065126c8b1 (::1) 0.430000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s 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 205s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 205s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 1.170000ms referer=None 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e866e581-1de1-4332-8453-b2065126c8b1 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e866e581-1de1-4332-8453-b2065126c8b1 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/e866e581-1de1-4332-8453-b2065126c8b1 (::1) 205s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/e866e581-1de1-4332-8453-b2065126c8b1', version='HTTP/1.1', remote_ip='::1') 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 205s result = await result 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 205s yielded = ctx_run(next, result) 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 205s yield maybe_future(km.shutdown_kernel(kernel_id)) 205s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 205s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 205s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 205s stopper = ensure_async(km.shutdown_kernel(now, restart)) 205s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s WARNING NotebookApp:handlers.py:612 Unhandled error 205s ERROR NotebookApp:log.py:55 { 205s "Host": "localhost:12341", 205s "Accept": "*/*", 205s "User-Agent": "python-requests/2.32.5" 205s } 205s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/e866e581-1de1-4332-8453-b2065126c8b1 (::1) 4.550000ms referer=None 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.340000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 34be62e6-ec68-4d29-8ff4-98b70545a641 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 34be62e6-ec68-4d29-8ff4-98b70545a641 205s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/34be62e6-ec68-4d29-8ff4-98b70545a641 (::1) 0.540000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e866e581-1de1-4332-8453-b2065126c8b1 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e866e581-1de1-4332-8453-b2065126c8b1 205s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/e866e581-1de1-4332-8453-b2065126c8b1 (::1) 0.510000ms 205s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 205s 205s self = 205s 205s def test_main_kernel_handler(self): 205s # POST request 205s r = self.kern_api.start() 205s kern1 = r.json() 205s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 205s self.assertEqual(r.status_code, 201) 205s self.assertIsInstance(kern1, dict) 205s 205s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 205s expected_csp = '; '.join([ 205s "frame-ancestors 'self'", 205s 'report-uri ' + report_uri, 205s "default-src 'none'" 205s ]) 205s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 205s 205s # GET request 205s r = self.kern_api.list() 205s self.assertEqual(r.status_code, 200) 205s assert isinstance(r.json(), list) 205s self.assertEqual(r.json()[0]['id'], kern1['id']) 205s self.assertEqual(r.json()[0]['name'], kern1['name']) 205s 205s # create another kernel and check that they both are added to the 205s # list of kernels from a GET request 205s kern2 = self.kern_api.start().json() 205s assert isinstance(kern2, dict) 205s r = self.kern_api.list() 205s kernels = r.json() 205s self.assertEqual(r.status_code, 200) 205s assert isinstance(kernels, list) 205s self.assertEqual(len(kernels), 2) 205s 205s # Interrupt a kernel 205s r = self.kern_api.interrupt(kern2['id']) 205s self.assertEqual(r.status_code, 204) 205s 205s # Restart a kernel 205s > r = self.kern_api.restart(kern2['id']) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 205s return self._req('POST', url_path_join(id, 'restart')) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 205s response.raise_for_status() 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s self = 205s 205s def raise_for_status(self): 205s """Raises :class:`HTTPError`, if one occurred.""" 205s 205s http_error_msg = "" 205s if isinstance(self.reason, bytes): 205s # We attempt to decode utf-8 first because some servers 205s # choose to localize their reason strings. If the string 205s # isn't utf-8, we fall back to iso-8859-1 for all other 205s # encodings. (See PR #3538) 205s try: 205s reason = self.reason.decode("utf-8") 205s except UnicodeDecodeError: 205s reason = self.reason.decode("iso-8859-1") 205s else: 205s reason = self.reason 205s 205s if 400 <= self.status_code < 500: 205s http_error_msg = ( 205s f"{self.status_code} Client Error: {reason} for url: {self.url}" 205s ) 205s 205s elif 500 <= self.status_code < 600: 205s http_error_msg = ( 205s f"{self.status_code} Server Error: {reason} for url: {self.url}" 205s ) 205s 205s if http_error_msg: 205s > raise HTTPError(http_error_msg, response=self) 205s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/374faa06-0ad1-4f76-9e58-e1bb4581540e/restart 205s 205s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 205s ----------------------------- Captured stderr call ----------------------------- 205s Traceback (most recent call last): 205s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 205s return _run_code(code, main_globals, None, 205s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 205s exec(code, run_globals) 205s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 205s from pathlib import Path 205s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 205s from ._abc import * 205s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 205s from glob import _Globber, _no_recurse_symlinks 205s File "/usr/lib/python3.13/glob.py", line 5, in 205s import re 205s File "/usr/lib/python3.13/re/__init__.py", line 125, in 205s import enum 205s File "/usr/lib/python3.13/enum.py", line 1355, in 205s class StrEnum(str, ReprEnum): 205s File "/usr/lib/python3.13/enum.py", line 568, in __new__ 205s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 205s KeyboardInterrupt 205s Traceback (most recent call last): 205s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 205s return _run_code(code, main_globals, None, 205s "__main__", mod_spec) 205s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 205s exec(code, run_globals) 205s ~~~~^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 205s from ipykernel import kernelapp as app 205s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 205s from .connect import * # noqa: F403 205s ^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 205s import jupyter_client 205s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 205s from .asynchronous import AsyncKernelClient 205s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 205s from .client import AsyncKernelClient # noqa 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 205s import zmq.asyncio 205s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 205s import asyncio 205s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 205s from .base_events import * 205s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 205s import ssl 205s File "/usr/lib/python3.13/ssl.py", line 143, in 205s _IntFlag._convert_( 205s ~~~~~~~~~~~~~~~~~~^ 205s 'VerifyFlags', __name__, 205s ^^^^^^^^^^^^^^^^^^^^^^^^ 205s lambda name: name.startswith('VERIFY_'), 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s source=_ssl) 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3.13/enum.py", line 928, in _convert_ 205s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 205s File "/usr/lib/python3.13/enum.py", line 1864, in convert_class 205s gnv_last_values.append(value) 205s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s KeyboardInterrupt 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpb2t4_8cp/runtime/kernel-caabf53b-e408-444c-b725-3a337dd95220.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46297 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51539 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: caabf53b-e408-444c-b725-3a337dd95220, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.880000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.370000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpb2t4_8cp/runtime/kernel-374faa06-0ad1-4f76-9e58-e1bb4581540e.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55539 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51893 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: 374faa06-0ad1-4f76-9e58-e1bb4581540e, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.200000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.450000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 374faa06-0ad1-4f76-9e58-e1bb4581540e 205s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/374faa06-0ad1-4f76-9e58-e1bb4581540e/interrupt (::1) 1.870000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 205s yield maybe_future(km.restart_kernel(kernel_id)) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 205s raise self._exception.with_traceback(self._exception_tb) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 205s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 205s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 205s await ensure_async(kernel.restart_kernel(now=now)) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 205s await self._async_shutdown_kernel(now=now, restart=True) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:log.py:55 { 205s "Host": "localhost:12341", 205s "Accept": "*/*", 205s "User-Agent": "python-requests/2.32.5" 205s } 205s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/374faa06-0ad1-4f76-9e58-e1bb4581540e/restart (::1) 6.230000ms referer=None 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.390000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for caabf53b-e408-444c-b725-3a337dd95220 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: caabf53b-e408-444c-b725-3a337dd95220 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/caabf53b-e408-444c-b725-3a337dd95220 (::1) 205s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/caabf53b-e408-444c-b725-3a337dd95220', version='HTTP/1.1', remote_ip='::1') 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 205s result = await result 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 205s yielded = ctx_run(next, result) 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 205s yield maybe_future(km.shutdown_kernel(kernel_id)) 205s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 205s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 205s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 205s stopper = ensure_async(km.shutdown_kernel(now, restart)) 205s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s WARNING NotebookApp:handlers.py:612 Unhandled error 205s ERROR NotebookApp:log.py:55 { 205s "Host": "localhost:12341", 205s "Accept": "*/*", 205s "User-Agent": "python-requests/2.32.5" 205s } 205s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/caabf53b-e408-444c-b725-3a337dd95220 (::1) 4.540000ms referer=None 205s ________________________ KernelAPITest.test_no_kernels _________________________ 205s 205s self = 205s 205s def test_no_kernels(self): 205s """Make sure there are no kernels running at the start""" 205s kernels = self.kern_api.list().json() 205s > self.assertEqual(kernels, []) 205s E AssertionError: Lists differ: [{'id': 'caabf53b-e408-444c-b725-3a337dd95[281 chars]: 0}] != [] 205s E 205s E First list contains 2 additional elements. 205s E First extra element 0: 205s E {'id': 'caabf53b-e408-444c-b725-3a337dd95220', 'name': 'python3', 'last_activity': '2026-02-06T10:25:17.011293Z', 'execution_state': 'starting', 'connections': 0} 205s E 205s E + [] 205s E - [{'connections': 0, 205s E - 'execution_state': 'starting', 205s E - 'id': 'caabf53b-e408-444c-b725-3a337dd95220', 205s E - 'last_activity': '2026-02-06T10:25:17.011293Z', 205s E - 'name': 'python3'}, 205s E - {'connections': 0, 205s E - 'execution_state': 'starting', 205s E - 'id': '374faa06-0ad1-4f76-9e58-e1bb4581540e', 205s E - 'last_activity': '2026-02-06T10:25:17.028230Z', 205s E - 'name': 'python3'}] 205s 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.160000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for caabf53b-e408-444c-b725-3a337dd95220 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: caabf53b-e408-444c-b725-3a337dd95220 205s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/caabf53b-e408-444c-b725-3a337dd95220 (::1) 0.500000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 374faa06-0ad1-4f76-9e58-e1bb4581540e 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 374faa06-0ad1-4f76-9e58-e1bb4581540e 205s ---------------------------- Captured log teardown ----------------------------- 205s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 205s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 205s _____________________ AsyncKernelAPITest.test_connections ______________________ 205s 205s self = 205s 205s def tearDown(self): 205s for k in self.kern_api.list().json(): 205s > self.kern_api.shutdown(k['id']) 205s 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 205s return self._req('DELETE', id) 205s ^^^^^^^^^^^^^^^^^^^^^^^ 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 205s response.raise_for_status() 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s self = 205s 205s def raise_for_status(self): 205s """Raises :class:`HTTPError`, if one occurred.""" 205s 205s http_error_msg = "" 205s if isinstance(self.reason, bytes): 205s # We attempt to decode utf-8 first because some servers 205s # choose to localize their reason strings. If the string 205s # isn't utf-8, we fall back to iso-8859-1 for all other 205s # encodings. (See PR #3538) 205s try: 205s reason = self.reason.decode("utf-8") 205s except UnicodeDecodeError: 205s reason = self.reason.decode("iso-8859-1") 205s else: 205s reason = self.reason 205s 205s if 400 <= self.status_code < 500: 205s http_error_msg = ( 205s f"{self.status_code} Client Error: {reason} for url: {self.url}" 205s ) 205s 205s elif 500 <= self.status_code < 600: 205s http_error_msg = ( 205s f"{self.status_code} Server Error: {reason} for url: {self.url}" 205s ) 205s 205s if http_error_msg: 205s > raise HTTPError(http_error_msg, response=self) 205s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/51115b34-0aba-471c-a443-0672f470fb05 205s 205s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 205s ------------------------------ Captured log setup ------------------------------ 205s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpqvtyoplb/config', '/tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpqvtyoplb/etc/jupyter'] for config files 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpqvtyoplb/etc/jupyter 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpqvtyoplb/config 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpqvtyoplb/etc/jupyter 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpqvtyoplb/config 205s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpqvtyoplb/notebooks 205s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 205s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 205s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 205s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 205s WARNING NotebookApp:handlers.py:612 Forbidden 205s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.310000ms referer=None 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqvtyoplb/runtime/kernel-51115b34-0aba-471c-a443-0672f470fb05.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47865 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37343 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: 51115b34-0aba-471c-a443-0672f470fb05, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.930000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/51115b34-0aba-471c-a443-0672f470fb05 (::1) 0.360000ms 205s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/51115b34-0aba-471c-a443-0672f470fb05/channels 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 205s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 51115b34-0aba-471c-a443-0672f470fb05 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33239 205s DEBUG NotebookApp:kernelmanager.py:423 activity on 51115b34-0aba-471c-a443-0672f470fb05: status (starting) 205s DEBUG NotebookApp:kernelmanager.py:423 activity on 51115b34-0aba-471c-a443-0672f470fb05: status (busy) 205s 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/'}]} 205s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 51115b34-0aba-471c-a443-0672f470fb05) to 5.4 (client). 205s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/51115b34-0aba-471c-a443-0672f470fb05/channels (::1) 397.640000ms 205s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/51115b34-0aba-471c-a443-0672f470fb05/channels 205s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 51115b34-0aba-471c-a443-0672f470fb05 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37343 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33239 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47865 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33053 205s DEBUG NotebookApp:handlers.py:156 Nudge: not nudging busy kernel 51115b34-0aba-471c-a443-0672f470fb05 205s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 205s Setting websocket_ping_timeout=30000 205s DEBUG NotebookApp:kernelmanager.py:423 activity on 51115b34-0aba-471c-a443-0672f470fb05: status (idle) 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/51115b34-0aba-471c-a443-0672f470fb05 (::1) 0.460000ms 205s DEBUG NotebookApp:handlers.py:579 Websocket closed 51115b34-0aba-471c-a443-0672f470fb05:a204a290-0488d53a6b7740e9923bc6a6 205s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 51115b34-0aba-471c-a443-0672f470fb05:a204a290-0488d53a6b7740e9923bc6a6 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 51115b34-0aba-471c-a443-0672f470fb05 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/51115b34-0aba-471c-a443-0672f470fb05 (::1) 0.360000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/51115b34-0aba-471c-a443-0672f470fb05 (::1) 0.690000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.320000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 51115b34-0aba-471c-a443-0672f470fb05 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 51115b34-0aba-471c-a443-0672f470fb05 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 205s await kernel_awaitable 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/51115b34-0aba-471c-a443-0672f470fb05 (::1) 205s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/51115b34-0aba-471c-a443-0672f470fb05', version='HTTP/1.1', remote_ip='::1') 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 205s result = await result 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 205s future.result() 205s ~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 205s yield maybe_future(km.shutdown_kernel(kernel_id)) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 205s raise self._exception.with_traceback(self._exception_tb) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 205s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 205s raise km.ready.exception() # type: ignore[misc] 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 205s await kernel_awaitable 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s WARNING NotebookApp:handlers.py:612 Unhandled error 205s ERROR NotebookApp:log.py:55 { 205s "Host": "localhost:12341", 205s "Accept": "*/*", 205s "User-Agent": "python-requests/2.32.5" 205s } 205s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/51115b34-0aba-471c-a443-0672f470fb05 (::1) 4.640000ms referer=None 205s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 205s 205s self = 205s 205s def tearDown(self): 205s for k in self.kern_api.list().json(): 205s > self.kern_api.shutdown(k['id']) 205s 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 205s return self._req('DELETE', id) 205s ^^^^^^^^^^^^^^^^^^^^^^^ 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 205s response.raise_for_status() 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s self = 205s 205s def raise_for_status(self): 205s """Raises :class:`HTTPError`, if one occurred.""" 205s 205s http_error_msg = "" 205s if isinstance(self.reason, bytes): 205s # We attempt to decode utf-8 first because some servers 205s # choose to localize their reason strings. If the string 205s # isn't utf-8, we fall back to iso-8859-1 for all other 205s # encodings. (See PR #3538) 205s try: 205s reason = self.reason.decode("utf-8") 205s except UnicodeDecodeError: 205s reason = self.reason.decode("iso-8859-1") 205s else: 205s reason = self.reason 205s 205s if 400 <= self.status_code < 500: 205s http_error_msg = ( 205s f"{self.status_code} Client Error: {reason} for url: {self.url}" 205s ) 205s 205s elif 500 <= self.status_code < 600: 205s http_error_msg = ( 205s f"{self.status_code} Server Error: {reason} for url: {self.url}" 205s ) 205s 205s if http_error_msg: 205s > raise HTTPError(http_error_msg, response=self) 205s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/c4f1a3e7-9934-4554-b70f-07bc9daf5ae7 205s 205s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 205s ----------------------------- Captured stderr call ----------------------------- 205s Traceback (most recent call last): 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqvtyoplb/runtime/kernel-c4f1a3e7-9934-4554-b70f-07bc9daf5ae7.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33059 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40217 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: c4f1a3e7-9934-4554-b70f-07bc9daf5ae7, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.790000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.970000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 51115b34-0aba-471c-a443-0672f470fb05 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 51115b34-0aba-471c-a443-0672f470fb05 205s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/51115b34-0aba-471c-a443-0672f470fb05 (::1) 0.510000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c4f1a3e7-9934-4554-b70f-07bc9daf5ae7 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c4f1a3e7-9934-4554-b70f-07bc9daf5ae7 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 205s await kernel_awaitable 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/c4f1a3e7-9934-4554-b70f-07bc9daf5ae7 (::1) 205s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/c4f1a3e7-9934-4554-b70f-07bc9daf5ae7', version='HTTP/1.1', remote_ip='::1') 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 205s result = await result 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 205s future.result() 205s ~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 205s yield maybe_future(km.shutdown_kernel(kernel_id)) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 205s raise self._exception.with_traceback(self._exception_tb) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 205s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 205s raise km.ready.exception() # type: ignore[misc] 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 205s await kernel_awaitable 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s WARNING NotebookApp:handlers.py:612 Unhandled error 205s ERROR NotebookApp:log.py:55 { 205s "Host": "localhost:12341", 205s "Accept": "*/*", 205s "User-Agent": "python-requests/2.32.5" 205s } 205s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/c4f1a3e7-9934-4554-b70f-07bc9daf5ae7 (::1) 5.710000ms referer=None 205s --------------------------- Captured stderr teardown --------------------------- 205s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 205s return _run_code(code, main_globals, None, 205s "__main__", mod_spec) 205s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 205s exec(code, run_globals) 205s ~~~~^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 205s from pathlib import Path 205s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 205s from ._local import * 205s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 205s class PureWindowsPath(PurePath): 205s ...<7 lines>... 205s __slots__ = () 205s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 205s import ntpath 205s File "", line 1360, in _find_and_load 205s File "", line 1331, in _find_and_load_unlocked 205s File "", line 935, in _load_unlocked 205s File "", line 1019, in exec_module 205s File "", line 1115, in get_code 205s File "", line 1215, in get_data 205s KeyboardInterrupt 205s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 205s 205s self = 205s 205s def test_kernel_handler(self): 205s # GET kernel with given id 205s kid = self.kern_api.start().json()['id'] 205s r = self.kern_api.get(kid) 205s kern1 = r.json() 205s self.assertEqual(r.status_code, 200) 205s assert isinstance(kern1, dict) 205s self.assertIn('id', kern1) 205s self.assertEqual(kern1['id'], kid) 205s 205s # Request a bad kernel id and check that a JSON 205s # message is returned! 205s bad_id = '111-111-111-111-111' 205s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 205s self.kern_api.get(bad_id) 205s 205s # DELETE kernel with id 205s > r = self.kern_api.shutdown(kid) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 205s return self._req('DELETE', id) 205s ^^^^^^^^^^^^^^^^^^^^^^^ 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 205s response.raise_for_status() 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s self = 205s 205s def raise_for_status(self): 205s """Raises :class:`HTTPError`, if one occurred.""" 205s 205s http_error_msg = "" 205s if isinstance(self.reason, bytes): 205s # We attempt to decode utf-8 first because some servers 205s # choose to localize their reason strings. If the string 205s # isn't utf-8, we fall back to iso-8859-1 for all other 205s # encodings. (See PR #3538) 205s try: 205s reason = self.reason.decode("utf-8") 205s except UnicodeDecodeError: 205s reason = self.reason.decode("iso-8859-1") 205s else: 205s reason = self.reason 205s 205s if 400 <= self.status_code < 500: 205s http_error_msg = ( 205s f"{self.status_code} Client Error: {reason} for url: {self.url}" 205s ) 205s 205s elif 500 <= self.status_code < 600: 205s http_error_msg = ( 205s f"{self.status_code} Server Error: {reason} for url: {self.url}" 205s ) 205s 205s if http_error_msg: 205s > raise HTTPError(http_error_msg, response=self) 205s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/61f55805-a452-4dee-aa86-f4f9d1110fcb 205s 205s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 205s ----------------------------- Captured stderr call ----------------------------- 205s Traceback (most recent call last): 205s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 205s return _run_code(code, main_globals, None, 205s "__main__", mod_spec) 205s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 205s exec(code, run_globals) 205s ~~~~^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 205s from ipykernel import kernelapp as app 205s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 205s from ._version import ( 205s ...<4 lines>... 205s ) 205s File "/usr/lib/python3/dist-packages/ipykernel/_version.py", line 11, in 205s match = re.match(pattern, __version__) 205s File "/usr/lib/python3.13/re/__init__.py", line 164, in match 205s def match(pattern, string, flags=0): 205s 205s KeyboardInterrupt 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqvtyoplb/runtime/kernel-61f55805-a452-4dee-aa86-f4f9d1110fcb.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47507 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57971 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: 61f55805-a452-4dee-aa86-f4f9d1110fcb, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.750000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/61f55805-a452-4dee-aa86-f4f9d1110fcb (::1) 1.750000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s 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 205s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 205s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.530000ms referer=None 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 61f55805-a452-4dee-aa86-f4f9d1110fcb 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 61f55805-a452-4dee-aa86-f4f9d1110fcb 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 205s await kernel_awaitable 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/61f55805-a452-4dee-aa86-f4f9d1110fcb (::1) 205s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/61f55805-a452-4dee-aa86-f4f9d1110fcb', version='HTTP/1.1', remote_ip='::1') 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 205s result = await result 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 205s future.result() 205s ~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 205s yield maybe_future(km.shutdown_kernel(kernel_id)) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 205s raise self._exception.with_traceback(self._exception_tb) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 205s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 205s raise km.ready.exception() # type: ignore[misc] 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 205s await kernel_awaitable 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s WARNING NotebookApp:handlers.py:612 Unhandled error 205s ERROR NotebookApp:log.py:55 { 205s "Host": "localhost:12341", 205s "Accept": "*/*", 205s "User-Agent": "python-requests/2.32.5" 205s } 205s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/61f55805-a452-4dee-aa86-f4f9d1110fcb (::1) 4.390000ms referer=None 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.370000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c4f1a3e7-9934-4554-b70f-07bc9daf5ae7 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c4f1a3e7-9934-4554-b70f-07bc9daf5ae7 205s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/c4f1a3e7-9934-4554-b70f-07bc9daf5ae7 (::1) 1.160000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 61f55805-a452-4dee-aa86-f4f9d1110fcb 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 61f55805-a452-4dee-aa86-f4f9d1110fcb 205s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/61f55805-a452-4dee-aa86-f4f9d1110fcb (::1) 0.400000ms 205s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 205s 205s self = 205s 205s def test_main_kernel_handler(self): 205s # POST request 205s r = self.kern_api.start() 205s kern1 = r.json() 205s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 205s self.assertEqual(r.status_code, 201) 205s self.assertIsInstance(kern1, dict) 205s 205s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 205s expected_csp = '; '.join([ 205s "frame-ancestors 'self'", 205s 'report-uri ' + report_uri, 205s "default-src 'none'" 205s ]) 205s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 205s 205s # GET request 205s r = self.kern_api.list() 205s self.assertEqual(r.status_code, 200) 205s assert isinstance(r.json(), list) 205s self.assertEqual(r.json()[0]['id'], kern1['id']) 205s self.assertEqual(r.json()[0]['name'], kern1['name']) 205s 205s # create another kernel and check that they both are added to the 205s # list of kernels from a GET request 205s kern2 = self.kern_api.start().json() 205s assert isinstance(kern2, dict) 205s r = self.kern_api.list() 205s kernels = r.json() 205s self.assertEqual(r.status_code, 200) 205s assert isinstance(kernels, list) 205s self.assertEqual(len(kernels), 2) 205s 205s # Interrupt a kernel 205s r = self.kern_api.interrupt(kern2['id']) 205s self.assertEqual(r.status_code, 204) 205s 205s # Restart a kernel 205s > r = self.kern_api.restart(kern2['id']) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 205s return self._req('POST', url_path_join(id, 'restart')) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 205s response.raise_for_status() 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s self = 205s 205s def raise_for_status(self): 205s """Raises :class:`HTTPError`, if one occurred.""" 205s 205s http_error_msg = "" 205s if isinstance(self.reason, bytes): 205s # We attempt to decode utf-8 first because some servers 205s # choose to localize their reason strings. If the string 205s # isn't utf-8, we fall back to iso-8859-1 for all other 205s # encodings. (See PR #3538) 205s try: 205s reason = self.reason.decode("utf-8") 205s except UnicodeDecodeError: 205s reason = self.reason.decode("iso-8859-1") 205s else: 205s reason = self.reason 205s 205s if 400 <= self.status_code < 500: 205s http_error_msg = ( 205s f"{self.status_code} Client Error: {reason} for url: {self.url}" 205s ) 205s 205s elif 500 <= self.status_code < 600: 205s http_error_msg = ( 205s f"{self.status_code} Server Error: {reason} for url: {self.url}" 205s ) 205s 205s if http_error_msg: 205s > raise HTTPError(http_error_msg, response=self) 205s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/8375854b-1e46-4056-bd86-07821c5f5739/restart 205s 205s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 205s ----------------------------- Captured stderr call ----------------------------- 205s Traceback (most recent call last): 205s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 205s return _run_code(code, main_globals, None, 205s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 205s exec(code, run_globals) 205s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 205s from pathlib import Path 205s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 205s from ._local import * 205s File "", line 1360, in _find_and_load 205s File "", line 1331, in _find_and_load_unlocked 205s File "", line 935, in _load_unlocked 205s File "", line 1019, in exec_module 205s File "", line 1152, in get_code 205s File "", line 781, in _compile_bytecode 205s KeyboardInterrupt 205s Traceback (most recent call last): 205s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 205s return _run_code(code, main_globals, None, 205s "__main__", mod_spec) 205s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 205s exec(code, run_globals) 205s ~~~~^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 205s from ipykernel import kernelapp as app 205s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 205s from .connect import * # noqa: F403 205s ^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 205s import jupyter_client 205s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 205s from .asynchronous import AsyncKernelClient 205s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 205s from .client import AsyncKernelClient # noqa 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 205s import zmq.asyncio 205s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 205s import asyncio 205s File "/usr/lib/python3.13/asyncio/__init__.py", line 46, in 205s from .unix_events import * # pragma: no cover 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "", line 1357, in _find_and_load 205s File "", line 418, in __enter__ 205s File "", line 311, in acquire 205s File "", line 170, in __enter__ 205s KeyboardInterrupt 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqvtyoplb/runtime/kernel-e22ecf28-5dc2-4af6-a214-946f31443008.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39463 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54189 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: e22ecf28-5dc2-4af6-a214-946f31443008, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.180000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.360000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqvtyoplb/runtime/kernel-8375854b-1e46-4056-bd86-07821c5f5739.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35983 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54675 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8375854b-1e46-4056-bd86-07821c5f5739, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.400000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.400000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 8375854b-1e46-4056-bd86-07821c5f5739 205s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/8375854b-1e46-4056-bd86-07821c5f5739/interrupt (::1) 2.630000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 205s yield maybe_future(km.restart_kernel(kernel_id)) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 205s raise self._exception.with_traceback(self._exception_tb) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 205s result = coro.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 205s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 205s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 205s yield self # This tells Task to wait for completion. 205s ^^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 205s future.result() 205s ~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 205s raise self._exception.with_traceback(self._exception_tb) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 205s await ensure_async(kernel.restart_kernel(now=now)) 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 205s await self._async_shutdown_kernel(now=now, restart=True) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:log.py:55 { 205s "Host": "localhost:12341", 205s "Accept": "*/*", 205s "User-Agent": "python-requests/2.32.5" 205s } 205s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/8375854b-1e46-4056-bd86-07821c5f5739/restart (::1) 5.670000ms referer=None 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.790000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e22ecf28-5dc2-4af6-a214-946f31443008 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e22ecf28-5dc2-4af6-a214-946f31443008 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 205s await kernel_awaitable 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/e22ecf28-5dc2-4af6-a214-946f31443008 (::1) 205s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/e22ecf28-5dc2-4af6-a214-946f31443008', version='HTTP/1.1', remote_ip='::1') 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 205s result = await result 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 205s future.result() 205s ~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 205s yield maybe_future(km.shutdown_kernel(kernel_id)) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 205s raise self._exception.with_traceback(self._exception_tb) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 205s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 205s raise km.ready.exception() # type: ignore[misc] 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 205s await kernel_awaitable 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s WARNING NotebookApp:handlers.py:612 Unhandled error 205s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 205s 205s self = 205s 205s def test_no_kernels(self): 205s """Make sure there are no kernels running at the start""" 205s kernels = self.kern_api.list().json() 205s > self.assertEqual(kernels, []) 205s E AssertionError: Lists differ: [{'id': 'e22ecf28-5dc2-4af6-a214-946f31443[281 chars]: 0}] != [] 205s E 205s E First list contains 2 additional elements. 205s E First extra element 0: 205s E {'id': 'e22ecf28-5dc2-4af6-a214-946f31443008', 'name': 'python3', 'last_activity': '2026-02-06T10:25:17.680042Z', 'execution_state': 'starting', 'connections': 0} 205s E 205s E + [] 205s E - [{'connections': 0, 205s E - 'execution_state': 'starting', 205s E - 'id': 'e22ecf28-5dc2-4af6-a214-946f31443008', 205s E - 'last_activity': '2026-02-06T10:25:17.680042Z', 205s E - 'name': 'python3'}, 205s E - {'connections': 0, 205s E - 'execution_state': 'starting', 205s E - 'id': '8375854b-1e46-4056-bd86-07821c5f5739', 205s E - 'last_activity': '2026-02-06T10:25:17.698756Z', 205s E - 'name': 'python3'}] 205s 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.360000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e22ecf28-5dc2-4af6-a214-946f31443008 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e22ecf28-5dc2-4af6-a214-946f31443008 205s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/e22ecf28-5dc2-4af6-a214-946f31443008 (::1) 0.430000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8375854b-1e46-4056-bd86-07821c5f5739 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8375854b-1e46-4056-bd86-07821c5f5739 205s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/8375854b-1e46-4056-bd86-07821c5f5739 (::1) 0.500000ms 205s ---------------------------- Captured log teardown ----------------------------- 205s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c4f1a3e7-9934-4554-b70f-07bc9daf5ae7 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 61f55805-a452-4dee-aa86-f4f9d1110fcb 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 51115b34-0aba-471c-a443-0672f470fb05 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e22ecf28-5dc2-4af6-a214-946f31443008 205s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 205s __________________________ SessionAPITest.test_create __________________________ 205s 205s @self.addCleanup 205s def cleanup_sessions(): 205s for session in self.sess_api.list().json(): 205s > self.sess_api.delete(session['id']) 205s 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 205s return self._req('DELETE', id) 205s ^^^^^^^^^^^^^^^^^^^^^^^ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 205s response.raise_for_status() 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s self = 205s 205s def raise_for_status(self): 205s """Raises :class:`HTTPError`, if one occurred.""" 205s 205s http_error_msg = "" 205s if isinstance(self.reason, bytes): 205s # We attempt to decode utf-8 first because some servers 205s # choose to localize their reason strings. If the string 205s # isn't utf-8, we fall back to iso-8859-1 for all other 205s # encodings. (See PR #3538) 205s try: 205s reason = self.reason.decode("utf-8") 205s except UnicodeDecodeError: 205s reason = self.reason.decode("iso-8859-1") 205s else: 205s reason = self.reason 205s 205s if 400 <= self.status_code < 500: 205s http_error_msg = ( 205s f"{self.status_code} Client Error: {reason} for url: {self.url}" 205s ) 205s 205s elif 500 <= self.status_code < 600: 205s http_error_msg = ( 205s f"{self.status_code} Server Error: {reason} for url: {self.url}" 205s ) 205s 205s if http_error_msg: 205s > raise HTTPError(http_error_msg, response=self) 205s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/43536149-d2e4-4013-b2cb-82c6917427c5 205s 205s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 205s ------------------------------ Captured log setup ------------------------------ 205s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp7eudmda5/config', '/tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp7eudmda5/etc/jupyter'] for config files 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp7eudmda5/etc/jupyter 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp7eudmda5/config 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp7eudmda5/etc/jupyter 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp7eudmda5/config 205s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp7eudmda5/notebooks 205s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 205s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 205s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 205s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 205s WARNING NotebookApp:handlers.py:612 Forbidden 205s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.300000ms referer=None 205s ----------------------------- Captured stderr call ----------------------------- 205s Traceback (most recent call last): 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.710000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7eudmda5/runtime/kernel-364a9bfd-d476-44d9-a540-42e507326400.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44447 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45293 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: 364a9bfd-d476-44d9-a540-42e507326400, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp7eudmda5/notebooks/foo'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.790000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.390000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/43536149-d2e4-4013-b2cb-82c6917427c5 (::1) 0.400000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.730000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 364a9bfd-d476-44d9-a540-42e507326400 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 364a9bfd-d476-44d9-a540-42e507326400 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/43536149-d2e4-4013-b2cb-82c6917427c5 (::1) 205s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/43536149-d2e4-4013-b2cb-82c6917427c5', version='HTTP/1.1', remote_ip='::1') 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 205s result = await result 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 205s yield maybe_future(sm.delete_session(session_id)) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 205s yielded = self.gen.send(value) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 205s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 205s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 205s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 205s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 205s stopper = ensure_async(km.shutdown_kernel(now, restart)) 205s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s WARNING NotebookApp:handlers.py:612 Unhandled error 205s ERROR NotebookApp:log.py:55 { 205s "Host": "localhost:12341", 205s "Accept": "*/*", 205s "User-Agent": "python-requests/2.32.5" 205s } 205s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/43536149-d2e4-4013-b2cb-82c6917427c5 (::1) 5.050000ms referer=None 205s --------------------------- Captured stderr teardown --------------------------- 205s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 205s return _run_code(code, main_globals, None, 205s "__main__", mod_spec) 205s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 205s exec(code, run_globals) 205s ~~~~^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 205s from ipykernel import kernelapp as app 205s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 205s from .connect import * # noqa: F403 205s ^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 205s from subprocess import PIPE, Popen 205s File "/usr/lib/python3.13/subprocess.py", line 46, in 205s import locale 205s File "", line 1360, in _find_and_load 205s File "", line 1331, in _find_and_load_unlocked 205s File "", line 935, in _load_unlocked 205s File "", line 1019, in exec_module 205s File "", line 1152, in get_code 205s File "", line 781, in _compile_bytecode 205s KeyboardInterrupt 205s __________________ SessionAPITest.test_create_console_session __________________ 205s 205s @self.addCleanup 205s def cleanup_sessions(): 205s for session in self.sess_api.list().json(): 205s > self.sess_api.delete(session['id']) 205s 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 205s return self._req('DELETE', id) 205s ^^^^^^^^^^^^^^^^^^^^^^^ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 205s response.raise_for_status() 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s self = 205s 205s def raise_for_status(self): 205s """Raises :class:`HTTPError`, if one occurred.""" 205s 205s http_error_msg = "" 205s if isinstance(self.reason, bytes): 205s # We attempt to decode utf-8 first because some servers 205s # choose to localize their reason strings. If the string 205s # isn't utf-8, we fall back to iso-8859-1 for all other 205s # encodings. (See PR #3538) 205s try: 205s reason = self.reason.decode("utf-8") 205s except UnicodeDecodeError: 205s reason = self.reason.decode("iso-8859-1") 205s else: 205s reason = self.reason 205s 205s if 400 <= self.status_code < 500: 205s http_error_msg = ( 205s f"{self.status_code} Client Error: {reason} for url: {self.url}" 205s ) 205s 205s elif 500 <= self.status_code < 600: 205s http_error_msg = ( 205s f"{self.status_code} Server Error: {reason} for url: {self.url}" 205s ) 205s 205s if http_error_msg: 205s > raise HTTPError(http_error_msg, response=self) 205s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/9195f0fd-4028-49ba-b39b-387e0e061968 205s 205s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 205s ----------------------------- Captured stderr call ----------------------------- 205s Traceback (most recent call last): 205s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 205s return _run_code(code, main_globals, None, 205s "__main__", mod_spec) 205s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 205s exec(code, run_globals) 205s ~~~~^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 205s from ipykernel import kernelapp as app 205s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 205s from .connect import * # noqa: F403 205s ^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 205s from subprocess import PIPE, Popen 205s File "/usr/lib/python3.13/subprocess.py", line 49, in 205s import signal 205s File "", line 1360, in _find_and_load 205s File "", line 1322, in _find_and_load_unlocked 205s File "", line 1262, in _find_spec 205s File "", line 1556, in find_spec 205s File "", line 1530, in _get_spec 205s File "", line 1629, in find_spec 205s File "", line 152, in _path_stat 205s KeyboardInterrupt 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7eudmda5/runtime/kernel-9999d06e-88e4-4a64-8049-cf7447d63ba3.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58147 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55381 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9999d06e-88e4-4a64-8049-cf7447d63ba3, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp7eudmda5/notebooks/foo'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.840000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.670000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 364a9bfd-d476-44d9-a540-42e507326400 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 364a9bfd-d476-44d9-a540-42e507326400 205s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/43536149-d2e4-4013-b2cb-82c6917427c5 (::1) 0.810000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9999d06e-88e4-4a64-8049-cf7447d63ba3 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9999d06e-88e4-4a64-8049-cf7447d63ba3 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9195f0fd-4028-49ba-b39b-387e0e061968 (::1) 205s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9195f0fd-4028-49ba-b39b-387e0e061968', version='HTTP/1.1', remote_ip='::1') 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 205s result = await result 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 205s yield maybe_future(sm.delete_session(session_id)) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 205s yielded = self.gen.send(value) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 205s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 205s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 205s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 205s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 205s stopper = ensure_async(km.shutdown_kernel(now, restart)) 205s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s WARNING NotebookApp:handlers.py:612 Unhandled error 205s ____________________ SessionAPITest.test_create_deprecated _____________________ 205s 205s @self.addCleanup 205s def cleanup_sessions(): 205s for session in self.sess_api.list().json(): 205s > self.sess_api.delete(session['id']) 205s 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 205s return self._req('DELETE', id) 205s ^^^^^^^^^^^^^^^^^^^^^^^ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 205s response.raise_for_status() 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s self = 205s 205s def raise_for_status(self): 205s """Raises :class:`HTTPError`, if one occurred.""" 205s 205s http_error_msg = "" 205s if isinstance(self.reason, bytes): 205s # We attempt to decode utf-8 first because some servers 205s # choose to localize their reason strings. If the string 205s # isn't utf-8, we fall back to iso-8859-1 for all other 205s # encodings. (See PR #3538) 205s try: 205s reason = self.reason.decode("utf-8") 205s except UnicodeDecodeError: 205s reason = self.reason.decode("iso-8859-1") 205s else: 205s reason = self.reason 205s 205s if 400 <= self.status_code < 500: 205s http_error_msg = ( 205s f"{self.status_code} Client Error: {reason} for url: {self.url}" 205s ) 205s 205s elif 500 <= self.status_code < 600: 205s http_error_msg = ( 205s f"{self.status_code} Server Error: {reason} for url: {self.url}" 205s ) 205s 205s if http_error_msg: 205s > raise HTTPError(http_error_msg, response=self) 205s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e9e65fcd-dcd5-4a4e-a7b2-ad7c3b8dea4f 205s 205s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 205s ----------------------------- Captured stderr call ----------------------------- 205s Traceback (most recent call last): 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7eudmda5/runtime/kernel-068aa5fd-153d-4c68-a1e4-6e9bab04e5f7.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44019 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49303 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: 068aa5fd-153d-4c68-a1e4-6e9bab04e5f7, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp7eudmda5/notebooks/foo'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.350000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.500000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9999d06e-88e4-4a64-8049-cf7447d63ba3 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9999d06e-88e4-4a64-8049-cf7447d63ba3 205s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/9195f0fd-4028-49ba-b39b-387e0e061968 (::1) 0.630000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 068aa5fd-153d-4c68-a1e4-6e9bab04e5f7 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 068aa5fd-153d-4c68-a1e4-6e9bab04e5f7 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e9e65fcd-dcd5-4a4e-a7b2-ad7c3b8dea4f (::1) 205s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e9e65fcd-dcd5-4a4e-a7b2-ad7c3b8dea4f', version='HTTP/1.1', remote_ip='::1') 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 205s result = await result 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 205s yield maybe_future(sm.delete_session(session_id)) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 205s yielded = self.gen.send(value) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 205s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 205s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 205s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 205s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 205s stopper = ensure_async(km.shutdown_kernel(now, restart)) 205s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/uti/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 205s gc.collect() 205s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 205s ls/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s WARNING NotebookApp:handlers.py:612 Unhandled error 205s ERROR NotebookApp:log.py:55 { 205s "Host": "localhost:12341", 205s "Accept": "*/*", 205s "User-Agent": "python-requests/2.32.5" 205s } 205s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/e9e65fcd-dcd5-4a4e-a7b2-ad7c3b8dea4f (::1) 4.850000ms referer=None 205s --------------------------- Captured stderr teardown --------------------------- 205s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 205s return _run_code(code, main_globals, None, 205s "__main__", mod_spec) 205s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 205s exec(code, run_globals) 205s ~~~~^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 205s from ipykernel import kernelapp as app 205s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 205s from .connect import * # noqa: F403 205s ^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 205s from subprocess import PIPE, Popen 205s File "/usr/lib/python3.13/subprocess.py", line 49, in 205s import signal 205s File "", line 1360, in _find_and_load 205s File "", line 1331, in _find_and_load_unlocked 205s File "", line 935, in _load_unlocked 205s File "", line 1019, in exec_module 205s File "", line 1152, in get_code 205s File "", line 781, in _compile_bytecode 205s KeyboardInterrupt 205s ___________________ SessionAPITest.test_create_file_session ____________________ 205s 205s @self.addCleanup 205s def cleanup_sessions(): 205s for session in self.sess_api.list().json(): 205s > self.sess_api.delete(session['id']) 205s 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 205s return self._req('DELETE', id) 205s ^^^^^^^^^^^^^^^^^^^^^^^ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 205s response.raise_for_status() 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s self = 205s 205s def raise_for_status(self): 205s """Raises :class:`HTTPError`, if one occurred.""" 205s 205s http_error_msg = "" 205s if isinstance(self.reason, bytes): 205s # We attempt to decode utf-8 first because some servers 205s # choose to localize their reason strings. If the string 205s # isn't utf-8, we fall back to iso-8859-1 for all other 205s # encodings. (See PR #3538) 205s try: 205s reason = self.reason.decode("utf-8") 205s except UnicodeDecodeError: 205s reason = self.reason.decode("iso-8859-1") 205s else: 205s reason = self.reason 205s 205s if 400 <= self.status_code < 500: 205s http_error_msg = ( 205s f"{self.status_code} Client Error: {reason} for url: {self.url}" 205s ) 205s 205s elif 500 <= self.status_code < 600: 205s http_error_msg = ( 205s f"{self.status_code} Server Error: {reason} for url: {self.url}" 205s ) 205s 205s if http_error_msg: 205s > raise HTTPError(http_error_msg, response=self) 205s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e619f5f0-001a-4d27-a800-196b31cf1d8e 205s 205s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7eudmda5/runtime/kernel-54717dd7-02b9-42fc-aaf0-14ad561b58fd.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39691 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57649 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: 54717dd7-02b9-42fc-aaf0-14ad561b58fd, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp7eudmda5/notebooks/foo'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.580000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.440000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 068aa5fd-153d-4c68-a1e4-6e9bab04e5f7 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 068aa5fd-153d-4c68-a1e4-6e9bab04e5f7 205s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e9e65fcd-dcd5-4a4e-a7b2-ad7c3b8dea4f (::1) 3.300000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 54717dd7-02b9-42fc-aaf0-14ad561b58fd 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 54717dd7-02b9-42fc-aaf0-14ad561b58fd 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e619f5f0-001a-4d27-a800-196b31cf1d8e (::1) 205s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e619f5f0-001a-4d27-a800-196b31cf1d8e', version='HTTP/1.1', remote_ip='::1') 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 205s result = await result 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 205s yield maybe_future(sm.delete_session(session_id)) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 205s yielded = self.gen.send(value) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 205s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 205s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 205s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 205s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 205s stopper = ensure_async(km.shutdown_kernel(now, restart)) 205s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s WARNING NotebookApp:handlers.py:612 Unhandled error 205s ERROR NotebookApp:log.py:55 { 205s "Host": "localhost:12341", 205s "Accept": "*/*", 205s "User-Agent": "python-requests/2.32.5" 205s } 205s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/e619f5f0-001a-4d27-a800-196b31cf1d8e (::1) 3.990000ms referer=None 205s --------------------------- Captured stderr teardown --------------------------- 205s Traceback (most recent call last): 205s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 205s return _run_code(code, main_globals, None, 205s "__main__", mod_spec) 205s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 205s exec(code, run_globals) 205s ~~~~^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 205s from ipykernel import kernelapp as app 205s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 205s from .connect import * # noqa: F403 205s ^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 205s from subprocess import PIPE, Popen 205s File "/usr/lib/python3.13/subprocess.py", line 46, in 205s import locale 205s File "/usr/lib/python3.13/locale.py", line 180, in 205s _percent_re = re.compile(r'%(?:\((?P.*?)\))?' 205s r'(?P[-#0-9 +*.hlL]*?)[eEfFgGdiouxXcrs%]') 205s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 205s return _compile(pattern, flags) 205s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 205s p = _compiler.compile(pattern, flags) 205s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 205s code = _code(p, flags) 205s File "/usr/lib/python3.13/re/_compiler.py", line 585, in _code 205s _compile(code, p.data, flags) 205s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3.13/re/_compiler.py", line 117, in _compile 205s _compile(code, av[2], flags) 205s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3.13/re/_compiler.py", line 126, in _compile 205s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 205s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3.13/re/_compiler.py", line 109, in _compile 205s _compile(code, av[2], flags) 205s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3.13/re/_compiler.py", line 102, in _compile 205s emit(ANY) 205s ~~~~^^^^^ 205s KeyboardInterrupt 205s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 205s 205s self = 205s 205s def test_create_with_kernel_id(self): 205s # create a new kernel 205s r = self.request('POST', 'api/kernels') 205s r.raise_for_status() 205s kernel = r.json() 205s 205s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 205s self.assertEqual(resp.status_code, 201) 205s newsession = resp.json() 205s self.assertIn('id', newsession) 205s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 205s self.assertEqual(newsession['kernel']['id'], kernel['id']) 205s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 205s 205s sessions = self.sess_api.list().json() 205s > self.assertEqual(sessions, [newsession]) 205s E AssertionError: Lists differ: [{'id': 'e619f5f0-001a-4d27-a800-196b31cf1d8e', 'p[553 chars]ne}}] != [{'id': '744e00a6-af01-4e7e-8135-8f66a5e94257', 'p[279 chars]ne}}] 205s E 205s E First differing element 0: 205s E {'id': 'e619f5f0-001a-4d27-a800-196b31cf1d8e', 'p[218 chars]: 0}} 205s E {'id': '744e00a6-af01-4e7e-8135-8f66a5e94257', 'p[278 chars]one}} 205s E 205s E First list contains 1 additional elements. 205s E First extra element 1: 205s E {'id': '744e00a6-af01-4e7e-8135-8f66a5e94257', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'f4cedfb8-1205-4a7f-aa94-30e94f8f7727', 'name': 'python3', 'last_activity': '2026-02-06T10:25:17.996726Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 205s E 205s E Diff is 830 characters long. Set self.maxDiff to None to see it. 205s 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 205s ----------------------------- Captured stderr call ----------------------------- 205s Traceback (most recent call last): 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7eudmda5/runtime/kernel-f4cedfb8-1205-4a7f-aa94-30e94f8f7727.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48893 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35681 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: f4cedfb8-1205-4a7f-aa94-30e94f8f7727, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.950000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.520000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.440000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.380000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 54717dd7-02b9-42fc-aaf0-14ad561b58fd 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 54717dd7-02b9-42fc-aaf0-14ad561b58fd 205s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e619f5f0-001a-4d27-a800-196b31cf1d8e (::1) 0.960000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f4cedfb8-1205-4a7f-aa94-30e94f8f7727 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f4cedfb8-1205-4a7f-aa94-30e94f8f7727 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/744e00a6-af01-4e7e-8135-8f66a5e94257 (::1) 205s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/744e00a6-af01-4e7e-8135-8f66a5e94257', version='HTTP/1.1', remote_ip='::1') 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 205s result = await result 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 205s yield maybe_future(sm.delete_session(session_id)) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 205s yielded = self.gen.send(value) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 205s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 205s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 205s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 205s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 205s stopper = ensure_async(km.shutdown_kernel(now, restart)) 205s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s WARNING NotebookApp:handlers.py:612 Unhandled error 205s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 205s 205s @self.addCleanup 205s def cleanup_sessions(): 205s for session in self.sess_api.list().json(): 205s > self.sess_api.delete(session['id']) 205s 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 205s return self._req('DELETE', id) 205s ^^^^^^^^^^^^^^^^^^^^^^^ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 205s response.raise_for_status() 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s self = 205s 205s def raise_for_status(self): 205s """Raises :class:`HTTPError`, if one occurred.""" 205s 205s http_error_msg = "" 205s if isinstance(self.reason, bytes): 205s # We attempt to decode utf-8 first because some servers 205s # choose to localize their reason strings. If the string 205s # isn't utf-8, we fall back to iso-8859-1 for all other 205s # encodings. (See PR #3538) 205s try: 205s reason = self.reason.decode("utf-8") 205s except UnicodeDecodeError: 205s reason = self.reason.decode("iso-8859-1") 205s else: 205s reason = self.reason 205s 205s if 400 <= self.status_code < 500: 205s http_error_msg = ( 205s f"{self.status_code} Client Error: {reason} for url: {self.url}" 205s ) 205s 205s elif 500 <= self.status_code < 600: 205s http_error_msg = ( 205s f"{self.status_code} Server Error: {reason} for url: {self.url}" 205s ) 205s 205s if http_error_msg: 205s > raise HTTPError(http_error_msg, response=self) 205s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/744e00a6-af01-4e7e-8135-8f66a5e94257 205s 205s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 205s ----------------------------- Captured stderr call ----------------------------- 205s Traceback (most recent call last): 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.780000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7eudmda5/runtime/kernel-a83c2b4a-18b5-4bb3-a450-1fd574ca6e1f.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39973 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51633 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: a83c2b4a-18b5-4bb3-a450-1fd574ca6e1f, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.220000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f4cedfb8-1205-4a7f-aa94-30e94f8f7727 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f4cedfb8-1205-4a7f-aa94-30e94f8f7727 205s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/744e00a6-af01-4e7e-8135-8f66a5e94257 (::1) 1.640000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.100000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.340000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a83c2b4a-18b5-4bb3-a450-1fd574ca6e1f 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a83c2b4a-18b5-4bb3-a450-1fd574ca6e1f 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/744e00a6-af01-4e7e-8135-8f66a5e94257 (::1) 205s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/744e00a6-af01-4e7e-8135-8f66a5e94257', version='HTTP/1.1', remote_ip='::1') 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 205s result = await result 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 205s yield maybe_future(sm.delete_session(session_id)) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 205s yielded = self.gen.send(value) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 205s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 205s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 205s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 205s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 205s stopper = ensure_async(km.shutdown_kernel(now, restart)) 205s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s WARNING NotebookApp:handlers.py:612 Unhandled error 205s --------------------------- Captured stderr teardown --------------------------- 205s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 205s return _run_code(code, main_globals, None, 205s "__main__", mod_spec) 205s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 205s exec(code, run_globals) 205s ~~~~^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 205s from ipykernel import kernelapp as app 205s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 205s from .connect import * # noqa: F403 205s ^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 205s from subprocess import PIPE, Popen 205s File "/usr/lib/python3.13/subprocess.py", line 49, in 205s import signal 205s File "/usr/lib/python3.13/signal.py", line 7, in 205s _IntEnum._convert_( 205s ~~~~~~~~~~~~~~~~~~^ 205s 'Signals', __name__, 205s ^^^^^^^^^^^^^^^^^^^^ 205s ...<2 lines>... 205s and (name.startswith('SIG') and not name.startswith('SIG_')) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s or name.startswith('CTRL_')) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3.13/enum.py", line 921, in _convert_ 205s members.sort(key=lambda t: (t[1], t[0])) 205s ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s KeyboardInterrupt 205s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 205s 205s @self.addCleanup 205s def cleanup_sessions(): 205s for session in self.sess_api.list().json(): 205s > self.sess_api.delete(session['id']) 205s 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 205s return self._req('DELETE', id) 205s ^^^^^^^^^^^^^^^^^^^^^^^ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 205s response.raise_for_status() 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s self = 205s 205s def raise_for_status(self): 205s """Raises :class:`HTTPError`, if one occurred.""" 205s 205s http_error_msg = "" 205s if isinstance(self.reason, bytes): 205s # We attempt to decode utf-8 first because some servers 205s # choose to localize their reason strings. If the string 205s # isn't utf-8, we fall back to iso-8859-1 for all other 205s # encodings. (See PR #3538) 205s try: 205s reason = self.reason.decode("utf-8") 205s except UnicodeDecodeError: 205s reason = self.reason.decode("iso-8859-1") 205s else: 205s reason = self.reason 205s 205s if 400 <= self.status_code < 500: 205s http_error_msg = ( 205s f"{self.status_code} Client Error: {reason} for url: {self.url}" 205s ) 205s 205s elif 500 <= self.status_code < 600: 205s http_error_msg = ( 205s f"{self.status_code} Server Error: {reason} for url: {self.url}" 205s ) 205s 205s if http_error_msg: 205s > raise HTTPError(http_error_msg, response=self) 205s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/744e00a6-af01-4e7e-8135-8f66a5e94257 205s 205s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 205s ----------------------------- Captured stderr call ----------------------------- 205s Traceback (most recent call last): 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.600000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7eudmda5/runtime/kernel-2a677aff-249e-4653-bddc-b71235c3b3aa.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45359 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55197 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2a677aff-249e-4653-bddc-b71235c3b3aa, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp7eudmda5/notebooks/foo'} 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a83c2b4a-18b5-4bb3-a450-1fd574ca6e1f 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a83c2b4a-18b5-4bb3-a450-1fd574ca6e1f 205s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/744e00a6-af01-4e7e-8135-8f66a5e94257 (::1) 15.030000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.440000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.370000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2a677aff-249e-4653-bddc-b71235c3b3aa 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2a677aff-249e-4653-bddc-b71235c3b3aa 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/744e00a6-af01-4e7e-8135-8f66a5e94257 (::1) 205s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/744e00a6-af01-4e7e-8135-8f66a5e94257', version='HTTP/1.1', remote_ip='::1') 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 205s result = await result 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 205s yield maybe_future(sm.delete_session(session_id)) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 205s yielded = self.gen.send(value) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 205s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 205s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 205s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 205s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 205s stopper = ensure_async(km.shutdown_kernel(now, restart)) 205s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s WARNING NotebookApp:handlers.py:612 Unhandled error 205s ERROR NotebookApp:log.py:55 { 205s "Host": "localhost:12341", 205s "Accept": "*/*", 205s "User-Agent": "python-requests/2.32.5" 205s } 205s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/744e00a6-af01-4e7e-8135-8f66a5e94257 (::1) 3.870000ms referer=None 205s --------------------------- Captured stderr teardown --------------------------- 205s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 205s return _run_code(code, main_globals, None, 205s "__main__", mod_spec) 205s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 205s exec(code, run_globals) 205s ~~~~^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 205s from ipykernel import kernelapp as app 205s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 205s from .connect import * # noqa: F403 205s ^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 205s import json 205s File "/usr/lib/python3.13/json/__init__.py", line 106, in 205s from .decoder import JSONDecoder, JSONDecodeError 205s File "/usr/lib/python3.13/json/decoder.py", line 53, in 205s HEXDIGITS = re.compile(r'[0-9A-Fa-f]{4}', FLAGS) 205s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 205s return _compile(pattern, flags) 205s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 205s p = _compiler.compile(pattern, flags) 205s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 205s p = _parser.parse(p, flags) 205s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 205s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 205s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 205s itemsappend(_parse(source, state, verbose, nested + 1, 205s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s not nested and not items)) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3.13/re/_parser.py", line 657, in _parse 205s if sourcematch(","): 205s ~~~~~~~~~~~^^^^^ 205s File "/usr/lib/python3.13/re/_parser.py", line 255, in match 205s def match(self, char): 205s 205s KeyboardInterrupt 205s _______________________ SessionAPITest.test_modify_type ________________________ 205s 205s @self.addCleanup 205s def cleanup_sessions(): 205s for session in self.sess_api.list().json(): 205s > self.sess_api.delete(session['id']) 205s 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 205s return self._req('DELETE', id) 205s ^^^^^^^^^^^^^^^^^^^^^^^ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 205s response.raise_for_status() 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s self = 205s 205s def raise_for_status(self): 205s """Raises :class:`HTTPError`, if one occurred.""" 205s 205s http_error_msg = "" 205s if isinstance(self.reason, bytes): 205s # We attempt to decode utf-8 first because some servers 205s # choose to localize their reason strings. If the string 205s # isn't utf-8, we fall back to iso-8859-1 for all other 205s # encodings. (See PR #3538) 205s try: 205s reason = self.reason.decode("utf-8") 205s except UnicodeDecodeError: 205s reason = self.reason.decode("iso-8859-1") 205s else: 205s reason = self.reason 205s 205s if 400 <= self.status_code < 500: 205s http_error_msg = ( 205s f"{self.status_code} Client Error: {reason} for url: {self.url}" 205s ) 205s 205s elif 500 <= self.status_code < 600: 205s http_error_msg = ( 205s f"{self.status_code} Server Error: {reason} for url: {self.url}" 205s ) 205s 205s if http_error_msg: 205s > raise HTTPError(http_error_msg, response=self) 205s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/70d117bc-fe70-4eaa-b71c-27818c46d1c1 205s 205s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 205s ----------------------------- Captured stderr call ----------------------------- 205s Traceback (most recent call last): 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7eudmda5/runtime/kernel-43cc2ce0-0dce-40d0-9c08-43b9fc2fd2af.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53215 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44441 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: 43cc2ce0-0dce-40d0-9c08-43b9fc2fd2af, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp7eudmda5/notebooks/foo'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.660000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/70d117bc-fe70-4eaa-b71c-27818c46d1c1 (::1) 0.610000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.450000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 43cc2ce0-0dce-40d0-9c08-43b9fc2fd2af 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 43cc2ce0-0dce-40d0-9c08-43b9fc2fd2af 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/70d117bc-fe70-4eaa-b71c-27818c46d1c1 (::1) 205s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/70d117bc-fe70-4eaa-b71c-27818c46d1c1', version='HTTP/1.1', remote_ip='::1') 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 205s result = await result 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 205s yield maybe_future(sm.delete_session(session_id)) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 205s yielded = self.gen.send(value) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 205s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 205s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 205s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 205s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 205s stopper = ensure_async(km.shutdown_kernel(now, restart)) 205s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 205s return _runner_map[name].run(inner) 205s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 205s return fut.result(None) 205s ~~~~~~~~~~^^^^^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 205s return self.__get_result() 205s ~~~~~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 205s raise self._exception 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s WARNING NotebookApp:handlers.py:612 Unhandled error 205s --------------------------- Captured stderr teardown --------------------------- 205s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 205s return _run_code(code, main_globals, None, 205s "__main__", mod_spec) 205s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 205s exec(code, run_globals) 205s ~~~~^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 205s from ipykernel import kernelapp as app 205s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 205s from .connect import * # noqa: F403 205s ^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 205s import json 205s File "/usr/lib/python3.13/json/__init__.py", line 106, in 205s from .decoder import JSONDecoder, JSONDecodeError 205s File "/usr/lib/python3.13/json/decoder.py", line 20, in 205s class JSONDecodeError(ValueError): 205s ...<22 lines>... 205s return self.__class__, (self.msg, self.doc, self.pos) 205s KeyboardInterrupt 205s ---------------------------- Captured log teardown ----------------------------- 205s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 43cc2ce0-0dce-40d0-9c08-43b9fc2fd2af 205s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 205s _______________________ AsyncSessionAPITest.test_create ________________________ 205s 205s @self.addCleanup 205s def cleanup_sessions(): 205s for session in self.sess_api.list().json(): 205s > self.sess_api.delete(session['id']) 205s 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 205s return self._req('DELETE', id) 205s ^^^^^^^^^^^^^^^^^^^^^^^ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 205s response.raise_for_status() 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s self = 205s 205s def raise_for_status(self): 205s """Raises :class:`HTTPError`, if one occurred.""" 205s 205s http_error_msg = "" 205s if isinstance(self.reason, bytes): 205s # We attempt to decode utf-8 first because some servers 205s # choose to localize their reason strings. If the string 205s # isn't utf-8, we fall back to iso-8859-1 for all other 205s # encodings. (See PR #3538) 205s try: 205s reason = self.reason.decode("utf-8") 205s except UnicodeDecodeError: 205s reason = self.reason.decode("iso-8859-1") 205s else: 205s reason = self.reason 205s 205s if 400 <= self.status_code < 500: 205s http_error_msg = ( 205s f"{self.status_code} Client Error: {reason} for url: {self.url}" 205s ) 205s 205s elif 500 <= self.status_code < 600: 205s http_error_msg = ( 205s f"{self.status_code} Server Error: {reason} for url: {self.url}" 205s ) 205s 205s if http_error_msg: 205s > raise HTTPError(http_error_msg, response=self) 205s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5193f6b8-fb77-4689-a5fa-0e06ae05e2f3 205s 205s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 205s ------------------------------ Captured log setup ------------------------------ 205s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp5lw5r4uw/config', '/tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp5lw5r4uw/etc/jupyter'] for config files 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp5lw5r4uw/etc/jupyter 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp5lw5r4uw/config 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp5lw5r4uw/etc/jupyter 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 205s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp5lw5r4uw/config 205s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp5lw5r4uw/notebooks 205s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 205s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 205s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 205s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 205s WARNING NotebookApp:handlers.py:612 Forbidden 205s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.320000ms referer=None 205s ----------------------------- Captured stderr call ----------------------------- 205s Traceback (most recent call last): 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.580000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5lw5r4uw/runtime/kernel-3bccf5fd-3459-41d4-8d99-ccc768ce4fa9.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38991 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55389 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3bccf5fd-3459-41d4-8d99-ccc768ce4fa9, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp5lw5r4uw/notebooks/foo'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.200000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.390000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/5193f6b8-fb77-4689-a5fa-0e06ae05e2f3 (::1) 0.390000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.390000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3bccf5fd-3459-41d4-8d99-ccc768ce4fa9 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3bccf5fd-3459-41d4-8d99-ccc768ce4fa9 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 205s await kernel_awaitable 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5193f6b8-fb77-4689-a5fa-0e06ae05e2f3 (::1) 205s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5193f6b8-fb77-4689-a5fa-0e06ae05e2f3', version='HTTP/1.1', remote_ip='::1') 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 205s result = await result 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 205s future.result() 205s ~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 205s yield maybe_future(sm.delete_session(session_id)) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 205s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 205s raise self._exception.with_traceback(self._exception_tb) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 205s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 205s raise km.ready.exception() # type: ignore[misc] 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 205s await kernel_awaitable 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s WARNING NotebookApp:handlers.py:612 Unhandled error 205s --------------------------- Captured stderr teardown --------------------------- 205s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 205s return _run_code(code, main_globals, None, 205s "__main__", mod_spec) 205s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 205s exec(code, run_globals) 205s ~~~~^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 205s from ipykernel import kernelapp as app 205s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 205s from .connect import * # noqa: F403 205s ^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 205s import json 205s File "/usr/lib/python3.13/json/__init__.py", line 106, in 205s from .decoder import JSONDecoder, JSONDecodeError 205s File "/usr/lib/python3.13/json/decoder.py", line 262, in 205s class JSONDecoder(object): 205s ...<101 lines>... 205s return obj, end 205s KeyboardInterrupt 205s _______________ AsyncSessionAPITest.test_create_console_session ________________ 205s 205s @self.addCleanup 205s def cleanup_sessions(): 205s for session in self.sess_api.list().json(): 205s > self.sess_api.delete(session['id']) 205s 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 205s return self._req('DELETE', id) 205s ^^^^^^^^^^^^^^^^^^^^^^^ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 205s response.raise_for_status() 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s self = 205s 205s def raise_for_status(self): 205s """Raises :class:`HTTPError`, if one occurred.""" 205s 205s http_error_msg = "" 205s if isinstance(self.reason, bytes): 205s # We attempt to decode utf-8 first because some servers 205s # choose to localize their reason strings. If the string 205s # isn't utf-8, we fall back to iso-8859-1 for all other 205s # encodings. (See PR #3538) 205s try: 205s reason = self.reason.decode("utf-8") 205s except UnicodeDecodeError: 205s reason = self.reason.decode("iso-8859-1") 205s else: 205s reason = self.reason 205s 205s if 400 <= self.status_code < 500: 205s http_error_msg = ( 205s f"{self.status_code} Client Error: {reason} for url: {self.url}" 205s ) 205s 205s elif 500 <= self.status_code < 600: 205s http_error_msg = ( 205s f"{self.status_code} Server Error: {reason} for url: {self.url}" 205s ) 205s 205s if http_error_msg: 205s > raise HTTPError(http_error_msg, response=self) 205s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b60abab7-7566-4c4d-b684-9cccb4d02512 205s 205s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 205s ----------------------------- Captured stderr call ----------------------------- 205s Traceback (most recent call last): 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5lw5r4uw/runtime/kernel-54afe8b6-595b-4dca-a97a-b8d2c35d0044.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52051 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34637 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: 54afe8b6-595b-4dca-a97a-b8d2c35d0044, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp5lw5r4uw/notebooks/foo'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.020000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.360000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3bccf5fd-3459-41d4-8d99-ccc768ce4fa9 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3bccf5fd-3459-41d4-8d99-ccc768ce4fa9 205s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/5193f6b8-fb77-4689-a5fa-0e06ae05e2f3 (::1) 0.610000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 54afe8b6-595b-4dca-a97a-b8d2c35d0044 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 54afe8b6-595b-4dca-a97a-b8d2c35d0044 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 205s await kernel_awaitable 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b60abab7-7566-4c4d-b684-9cccb4d02512 (::1) 205s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b60abab7-7566-4c4d-b684-9cccb4d02512', version='HTTP/1.1', remote_ip='::1') 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 205s result = await result 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 205s future.result() 205s ~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 205s yield maybe_future(sm.delete_session(session_id)) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 205s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 205s raise self._exception.with_traceback(self._exception_tb) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 205s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 205s raise km.ready.exception() # type: ignore[misc] 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 205s await kernel_awaitable 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s WARNING NotebookApp:handlers.py:612 Unhandled error 205s --------------------------- Captured stderr teardown --------------------------- 205s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 205s return _run_code(code, main_globals, None, 205s "__main__", mod_spec) 205s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 205s exec(code, run_globals) 205s ~~~~^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 205s from ipykernel import kernelapp as app 205s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 205s from .connect import * # noqa: F403 205s ^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 205s import json 205s File "/usr/lib/python3.13/json/__init__.py", line 106, in 205s from .decoder import JSONDecoder, JSONDecodeError 205s File "/usr/lib/python3.13/json/decoder.py", line 5, in 205s from json import scanner 205s File "/usr/lib/python3.13/json/scanner.py", line 11, in 205s NUMBER_RE = re.compile( 205s r'(-?(?:0|[1-9][0-9]*))(\.[0-9]+)?([eE][-+]?[0-9]+)?', 205s (re.VERBOSE | re.MULTILINE | re.DOTALL)) 205s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 205s return _compile(pattern, flags) 205s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 205s p = _compiler.compile(pattern, flags) 205s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 205s p = _parser.parse(p, flags) 205s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 205s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 205s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 205s itemsappend(_parse(source, state, verbose, nested + 1, 205s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s not nested and not items)) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3.13/re/_parser.py", line 863, in _parse 205s p = _parse_sub(source, state, sub_verbose, nested + 1) 205s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 205s itemsappend(_parse(source, state, verbose, nested + 1, 205s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s not nested and not items)) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3.13/re/_parser.py", line 863, in _parse 205s p = _parse_sub(source, state, sub_verbose, nested + 1) 205s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 205s itemsappend(_parse(source, state, verbose, nested + 1, 205s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s not nested and not items)) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3.13/re/_parser.py", line 623, in _parse 205s set = _uniq(set) 205s File "/usr/lib/python3.13/re/_parser.py", line 449, in _uniq 205s return list(dict.fromkeys(items)) 205s ~~~~~~~~~~~~~^^^^^^^ 205s KeyboardInterrupt 205s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 205s 205s @self.addCleanup 205s def cleanup_sessions(): 205s for session in self.sess_api.list().json(): 205s > self.sess_api.delete(session['id']) 205s 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 205s return self._req('DELETE', id) 205s ^^^^^^^^^^^^^^^^^^^^^^^ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 205s response.raise_for_status() 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s self = 205s 205s def raise_for_status(self): 205s """Raises :class:`HTTPError`, if one occurred.""" 205s 205s http_error_msg = "" 205s if isinstance(self.reason, bytes): 205s # We attempt to decode utf-8 first because some servers 205s # choose to localize their reason strings. If the string 205s # isn't utf-8, we fall back to iso-8859-1 for all other 205s # encodings. (See PR #3538) 205s try: 205s reason = self.reason.decode("utf-8") 205s except UnicodeDecodeError: 205s reason = self.reason.decode("iso-8859-1") 205s else: 205s reason = self.reason 205s 205s if 400 <= self.status_code < 500: 205s http_error_msg = ( 205s f"{self.status_code} Client Error: {reason} for url: {self.url}" 205s ) 205s 205s elif 500 <= self.status_code < 600: 205s http_error_msg = ( 205s f"{self.status_code} Server Error: {reason} for url: {self.url}" 205s ) 205s 205s if http_error_msg: 205s > raise HTTPError(http_error_msg, response=self) 205s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7bdcb227-58b8-4f0a-9dfd-cf6e30907b47 205s 205s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 205s ----------------------------- Captured stderr call ----------------------------- 205s Traceback (most recent call last): 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5lw5r4uw/runtime/kernel-b014e9d4-23fd-47c7-ac65-1be2f24943a7.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56277 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59209 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: b014e9d4-23fd-47c7-ac65-1be2f24943a7, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp5lw5r4uw/notebooks/foo'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.990000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.430000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 54afe8b6-595b-4dca-a97a-b8d2c35d0044 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 54afe8b6-595b-4dca-a97a-b8d2c35d0044 205s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/b60abab7-7566-4c4d-b684-9cccb4d02512 (::1) 1.340000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b014e9d4-23fd-47c7-ac65-1be2f24943a7 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b014e9d4-23fd-47c7-ac65-1be2f24943a7 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 205s await kernel_awaitable 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7bdcb227-58b8-4f0a-9dfd-cf6e30907b47 (::1) 205s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7bdcb227-58b8-4f0a-9dfd-cf6e30907b47', version='HTTP/1.1', remote_ip='::1') 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 205s result = await result 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 205s future.result() 205s ~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 205s yield maybe_future(sm.delete_session(session_id)) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 205s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 205s raise self._exception.with_traceback(self._exception_tb) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 205s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 205s raise km.ready.exception() # type: ignore[misc] 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 205s await kernel_awaitable 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s WARNING NotebookApp:handlers.py:612 Unhandled error 205s ERROR NotebookApp:log.py:55 { 205s "Host": "localhost:12341", 205s "Accept": "*/*", 205s "User-Agent": "python-requests/2.32.5" 205s } 205s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/7bdcb227-58b8-4f0a-9dfd-cf6e30907b47 (::1) 3.630000ms referer=None 205s --------------------------- Captured stderr teardown --------------------------- 205s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 205s return _run_code(code, main_globals, None, 205s "__main__", mod_spec) 205s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 205s exec(code, run_globals) 205s ~~~~^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 205s from ipykernel import kernelapp as app 205s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 205s from .connect import * # noqa: F403 205s ^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 205s import json 205s File "/usr/lib/python3.13/json/__init__.py", line 106, in 205s from .decoder import JSONDecoder, JSONDecodeError 205s File "/usr/lib/python3.13/json/decoder.py", line 262, in 205s class JSONDecoder(object): 205s ...<101 lines>... 205s return obj, end 205s KeyboardInterrupt 205s _________________ AsyncSessionAPITest.test_create_file_session _________________ 205s 205s @self.addCleanup 205s def cleanup_sessions(): 205s for session in self.sess_api.list().json(): 205s > self.sess_api.delete(session['id']) 205s 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 205s return self._req('DELETE', id) 205s ^^^^^^^^^^^^^^^^^^^^^^^ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 205s response.raise_for_status() 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s self = 205s 205s def raise_for_status(self): 205s """Raises :class:`HTTPError`, if one occurred.""" 205s 205s http_error_msg = "" 205s if isinstance(self.reason, bytes): 205s # We attempt to decode utf-8 first because some servers 205s # choose to localize their reason strings. If the string 205s # isn't utf-8, we fall back to iso-8859-1 for all other 205s # encodings. (See PR #3538) 205s try: 205s reason = self.reason.decode("utf-8") 205s except UnicodeDecodeError: 205s reason = self.reason.decode("iso-8859-1") 205s else: 205s reason = self.reason 205s 205s if 400 <= self.status_code < 500: 205s http_error_msg = ( 205s f"{self.status_code} Client Error: {reason} for url: {self.url}" 205s ) 205s 205s elif 500 <= self.status_code < 600: 205s http_error_msg = ( 205s f"{self.status_code} Server Error: {reason} for url: {self.url}" 205s ) 205s 205s if http_error_msg: 205s > raise HTTPError(http_error_msg, response=self) 205s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/72cb70e5-b186-4bf1-89bf-681ad66680f9 205s 205s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 205s ----------------------------- Captured stderr call ----------------------------- 205s Traceback (most recent call last): 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5lw5r4uw/runtime/kernel-0b73a0b9-cbc9-4b6d-b26f-b5174e09e391.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35227 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48053 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0b73a0b9-cbc9-4b6d-b26f-b5174e09e391, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp5lw5r4uw/notebooks/foo'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.210000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.400000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b014e9d4-23fd-47c7-ac65-1be2f24943a7 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b014e9d4-23fd-47c7-ac65-1be2f24943a7 205s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/7bdcb227-58b8-4f0a-9dfd-cf6e30907b47 (::1) 1.190000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0b73a0b9-cbc9-4b6d-b26f-b5174e09e391 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0b73a0b9-cbc9-4b6d-b26f-b5174e09e391 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 205s await kernel_awaitable 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/72cb70e5-b186-4bf1-89bf-681ad66680f9 (::1) 205s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/72cb70e5-b186-4bf1-89bf-681ad66680f9', version='HTTP/1.1', remote_ip='::1') 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 205s result = await result 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 205s future.result() 205s ~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 205s yield maybe_future(sm.delete_session(session_id)) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 205s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 205s raise self._exception.with_traceback(self._exception_tb) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 205s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 205s raise km.ready.exception() # type: ignore[misc] 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 205s await kernel_awaitable 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s WARNING NotebookApp:handlers.py:612 Unhandled error 205s ERROR NotebookApp:log.py:55 { 205s "Host": "localhost:12341", 205s "Accept": "*/*", 205s "User-Agent": "python-requests/2.32.5" 205s } 205s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/72cb70e5-b186-4bf1-89bf-681ad66680f9 (::1) 3.750000ms referer=None 205s --------------------------- Captured stderr teardown --------------------------- 205s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 205s return _run_code(code, main_globals, None, 205s "__main__", mod_spec) 205s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 205s exec(code, run_globals) 205s ~~~~^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 205s from ipykernel import kernelapp as app 205s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 205s from .connect import * # noqa: F403 205s ^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 205s import json 205s File "/usr/lib/python3.13/json/__init__.py", line 106, in 205s from .decoder import JSONDecoder, JSONDecodeError 205s File "/usr/lib/python3.13/json/decoder.py", line 5, in 205s from json import scanner 205s File "/usr/lib/python3.13/json/scanner.py", line 5, in 205s from _json import make_scanner as c_make_scanner 205s KeyboardInterrupt 205s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 205s 205s self = 205s 205s def test_create_with_kernel_id(self): 205s # create a new kernel 205s r = self.request('POST', 'api/kernels') 205s r.raise_for_status() 205s kernel = r.json() 205s 205s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 205s self.assertEqual(resp.status_code, 201) 205s newsession = resp.json() 205s self.assertIn('id', newsession) 205s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 205s self.assertEqual(newsession['kernel']['id'], kernel['id']) 205s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 205s 205s sessions = self.sess_api.list().json() 205s > self.assertEqual(sessions, [newsession]) 205s E AssertionError: Lists differ: [{'id': '72cb70e5-b186-4bf1-89bf-681ad66680f9', 'p[553 chars]ne}}] != [{'id': 'a96ceec1-8ac1-4c4d-a853-5936561affe9', 'p[279 chars]ne}}] 205s E 205s E First differing element 0: 205s E {'id': '72cb70e5-b186-4bf1-89bf-681ad66680f9', 'p[218 chars]: 0}} 205s E {'id': 'a96ceec1-8ac1-4c4d-a853-5936561affe9', 'p[278 chars]one}} 205s E 205s E First list contains 1 additional elements. 205s E First extra element 1: 205s E {'id': 'a96ceec1-8ac1-4c4d-a853-5936561affe9', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '905ea4f8-0db2-4fa4-be3a-5c9705fab416', 'name': 'python3', 'last_activity': '2026-02-06T10:25:18.445117Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 205s E 205s E Diff is 830 characters long. Set self.maxDiff to None to see it. 205s 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 205s ----------------------------- Captured stderr call ----------------------------- 205s Traceback (most recent call last): 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5lw5r4uw/runtime/kernel-905ea4f8-0db2-4fa4-be3a-5c9705fab416.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48889 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45963 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: 905ea4f8-0db2-4fa4-be3a-5c9705fab416, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.380000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.490000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.410000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0b73a0b9-cbc9-4b6d-b26f-b5174e09e391 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0b73a0b9-cbc9-4b6d-b26f-b5174e09e391 205s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/72cb70e5-b186-4bf1-89bf-681ad66680f9 (::1) 0.520000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 905ea4f8-0db2-4fa4-be3a-5c9705fab416 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 905ea4f8-0db2-4fa4-be3a-5c9705fab416 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 205s await kernel_awaitable 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a96ceec1-8ac1-4c4d-a853-5936561affe9 (::1) 205s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a96ceec1-8ac1-4c4d-a853-5936561affe9', version='HTTP/1.1', remote_ip='::1') 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 205s result = await result 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 205s future.result() 205s ~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 205s yield maybe_future(sm.delete_session(session_id)) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 205s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 205s raise self._exception.with_traceback(self._exception_tb) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 205s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 205s raise km.ready.exception() # type: ignore[misc] 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 205s await kernel_awaitable 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s WARNING NotebookApp:handlers.py:612 Unhandled error 205s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 205s 205s @self.addCleanup 205s def cleanup_sessions(): 205s for session in self.sess_api.list().json(): 205s > self.sess_api.delete(session['id']) 205s 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 205s return self._req('DELETE', id) 205s ^^^^^^^^^^^^^^^^^^^^^^^ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 205s response.raise_for_status() 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s self = 205s 205s def raise_for_status(self): 205s """Raises :class:`HTTPError`, if one occurred.""" 205s 205s http_error_msg = "" 205s if isinstance(self.reason, bytes): 205s # We attempt to decode utf-8 first because some servers 205s # choose to localize their reason strings. If the string 205s # isn't utf-8, we fall back to iso-8859-1 for all other 205s # encodings. (See PR #3538) 205s try: 205s reason = self.reason.decode("utf-8") 205s except UnicodeDecodeError: 205s reason = self.reason.decode("iso-8859-1") 205s else: 205s reason = self.reason 205s 205s if 400 <= self.status_code < 500: 205s http_error_msg = ( 205s f"{self.status_code} Client Error: {reason} for url: {self.url}" 205s ) 205s 205s elif 500 <= self.status_code < 600: 205s http_error_msg = ( 205s f"{self.status_code} Server Error: {reason} for url: {self.url}" 205s ) 205s 205s if http_error_msg: 205s > raise HTTPError(http_error_msg, response=self) 205s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a96ceec1-8ac1-4c4d-a853-5936561affe9 205s 205s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 205s ----------------------------- Captured stderr call ----------------------------- 205s Traceback (most recent call last): 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.320000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5lw5r4uw/runtime/kernel-17a000e9-63f2-4db0-8b43-e148a3c0b56c.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47503 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56355 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: 17a000e9-63f2-4db0-8b43-e148a3c0b56c, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.780000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 905ea4f8-0db2-4fa4-be3a-5c9705fab416 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 905ea4f8-0db2-4fa4-be3a-5c9705fab416 205s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/a96ceec1-8ac1-4c4d-a853-5936561affe9 (::1) 0.680000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.180000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.700000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 17a000e9-63f2-4db0-8b43-e148a3c0b56c 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 17a000e9-63f2-4db0-8b43-e148a3c0b56c 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 205s await kernel_awaitable 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a96ceec1-8ac1-4c4d-a853-5936561affe9 (::1) 205s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a96ceec1-8ac1-4c4d-a853-5936561affe9', version='HTTP/1.1', remote_ip='::1') 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 205s result = await result 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 205s future.result() 205s ~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 205s yield maybe_future(sm.delete_session(session_id)) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 205s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 205s raise self._exception.with_traceback(self._exception_tb) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 205s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 205s raise km.ready.exception() # type: ignore[misc] 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 205s await kernel_awaitable 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s WARNING NotebookApp:handlers.py:612 Unhandled error 205s --------------------------- Captured stderr teardown --------------------------- 205s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 205s return _run_code(code, main_globals, None, 205s "__main__", mod_spec) 205s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 205s exec(code, run_globals) 205s ~~~~^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 205s from ipykernel import kernelapp as app 205s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 205s from .connect import * # noqa: F403 205s ^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 205s from subprocess import PIPE, Popen 205s File "/usr/lib/python3.13/subprocess.py", line 46, in 205s import locale 205s File "/usr/lib/python3.13/locale.py", line 180, in 205s _percent_re = re.compile(r'%(?:\((?P.*?)\))?' 205s r'(?P[-#0-9 +*.hlL]*?)[eEfFgGdiouxXcrs%]') 205s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 205s return _compile(pattern, flags) 205s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 205s p = _compiler.compile(pattern, flags) 205s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 205s code = _code(p, flags) 205s File "/usr/lib/python3.13/re/_compiler.py", line 585, in _code 205s _compile(code, p.data, flags) 205s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3.13/re/_compiler.py", line 117, in _compile 205s _compile(code, av[2], flags) 205s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3.13/re/_compiler.py", line 126, in _compile 205s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 205s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3.13/re/_compiler.py", line 109, in _compile 205s _compile(code, av[2], flags) 205s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3.13/re/_compiler.py", line 102, in _compile 205s emit(ANY) 205s ~~~~^^^^^ 205s KeyboardInterrupt 205s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 205s 205s @self.addCleanup 205s def cleanup_sessions(): 205s for session in self.sess_api.list().json(): 205s > self.sess_api.delete(session['id']) 205s 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 205s return self._req('DELETE', id) 205s ^^^^^^^^^^^^^^^^^^^^^^^ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 205s response.raise_for_status() 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s self = 205s 205s def raise_for_status(self): 205s """Raises :class:`HTTPError`, if one occurred.""" 205s 205s http_error_msg = "" 205s if isinstance(self.reason, bytes): 205s # We attempt to decode utf-8 first because some servers 205s # choose to localize their reason strings. If the string 205s # isn't utf-8, we fall back to iso-8859-1 for all other 205s # encodings. (See PR #3538) 205s try: 205s reason = self.reason.decode("utf-8") 205s except UnicodeDecodeError: 205s reason = self.reason.decode("iso-8859-1") 205s else: 205s reason = self.reason 205s 205s if 400 <= self.status_code < 500: 205s http_error_msg = ( 205s f"{self.status_code} Client Error: {reason} for url: {self.url}" 205s ) 205s 205s elif 500 <= self.status_code < 600: 205s http_error_msg = ( 205s f"{self.status_code} Server Error: {reason} for url: {self.url}" 205s ) 205s 205s if http_error_msg: 205s > raise HTTPError(http_error_msg, response=self) 205s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a96ceec1-8ac1-4c4d-a853-5936561affe9 205s 205s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 205s ----------------------------- Captured stderr call ----------------------------- 205s Traceback (most recent call last): 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.510000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5lw5r4uw/runtime/kernel-db755f5b-c697-4ad4-b3a3-ceff2107dbf2.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57139 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51217 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: db755f5b-c697-4ad4-b3a3-ceff2107dbf2, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp5lw5r4uw/notebooks/foo'} 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 17a000e9-63f2-4db0-8b43-e148a3c0b56c 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 17a000e9-63f2-4db0-8b43-e148a3c0b56c 205s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/a96ceec1-8ac1-4c4d-a853-5936561affe9 (::1) 14.060000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.720000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.210000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for db755f5b-c697-4ad4-b3a3-ceff2107dbf2 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: db755f5b-c697-4ad4-b3a3-ceff2107dbf2 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 205s await kernel_awaitable 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a96ceec1-8ac1-4c4d-a853-5936561affe9 (::1) 205s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a96ceec1-8ac1-4c4d-a853-5936561affe9', version='HTTP/1.1', remote_ip='::1') 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 205s result = await result 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 205s future.result() 205s ~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 205s yield maybe_future(sm.delete_session(session_id)) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 205s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 205s raise self._exception.with_traceback(self._exception_tb) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 205s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 205s raise km.ready.exception() # type: ignore[misc] 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 205s await kernel_awaitable 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s WARNING NotebookApp:handlers.py:612 Unhandled error 205s --------------------------- Captured stderr teardown --------------------------- 205s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 205s return _run_code(code, main_globals, None, 205s "__main__", mod_spec) 205s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 205s exec(code, run_globals) 205s ~~~~^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 205s from ipykernel import kernelapp as app 205s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 205s from .connect import * # noqa: F403 205s ^^^^^^^^^^^^^^^^^^^^^^ 205s File "", line 1360, in _find_and_load 205s File "", line 1331, in _find_and_load_unlocked 205s File "", line 935, in _load_unlocked 205s File "", line 1019, in exec_module 205s File "", line 1152, in get_code 205s File "", line 781, in _compile_bytecode 205s KeyboardInterrupt 205s _____________________ AsyncSessionAPITest.test_modify_type _____________________ 205s 205s @self.addCleanup 205s def cleanup_sessions(): 205s for session in self.sess_api.list().json(): 205s > self.sess_api.delete(session['id']) 205s 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 205s return self._req('DELETE', id) 205s ^^^^^^^^^^^^^^^^^^^^^^^ 205s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 205s response.raise_for_status() 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s self = 205s 205s def raise_for_status(self): 205s """Raises :class:`HTTPError`, if one occurred.""" 205s 205s http_error_msg = "" 205s if isinstance(self.reason, bytes): 205s # We attempt to decode utf-8 first because some servers 205s # choose to localize their reason strings. If the string 205s # isn't utf-8, we fall back to iso-8859-1 for all other 205s # encodings. (See PR #3538) 205s try: 205s reason = self.reason.decode("utf-8") 205s except UnicodeDecodeError: 205s reason = self.reason.decode("iso-8859-1") 205s else: 205s reason = self.reason 205s 205s if 400 <= self.status_code < 500: 205s http_error_msg = ( 205s f"{self.status_code} Client Error: {reason} for url: {self.url}" 205s ) 205s 205s elif 500 <= self.status_code < 600: 205s http_error_msg = ( 205s f"{self.status_code} Server Error: {reason} for url: {self.url}" 205s ) 205s 205s if http_error_msg: 205s > raise HTTPError(http_error_msg, response=self) 205s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b5e9126b-27c6-48cf-8678-00f1b5fcc3be 205s 205s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 205s ----------------------------- Captured stderr call ----------------------------- 205s Traceback (most recent call last): 205s ------------------------------ Captured log call ------------------------------- 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 205s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5lw5r4uw/runtime/kernel-3c69aed8-33b2-4e51-bce2-cf12a726a78e.json'] 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38039 205s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37003 205s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3c69aed8-33b2-4e51-bce2-cf12a726a78e, name: python3 205s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp5lw5r4uw/notebooks/foo'} 205s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.320000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/b5e9126b-27c6-48cf-8678-00f1b5fcc3be (::1) 1.540000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.390000ms 205s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 205s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3c69aed8-33b2-4e51-bce2-cf12a726a78e 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3c69aed8-33b2-4e51-bce2-cf12a726a78e 205s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 205s await kernel_awaitable 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b5e9126b-27c6-48cf-8678-00f1b5fcc3be (::1) 205s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b5e9126b-27c6-48cf-8678-00f1b5fcc3be', version='HTTP/1.1', remote_ip='::1') 205s Traceback (most recent call last): 205s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 205s result = await result 205s ^^^^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 205s future.result() 205s ~~~~~~~~~~~~~^^ 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 205s yield maybe_future(sm.delete_session(session_id)) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 205s yielded = self.gen.throw(exc) 205s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 205s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 205s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 205s value = future.result() 205s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 205s raise self._exception.with_traceback(self._exception_tb) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 205s result = coro.send(None) 205s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 205s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 205s raise km.ready.exception() # type: ignore[misc] 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 205s await kernel_awaitable 205s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 205s result = await obj 205s ^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 205s raise e 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 205s out = await method(self, *args, **kwargs) 205s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 205s await self._async_finish_shutdown(restart=restart) 205s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 205s await asyncio.wait_for( 205s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 205s ) 205s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 205s async with timeouts.timeout(timeout): 205s ~~~~~~~~~~~~~~~~^^^^^^^^^ 205s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 205s raise RuntimeError("Timeout should be used inside a task") 205s RuntimeError: Timeout should be used inside a task 205s WARNING NotebookApp:handlers.py:612 Unhandled error 205s ERROR NotebookApp:log.py:55 { 205s "Host": "localhost:12341", 205s "Accept": "*/*", 205s "User-Agent": "python-requests/2.32.5" 205s } 205s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b5e9126b-27c6-48cf-8678-00f1b5fcc3be (::1) 3.770000ms referer=None 205s --------------------------- Captured stderr teardown --------------------------- 205s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 205s return _run_code(code, main_globals, None, 205s "__main__", mod_spec) 205s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 205s exec(code, run_globals) 205s ~~~~^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 205s from ipykernel import kernelapp as app 205s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 205s from .connect import * # noqa: F403 205s ^^^^^^^^^^^^^^^^^^^^^^ 205s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 205s import json 205s File "/usr/lib/python3.13/json/__init__.py", line 106, in 205s from .decoder import JSONDecoder, JSONDecodeError 205s File "", line 1360, in _find_and_load 205s File "", line 1331, in _find_and_load_unlocked 205s File "", line 935, in _load_unlocked 205s File "", line 1019, in exec_module 205s File "", line 1152, in get_code 205s File "", line 781, in _compile_bytecode 205s KeyboardInterrupt 205s ---------------------------- Captured log teardown ----------------------------- 205s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 54afe8b6-595b-4dca-a97a-b8d2c35d0044 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0b73a0b9-cbc9-4b6d-b26f-b5174e09e391 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 17a000e9-63f2-4db0-8b43-e148a3c0b56c 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: db755f5b-c697-4ad4-b3a3-ceff2107dbf2 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3c69aed8-33b2-4e51-bce2-cf12a726a78e 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b014e9d4-23fd-47c7-ac65-1be2f24943a7 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3bccf5fd-3459-41d4-8d99-ccc768ce4fa9 205s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 905ea4f8-0db2-4fa4-be3a-5c9705fab416 205s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 205s =============================== warnings summary =============================== 205s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 205s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 205s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 205s return LooseVersion(v) >= LooseVersion(check) 205s 205s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 205s services/kernels/tests/test_kernels_api.py: 68 warnings 205s services/sessions/tests/test_sessions_api.py: 106 warnings 205s /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). 205s dt = unaware(*args, **kwargs) 205s 205s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 205s /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 205s pytestmark = pytest.mark.integration_tests 205s 205s services/kernels/tests/test_kernels_api.py: 6 warnings 205s services/sessions/tests/test_sessions_api.py: 6 warnings 205s /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 205s policy = events.get_event_loop_policy() 205s 205s services/kernels/tests/test_kernels_api.py: 24 warnings 205s services/sessions/tests/test_sessions_api.py: 19 warnings 205s /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 205s loop = events.get_event_loop_policy().get_event_loop() 205s 205s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 205s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 205s loop.make_current() 205s 205s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 205s =========================== short test summary info ============================ 205s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 205s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 205s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 205s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 205s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 205s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 205s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 205s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 205s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 205s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 205s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 205s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 205s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 205s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 205s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 205s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 205s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_type 205s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 205s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 205s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 205s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 205s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 205s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 205s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 205s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_type 205s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 205s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 205s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 205s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 205s ===== 25 failed, 2 passed, 303 deselected, 234 warnings, 4 errors in 3.63s ===== 205s *** END OF RUN 2: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 205s *** 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 207s ============================= test session starts ============================== 207s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 207s rootdir: /tmp/autopkgtest.g9YpMG/autopkgtest_tmp 207s plugins: typeguard-4.4.4 207s collected 330 items / 305 deselected / 25 selected 207s run-last-failure: rerun previous 25 failures 207s 208s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 36%] 209s services/sessions/tests/test_sessions_api.py FFFFFEFF.FFFFFEFF. [100%] 209s 209s ==================================== ERRORS ==================================== 209s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 209s 209s self = 209s 209s def tearDown(self): 209s for k in self.kern_api.list().json(): 209s > self.kern_api.shutdown(k['id']) 209s 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 209s return self._req('DELETE', id) 209s ^^^^^^^^^^^^^^^^^^^^^^^ 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 209s response.raise_for_status() 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s 209s self = 209s 209s def raise_for_status(self): 209s """Raises :class:`HTTPError`, if one occurred.""" 209s 209s http_error_msg = "" 209s if isinstance(self.reason, bytes): 209s # We attempt to decode utf-8 first because some servers 209s # choose to localize their reason strings. If the string 209s # isn't utf-8, we fall back to iso-8859-1 for all other 209s # encodings. (See PR #3538) 209s try: 209s reason = self.reason.decode("utf-8") 209s except UnicodeDecodeError: 209s reason = self.reason.decode("iso-8859-1") 209s else: 209s reason = self.reason 209s 209s if 400 <= self.status_code < 500: 209s http_error_msg = ( 209s f"{self.status_code} Client Error: {reason} for url: {self.url}" 209s ) 209s 209s elif 500 <= self.status_code < 600: 209s http_error_msg = ( 209s f"{self.status_code} Server Error: {reason} for url: {self.url}" 209s ) 209s 209s if http_error_msg: 209s > raise HTTPError(http_error_msg, response=self) 209s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/a756cfce-2d79-45e4-a9ff-986518d3d9b5 209s 209s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 209s ----------------------------- Captured stderr call ----------------------------- 209s Traceback (most recent call last): 209s Traceback (most recent call last): 209s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 209s return _run_code(code, main_globals, None, 209s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 209s exec(code, run_globals) 209s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 209s from pathlib import Path 209s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 209s from ._abc import * 209s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 209s from glob import _Globber, _no_recurse_symlinks 209s File "/usr/lib/python3.13/glob.py", line 337, in 209s class _Globber: 209s File "/usr/lib/python3.13/glob.py", line 365, in _Globber 209s @staticmethod 209s KeyboardInterrupt 209s Traceback (most recent call last): 209s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 209s return _run_code(code, main_globals, None, 209s "__main__", mod_spec) 209s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 209s exec(code, run_globals) 209s ~~~~^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 209s from ipykernel import kernelapp as app 209s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 209s from .connect import * # noqa: F403 209s ^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 209s import jupyter_client 209s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 209s from .asynchronous import AsyncKernelClient 209s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 209s from .client import AsyncKernelClient # noqa 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 209s import zmq.asyncio 209s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 209s import asyncio 209s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 209s from .base_events import * 209s File "/usr/lib/python3.13/asyncio/base_events.py", line 40, in 209s from . import events 209s File "/usr/lib/python3.13/asyncio/events.py", line 18, in 209s import contextvars 209s File "/usr/lib/python3.13/contextvars.py", line 1, in 209s from _contextvars import Context, ContextVar, Token, copy_context 209s KeyboardInterrupt 209s ------------------------------ Captured log call ------------------------------- 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphdt_kcnv/runtime/kernel-a756cfce-2d79-45e4-a9ff-986518d3d9b5.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42961 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33771 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: a756cfce-2d79-45e4-a9ff-986518d3d9b5, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.960000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.390000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphdt_kcnv/runtime/kernel-926b7300-bbef-4852-852e-ccb8a5c0955a.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52191 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42905 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: 926b7300-bbef-4852-852e-ccb8a5c0955a, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.340000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.330000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 926b7300-bbef-4852-852e-ccb8a5c0955a 209s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/926b7300-bbef-4852-852e-ccb8a5c0955a/interrupt (::1) 2.790000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 209s yield maybe_future(km.restart_kernel(kernel_id)) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 209s raise self._exception.with_traceback(self._exception_tb) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 209s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 209s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 209s return _runner_map[name].run(inner) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 209s return fut.result(None) 209s ~~~~~~~~~~^^^^^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 209s return self.__get_result() 209s ~~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 209s raise self._exception 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 209s await ensure_async(kernel.restart_kernel(now=now)) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 209s return _runner_map[name].run(inner) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 209s return fut.result(None) 209s ~~~~~~~~~~^^^^^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 209s return self.__get_result() 209s ~~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 209s raise self._exception 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 209s await self._async_shutdown_kernel(now=now, restart=True) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:log.py:55 { 209s "Host": "localhost:12341", 209s "Accept": "*/*", 209s "User-Agent": "python-requests/2.32.5" 209s } 209s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/926b7300-bbef-4852-852e-ccb8a5c0955a/restart (::1) 4.880000ms referer=None 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.210000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a756cfce-2d79-45e4-a9ff-986518d3d9b5 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a756cfce-2d79-45e4-a9ff-986518d3d9b5 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/a756cfce-2d79-45e4-a9ff-986518d3d9b5 (::1) 209s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/a756cfce-2d79-45e4-a9ff-986518d3d9b5', version='HTTP/1.1', remote_ip='::1') 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 209s result = await result 209s ^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 209s yielded = ctx_run(next, result) 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 209s yield maybe_future(km.shutdown_kernel(kernel_id)) 209s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 209s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 209s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 209s return _runner_map[name].run(inner) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 209s return fut.result(None) 209s ~~~~~~~~~~^^^^^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 209s return self.__get_result() 209s ~~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 209s raise self._exception 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 209s stopper = ensure_async(km.shutdown_kernel(now, restart)) 209s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 209s return _runner_map[name].run(inner) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 209s return fut.result(None) 209s ~~~~~~~~~~^^^^^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 209s return self.__get_result() 209s ~~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 209s raise self._exception 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s WARNING NotebookApp:handlers.py:612 Unhandled error 209s ERROR NotebookApp:log.py:55 { 209s "Host": "localhost:12341", 209s "Accept": "*/*", 209s "User-Agent": "python-requests/2.32.5" 209s } 209s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/a756cfce-2d79-45e4-a9ff-986518d3d9b5 (::1) 6.500000ms referer=None 209s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 209s 209s self = 209s 209s def tearDown(self): 209s for k in self.kern_api.list().json(): 209s > self.kern_api.shutdown(k['id']) 209s 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 209s return self._req('DELETE', id) 209s ^^^^^^^^^^^^^^^^^^^^^^^ 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 209s response.raise_for_status() 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s 209s self = 209s 209s def raise_for_status(self): 209s """Raises :class:`HTTPError`, if one occurred.""" 209s 209s http_error_msg = "" 209s if isinstance(self.reason, bytes): 209s # We attempt to decode utf-8 first because some servers 209s # choose to localize their reason strings. If the string 209s # isn't utf-8, we fall back to iso-8859-1 for all other 209s # encodings. (See PR #3538) 209s try: 209s reason = self.reason.decode("utf-8") 209s except UnicodeDecodeError: 209s reason = self.reason.decode("iso-8859-1") 209s else: 209s reason = self.reason 209s 209s if 400 <= self.status_code < 500: 209s http_error_msg = ( 209s f"{self.status_code} Client Error: {reason} for url: {self.url}" 209s ) 209s 209s elif 500 <= self.status_code < 600: 209s http_error_msg = ( 209s f"{self.status_code} Server Error: {reason} for url: {self.url}" 209s ) 209s 209s if http_error_msg: 209s > raise HTTPError(http_error_msg, response=self) 209s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/812933dd-11c4-4373-ae51-34e475ce8782 209s 209s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 209s ----------------------------- Captured stderr call ----------------------------- 209s Traceback (most recent call last): 209s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 209s return _run_code(code, main_globals, None, 209s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 209s exec(code, run_globals) 209s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 209s from pathlib import Path 209s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 209s from ._abc import * 209s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 209s from glob import _Globber, _no_recurse_symlinks 209s File "/usr/lib/python3.13/glob.py", line 5, in 209s import re 209s File "/usr/lib/python3.13/re/__init__.py", line 126, in 209s from . import _compiler, _parser 209s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 209s from . import _parser 209s File "/usr/lib/python3.13/re/_parser.py", line 74, in 209s class State: 209s File "/usr/lib/python3.13/re/_parser.py", line 74, in State 209s class State: 209s KeyboardInterrupt 209s Traceback (most recent call last): 209s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 209s return _run_code(code, main_globals, None, 209s "__main__", mod_spec) 209s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 209s exec(code, run_globals) 209s ~~~~^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 209s from ipykernel import kernelapp as app 209s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 209s from .connect import * # noqa: F403 209s ^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 209s import jupyter_client 209s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 209s from .asynchronous import AsyncKernelClient 209s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 209s from .client import AsyncKernelClient # noqa 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 209s import zmq.asyncio 209s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 209s import asyncio 209s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 209s from .base_events import * 209s File "/usr/lib/python3.13/asyncio/base_events.py", line 44, in 209s from . import sslproto 209s File "", line 1360, in _find_and_load 209s File "", line 1331, in _find_and_load_unlocked 209s File "", line 935, in _load_unlocked 209s File "", line 1019, in exec_module 209s File "", line 1152, in get_code 209s File "", line 781, in _compile_bytecode 209s KeyboardInterrupt 209s ------------------------------ Captured log call ------------------------------- 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_vbwkpih/runtime/kernel-812933dd-11c4-4373-ae51-34e475ce8782.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38769 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54681 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: 812933dd-11c4-4373-ae51-34e475ce8782, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.500000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.430000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_vbwkpih/runtime/kernel-114a1e68-9868-4ada-a14b-636b42ef5058.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46679 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37209 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: 114a1e68-9868-4ada-a14b-636b42ef5058, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.490000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.450000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 114a1e68-9868-4ada-a14b-636b42ef5058 209s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/114a1e68-9868-4ada-a14b-636b42ef5058/interrupt (::1) 3.410000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 209s yield maybe_future(km.restart_kernel(kernel_id)) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 209s raise self._exception.with_traceback(self._exception_tb) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 209s result = coro.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 209s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 209s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 209s yield self # This tells Task to wait for completion. 209s ^^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 209s future.result() 209s ~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 209s raise self._exception.with_traceback(self._exception_tb) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 209s await ensure_async(kernel.restart_kernel(now=now)) 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 209s result = await obj 209s ^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 209s await self._async_shutdown_kernel(now=now, restart=True) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:log.py:55 { 209s "Host": "localhost:12341", 209s "Accept": "*/*", 209s "User-Agent": "python-requests/2.32.5" 209s } 209s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/114a1e68-9868-4ada-a14b-636b42ef5058/restart (::1) 4.100000ms referer=None 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.440000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 812933dd-11c4-4373-ae51-34e475ce8782 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 812933dd-11c4-4373-ae51-34e475ce8782 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 209s await kernel_awaitable 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 209s result = await obj 209s ^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/812933dd-11c4-4373-ae51-34e475ce8782 (::1) 209s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/812933dd-11c4-4373-ae51-34e475ce8782', version='HTTP/1.1', remote_ip='::1') 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 209s result = await result 209s ^^^^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 209s future.result() 209s ~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 209s yield maybe_future(km.shutdown_kernel(kernel_id)) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 209s raise self._exception.with_traceback(self._exception_tb) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 209s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 209s raise km.ready.exception() # type: ignore[misc] 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 209s await kernel_awaitable 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 209s result = await obj 209s ^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s WARNING NotebookApp:handlers.py:612 Unhandled error 209s ERROR NotebookApp:log.py:55 { 209s "Host": "localhost:12341", 209s "Accept": "*/*", 209s "User-Agent": "python-requests/2.32.5" 209s } 209s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/812933dd-11c4-4373-ae51-34e475ce8782 (::1) 5.070000ms referer=None 209s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 209s 209s @self.addCleanup 209s def cleanup_sessions(): 209s for session in self.sess_api.list().json(): 209s > self.sess_api.delete(session['id']) 209s 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 209s return self._req('DELETE', id) 209s ^^^^^^^^^^^^^^^^^^^^^^^ 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 209s response.raise_for_status() 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s 209s self = 209s 209s def raise_for_status(self): 209s """Raises :class:`HTTPError`, if one occurred.""" 209s 209s http_error_msg = "" 209s if isinstance(self.reason, bytes): 209s # We attempt to decode utf-8 first because some servers 209s # choose to localize their reason strings. If the string 209s # isn't utf-8, we fall back to iso-8859-1 for all other 209s # encodings. (See PR #3538) 209s try: 209s reason = self.reason.decode("utf-8") 209s except UnicodeDecodeError: 209s reason = self.reason.decode("iso-8859-1") 209s else: 209s reason = self.reason 209s 209s if 400 <= self.status_code < 500: 209s http_error_msg = ( 209s f"{self.status_code} Client Error: {reason} for url: {self.url}" 209s ) 209s 209s elif 500 <= self.status_code < 600: 209s http_error_msg = ( 209s f"{self.status_code} Server Error: {reason} for url: {self.url}" 209s ) 209s 209s if http_error_msg: 209s > raise HTTPError(http_error_msg, response=self) 209s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b6c55699-eef7-4eb2-bac2-f8034816d87b 209s 209s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 209s ----------------------------- Captured stderr call ----------------------------- 209s Traceback (most recent call last): 209s ------------------------------ Captured log call ------------------------------- 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphs0rzf4s/runtime/kernel-60b60bc6-ffa0-4a23-b837-0e77219dded0.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42609 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45585 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: 60b60bc6-ffa0-4a23-b837-0e77219dded0, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.530000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.570000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.770000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.440000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 58e15e95-0231-42a6-9d16-17274c0d7caa 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 58e15e95-0231-42a6-9d16-17274c0d7caa 209s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/dfa5a0b9-1112-4228-ad3c-5c55cc86fe1f (::1) 1.000000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 60b60bc6-ffa0-4a23-b837-0e77219dded0 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 60b60bc6-ffa0-4a23-b837-0e77219dded0 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b6c55699-eef7-4eb2-bac2-f8034816d87b (::1) 209s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b6c55699-eef7-4eb2-bac2-f8034816d87b', version='HTTP/1.1', remote_ip='::1') 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 209s result = await result 209s ^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 209s yield maybe_future(sm.delete_session(session_id)) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 209s yielded = self.gen.send(value) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 209s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 209s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 209s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 209s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 209s return _runner_map[name].run(inner) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 209s return fut.result(None) 209s ~~~~~~~~~~^^^^^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 209s return self.__get_result() 209s ~~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 209s raise self._exception 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 209s stopper = ensure_async(km.shutdown_kernel(now, restart)) 209s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 209s return _runner_map[name].run(inner) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 209s return fut.result(None) 209s ~~~~~~~~~~^^^^^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 209s return self.__get_result() 209s ~~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 209s raise self._exception 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s WARNING NotebookApp:handlers.py:612 Unhandled error 209s --------------------------- Captured stderr teardown --------------------------- 209s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 209s return _run_code(code, main_globals, None, 209s "__main__", mod_spec) 209s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 209s exec(code, run_globals) 209s ~~~~^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 209s from ipykernel import kernelapp as app 209s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 209s from .connect import * # noqa: F403 209s ^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 209s from typing import TYPE_CHECKING, Any 209s File "/usr/lib/python3.13/typing.py", line 1726, in 209s class _CallableType(_SpecialGenericAlias, _root=True): 209s ...<29 lines>... 209s return self.copy_with(params) 209s File "/usr/lib/python3.13/typing.py", line 1745, in _CallableType 209s @_tp_cache 209s ^^^^^^^^^ 209s File "/usr/lib/python3.13/typing.py", line 436, in _tp_cache 209s return decorator(func) 209s File "/usr/lib/python3.13/typing.py", line 415, in decorator 209s def decorator(func): 209s 209s KeyboardInterrupt 209s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 209s 209s @self.addCleanup 209s def cleanup_sessions(): 209s for session in self.sess_api.list().json(): 209s > self.sess_api.delete(session['id']) 209s 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 209s return self._req('DELETE', id) 209s ^^^^^^^^^^^^^^^^^^^^^^^ 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 209s response.raise_for_status() 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s 209s self = 209s 209s def raise_for_status(self): 209s """Raises :class:`HTTPError`, if one occurred.""" 209s 209s http_error_msg = "" 209s if isinstance(self.reason, bytes): 209s # We attempt to decode utf-8 first because some servers 209s # choose to localize their reason strings. If the string 209s # isn't utf-8, we fall back to iso-8859-1 for all other 209s # encodings. (See PR #3538) 209s try: 209s reason = self.reason.decode("utf-8") 209s except UnicodeDecodeError: 209s reason = self.reason.decode("iso-8859-1") 209s else: 209s reason = self.reason 209s 209s if 400 <= self.status_code < 500: 209s http_error_msg = ( 209s f"{self.status_code} Client Error: {reason} for url: {self.url}" 209s ) 209s 209s elif 500 <= self.status_code < 600: 209s http_error_msg = ( 209s f"{self.status_code} Server Error: {reason} for url: {self.url}" 209s ) 209s 209s if http_error_msg: 209s > raise HTTPError(http_error_msg, response=self) 209s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/588fad86-fd58-4260-ab43-cf5d027254ad 209s 209s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 209s ----------------------------- Captured stderr call ----------------------------- 209s Traceback (most recent call last): 209s ------------------------------ Captured log call ------------------------------- 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1_6_pebk/runtime/kernel-35542014-dcff-44ba-bad0-87b92a1b6ae7.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44391 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33321 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: 35542014-dcff-44ba-bad0-87b92a1b6ae7, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.750000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.520000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.430000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.420000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 352a7bf0-100c-4b25-a65f-c0d2925c10f4 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 352a7bf0-100c-4b25-a65f-c0d2925c10f4 209s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/9d2c10cf-4276-4ead-ae80-2d919367ea6d (::1) 0.470000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 35542014-dcff-44ba-bad0-87b92a1b6ae7 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 35542014-dcff-44ba-bad0-87b92a1b6ae7 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 209s await kernel_awaitable 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 209s result = await obj 209s ^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/588fad86-fd58-4260-ab43-cf5d027254ad (::1) 209s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/588fad86-fd58-4260-ab43-cf5d027254ad', version='HTTP/1.1', remote_ip='::1') 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 209s result = await result 209s ^^^^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 209s future.result() 209s ~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 209s yield maybe_future(sm.delete_session(session_id)) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 209s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 209s raise self._exception.with_traceback(self._exception_tb) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 209s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 209s raise km.ready.exception() # type: ignore[misc] 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 209s await kernel_awaitable 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 209s result = await obj 209s ^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s WARNING NotebookApp:handlers.py:612 Unhandled error 209s ERROR NotebookApp:log.py:55 { 209s "Host": "localhost:12341", 209s "Accept": "*/*", 209s "User-Agent": "python-requests/2.32.5" 209s } 209s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/588fad86-fd58-4260-ab43-cf5d027254ad (::1) 3.820000ms referer=None 209s --------------------------- Captured stderr teardown --------------------------- 209s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 209s return _run_code(code, main_globals, None, 209s "__main__", mod_spec) 209s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 209s exec(code, run_globals) 209s ~~~~^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 209s from ipykernel import kernelapp as app 209s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 209s from .connect import * # noqa: F403 209s ^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 209s from subprocess import PIPE, Popen 209s File "/usr/lib/python3.13/subprocess.py", line 125, in 209s import selectors 209s File "/usr/lib/python3.13/selectors.py", line 11, in 209s import math 209s File "", line 1349, in _find_and_load 209s KeyboardInterrupt 209s =================================== FAILURES =================================== 209s ______________________ KernelAPITest.test_default_kernel _______________________ 209s 209s self = 209s 209s def tearDown(self): 209s for k in self.kern_api.list().json(): 209s > self.kern_api.shutdown(k['id']) 209s 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 209s return self._req('DELETE', id) 209s ^^^^^^^^^^^^^^^^^^^^^^^ 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 209s response.raise_for_status() 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s 209s self = 209s 209s def raise_for_status(self): 209s """Raises :class:`HTTPError`, if one occurred.""" 209s 209s http_error_msg = "" 209s if isinstance(self.reason, bytes): 209s # We attempt to decode utf-8 first because some servers 209s # choose to localize their reason strings. If the string 209s # isn't utf-8, we fall back to iso-8859-1 for all other 209s # encodings. (See PR #3538) 209s try: 209s reason = self.reason.decode("utf-8") 209s except UnicodeDecodeError: 209s reason = self.reason.decode("iso-8859-1") 209s else: 209s reason = self.reason 209s 209s if 400 <= self.status_code < 500: 209s http_error_msg = ( 209s f"{self.status_code} Client Error: {reason} for url: {self.url}" 209s ) 209s 209s elif 500 <= self.status_code < 600: 209s http_error_msg = ( 209s f"{self.status_code} Server Error: {reason} for url: {self.url}" 209s ) 209s 209s if http_error_msg: 209s > raise HTTPError(http_error_msg, response=self) 209s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/1854159e-a425-4bf2-86ec-d15badef9972 209s 209s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 209s ------------------------------ Captured log setup ------------------------------ 209s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmphdt_kcnv/config', '/tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmphdt_kcnv/etc/jupyter'] for config files 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmphdt_kcnv/etc/jupyter 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmphdt_kcnv/config 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmphdt_kcnv/etc/jupyter 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmphdt_kcnv/config 209s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmphdt_kcnv/notebooks 209s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 209s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 209s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 209s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 209s WARNING NotebookApp:handlers.py:612 Forbidden 209s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.610000ms referer=None 209s ----------------------------- Captured stderr call ----------------------------- 209s Traceback (most recent call last): 209s ------------------------------ Captured log call ------------------------------- 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphdt_kcnv/runtime/kernel-1854159e-a425-4bf2-86ec-d15badef9972.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44163 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60711 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1854159e-a425-4bf2-86ec-d15badef9972, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 33.770000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.580000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1854159e-a425-4bf2-86ec-d15badef9972 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1854159e-a425-4bf2-86ec-d15badef9972 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/1854159e-a425-4bf2-86ec-d15badef9972 (::1) 209s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/1854159e-a425-4bf2-86ec-d15badef9972', version='HTTP/1.1', remote_ip='::1') 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 209s result = await result 209s ^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 209s yielded = ctx_run(next, result) 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 209s yield maybe_future(km.shutdown_kernel(kernel_id)) 209s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 209s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 209s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 209s return _runner_map[name].run(inner) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 209s return fut.result(None) 209s ~~~~~~~~~~^^^^^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 209s return self.__get_result() 209s ~~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 209s raise self._exception 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 209s stopper = ensure_async(km.shutdown_kernel(now, restart)) 209s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 209s return _runner_map[name].run(inner) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 209s return fut.result(None) 209s ~~~~~~~~~~^^^^^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 209s return self.__get_result() 209s ~~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 209s raise self._exception 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s WARNING NotebookApp:handlers.py:612 Unhandled error 209s ERROR NotebookApp:log.py:55 { 209s "Host": "localhost:12341", 209s "Accept": "*/*", 209s "User-Agent": "python-requests/2.32.5" 209s } 209s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/1854159e-a425-4bf2-86ec-d15badef9972 (::1) 4.930000ms referer=None 209s --------------------------- Captured stderr teardown --------------------------- 209s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 209s return _run_code(code, main_globals, None, 209s "__main__", mod_spec) 209s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 209s exec(code, run_globals) 209s ~~~~^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 209s from ipykernel import kernelapp as app 209s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 209s from .connect import * # noqa: F403 209s ^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 209s import json 209s File "/usr/lib/python3.13/json/__init__.py", line 107, in 209s from .encoder import JSONEncoder 209s File "/usr/lib/python3.13/json/encoder.py", line 18, in 209s ESCAPE = re.compile(r'[\x00-\x1f\\"\b\f\n\r\t]') 209s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 209s return _compile(pattern, flags) 209s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 209s p = _compiler.compile(pattern, flags) 209s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 209s p = _parser.parse(p, flags) 209s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 209s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 209s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 209s itemsappend(_parse(source, state, verbose, nested + 1, 209s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s not nested and not items)) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3.13/re/_parser.py", line 623, in _parse 209s set = _uniq(set) 209s File "/usr/lib/python3.13/re/_parser.py", line 448, in _uniq 209s def _uniq(items): 209s 209s KeyboardInterrupt 209s ______________________ KernelAPITest.test_kernel_handler _______________________ 209s 209s self = 209s 209s def test_kernel_handler(self): 209s # GET kernel with given id 209s kid = self.kern_api.start().json()['id'] 209s r = self.kern_api.get(kid) 209s kern1 = r.json() 209s self.assertEqual(r.status_code, 200) 209s assert isinstance(kern1, dict) 209s self.assertIn('id', kern1) 209s self.assertEqual(kern1['id'], kid) 209s 209s # Request a bad kernel id and check that a JSON 209s # message is returned! 209s bad_id = '111-111-111-111-111' 209s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 209s self.kern_api.get(bad_id) 209s 209s # DELETE kernel with id 209s > r = self.kern_api.shutdown(kid) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 209s return self._req('DELETE', id) 209s ^^^^^^^^^^^^^^^^^^^^^^^ 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 209s response.raise_for_status() 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s 209s self = 209s 209s def raise_for_status(self): 209s """Raises :class:`HTTPError`, if one occurred.""" 209s 209s http_error_msg = "" 209s if isinstance(self.reason, bytes): 209s # We attempt to decode utf-8 first because some servers 209s # choose to localize their reason strings. If the string 209s # isn't utf-8, we fall back to iso-8859-1 for all other 209s # encodings. (See PR #3538) 209s try: 209s reason = self.reason.decode("utf-8") 209s except UnicodeDecodeError: 209s reason = self.reason.decode("iso-8859-1") 209s else: 209s reason = self.reason 209s 209s if 400 <= self.status_code < 500: 209s http_error_msg = ( 209s f"{self.status_code} Client Error: {reason} for url: {self.url}" 209s ) 209s 209s elif 500 <= self.status_code < 600: 209s http_error_msg = ( 209s f"{self.status_code} Server Error: {reason} for url: {self.url}" 209s ) 209s 209s if http_error_msg: 209s > raise HTTPError(http_error_msg, response=self) 209s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/dc6b6a92-fc8f-4bfc-8f4d-b284695fab01 209s 209s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 209s ----------------------------- Captured stderr call ----------------------------- 209s Traceback (most recent call last): 209s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 209s return _run_code(code, main_globals, None, 209s "__main__", mod_spec) 209s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 209s exec(code, run_globals) 209s ~~~~^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 209s from ipykernel import kernelapp as app 209s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 209s from .connect import * # noqa: F403 209s ^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 209s import json 209s File "/usr/lib/python3.13/json/__init__.py", line 106, in 209s from .decoder import JSONDecoder, JSONDecodeError 209s File "/usr/lib/python3.13/json/decoder.py", line 5, in 209s from json import scanner 209s File "", line 1360, in _find_and_load 209s File "", line 1331, in _find_and_load_unlocked 209s File "", line 935, in _load_unlocked 209s File "", line 1019, in exec_module 209s File "", line 1152, in get_code 209s File "", line 779, in _compile_bytecode 209s KeyboardInterrupt 209s ------------------------------ Captured log call ------------------------------- 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphdt_kcnv/runtime/kernel-dc6b6a92-fc8f-4bfc-8f4d-b284695fab01.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36919 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36107 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: dc6b6a92-fc8f-4bfc-8f4d-b284695fab01, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.440000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/dc6b6a92-fc8f-4bfc-8f4d-b284695fab01 (::1) 0.430000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s 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 209s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 209s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.390000ms referer=None 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dc6b6a92-fc8f-4bfc-8f4d-b284695fab01 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dc6b6a92-fc8f-4bfc-8f4d-b284695fab01 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/dc6b6a92-fc8f-4bfc-8f4d-b284695fab01 (::1) 209s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/dc6b6a92-fc8f-4bfc-8f4d-b284695fab01', version='HTTP/1.1', remote_ip='::1') 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 209s result = await result 209s ^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 209s yielded = ctx_run(next, result) 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 209s yield maybe_future(km.shutdown_kernel(kernel_id)) 209s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 209s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 209s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 209s return _runner_map[name].run(inner) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 209s return fut.result(None) 209s ~~~~~~~~~~^^^^^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 209s return self.__get_result() 209s ~~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 209s raise self._exception 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 209s stopper = ensure_async(km.shutdown_kernel(now, restart)) 209s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 209s return _runner_map[name].run(inner) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 209s return fut.result(None) 209s ~~~~~~~~~~^^^^^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 209s return self.__get_result() 209s ~~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 209s raise self._exception 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s WARNING NotebookApp:handlers.py:612 Unhandled error 209s ERROR NotebookApp:log.py:55 { 209s "Host": "localhost:12341", 209s "Accept": "*/*", 209s "User-Agent": "python-requests/2.32.5" 209s } 209s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/dc6b6a92-fc8f-4bfc-8f4d-b284695fab01 (::1) 4.500000ms referer=None 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.340000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1854159e-a425-4bf2-86ec-d15badef9972 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1854159e-a425-4bf2-86ec-d15badef9972 209s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/1854159e-a425-4bf2-86ec-d15badef9972 (::1) 1.310000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dc6b6a92-fc8f-4bfc-8f4d-b284695fab01 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dc6b6a92-fc8f-4bfc-8f4d-b284695fab01 209s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/dc6b6a92-fc8f-4bfc-8f4d-b284695fab01 (::1) 0.500000ms 209s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 209s 209s self = 209s 209s def test_main_kernel_handler(self): 209s # POST request 209s r = self.kern_api.start() 209s kern1 = r.json() 209s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 209s self.assertEqual(r.status_code, 201) 209s self.assertIsInstance(kern1, dict) 209s 209s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 209s expected_csp = '; '.join([ 209s "frame-ancestors 'self'", 209s 'report-uri ' + report_uri, 209s "default-src 'none'" 209s ]) 209s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 209s 209s # GET request 209s r = self.kern_api.list() 209s self.assertEqual(r.status_code, 200) 209s assert isinstance(r.json(), list) 209s self.assertEqual(r.json()[0]['id'], kern1['id']) 209s self.assertEqual(r.json()[0]['name'], kern1['name']) 209s 209s # create another kernel and check that they both are added to the 209s # list of kernels from a GET request 209s kern2 = self.kern_api.start().json() 209s assert isinstance(kern2, dict) 209s r = self.kern_api.list() 209s kernels = r.json() 209s self.assertEqual(r.status_code, 200) 209s assert isinstance(kernels, list) 209s self.assertEqual(len(kernels), 2) 209s 209s # Interrupt a kernel 209s r = self.kern_api.interrupt(kern2['id']) 209s self.assertEqual(r.status_code, 204) 209s 209s # Restart a kernel 209s > r = self.kern_api.restart(kern2['id']) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 209s return self._req('POST', url_path_join(id, 'restart')) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 209s response.raise_for_status() 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s 209s self = 209s 209s def raise_for_status(self): 209s """Raises :class:`HTTPError`, if one occurred.""" 209s 209s http_error_msg = "" 209s if isinstance(self.reason, bytes): 209s # We attempt to decode utf-8 first because some servers 209s # choose to localize their reason strings. If the string 209s # isn't utf-8, we fall back to iso-8859-1 for all other 209s # encodings. (See PR #3538) 209s try: 209s reason = self.reason.decode("utf-8") 209s except UnicodeDecodeError: 209s reason = self.reason.decode("iso-8859-1") 209s else: 209s reason = self.reason 209s 209s if 400 <= self.status_code < 500: 209s http_error_msg = ( 209s f"{self.status_code} Client Error: {reason} for url: {self.url}" 209s ) 209s 209s elif 500 <= self.status_code < 600: 209s http_error_msg = ( 209s f"{self.status_code} Server Error: {reason} for url: {self.url}" 209s ) 209s 209s if http_error_msg: 209s > raise HTTPError(http_error_msg, response=self) 209s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/926b7300-bbef-4852-852e-ccb8a5c0955a/restart 209s 209s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 209s ----------------------------- Captured stderr call ----------------------------- 209s Traceback (most recent call last): 209s Traceback (most recent call last): 209s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 209s return _run_code(code, main_globals, None, 209s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 209s exec(code, run_globals) 209s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 209s from pathlib import Path 209s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 209s from ._abc import * 209s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 209s from glob import _Globber, _no_recurse_symlinks 209s File "/usr/lib/python3.13/glob.py", line 337, in 209s class _Globber: 209s File "/usr/lib/python3.13/glob.py", line 365, in _Globber 209s @staticmethod 209s KeyboardInterrupt 209s Traceback (most recent call last): 209s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 209s return _run_code(code, main_globals, None, 209s "__main__", mod_spec) 209s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 209s exec(code, run_globals) 209s ~~~~^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 209s from ipykernel import kernelapp as app 209s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 209s from .connect import * # noqa: F403 209s ^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 209s import jupyter_client 209s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 209s from .asynchronous import AsyncKernelClient 209s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 209s from .client import AsyncKernelClient # noqa 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 209s import zmq.asyncio 209s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 209s import asyncio 209s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 209s from .base_events import * 209s File "/usr/lib/python3.13/asyncio/base_events.py", line 40, in 209s from . import events 209s File "/usr/lib/python3.13/asyncio/events.py", line 18, in 209s import contextvars 209s File "/usr/lib/python3.13/contextvars.py", line 1, in 209s from _contextvars import Context, ContextVar, Token, copy_context 209s KeyboardInterrupt 209s ------------------------------ Captured log call ------------------------------- 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphdt_kcnv/runtime/kernel-a756cfce-2d79-45e4-a9ff-986518d3d9b5.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42961 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33771 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: a756cfce-2d79-45e4-a9ff-986518d3d9b5, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.960000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.390000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphdt_kcnv/runtime/kernel-926b7300-bbef-4852-852e-ccb8a5c0955a.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52191 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42905 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: 926b7300-bbef-4852-852e-ccb8a5c0955a, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.340000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.330000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 926b7300-bbef-4852-852e-ccb8a5c0955a 209s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/926b7300-bbef-4852-852e-ccb8a5c0955a/interrupt (::1) 2.790000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 209s yield maybe_future(km.restart_kernel(kernel_id)) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 209s raise self._exception.with_traceback(self._exception_tb) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 209s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 209s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 209s return _runner_map[name].run(inner) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 209s return fut.result(None) 209s ~~~~~~~~~~^^^^^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 209s return self.__get_result() 209s ~~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 209s raise self._exception 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 209s await ensure_async(kernel.restart_kernel(now=now)) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 209s return _runner_map[name].run(inner) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 209s return fut.result(None) 209s ~~~~~~~~~~^^^^^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 209s return self.__get_result() 209s ~~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 209s raise self._exception 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 209s await self._async_shutdown_kernel(now=now, restart=True) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:log.py:55 { 209s "Host": "localhost:12341", 209s "Accept": "*/*", 209s "User-Agent": "python-requests/2.32.5" 209s } 209s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/926b7300-bbef-4852-852e-ccb8a5c0955a/restart (::1) 4.880000ms referer=None 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.210000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a756cfce-2d79-45e4-a9ff-986518d3d9b5 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a756cfce-2d79-45e4-a9ff-986518d3d9b5 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/a756cfce-2d79-45e4-a9ff-986518d3d9b5 (::1) 209s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/a756cfce-2d79-45e4-a9ff-986518d3d9b5', version='HTTP/1.1', remote_ip='::1') 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 209s result = await result 209s ^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 209s yielded = ctx_run(next, result) 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 209s yield maybe_future(km.shutdown_kernel(kernel_id)) 209s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 209s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 209s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 209s return _runner_map[name].run(inner) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 209s return fut.result(None) 209s ~~~~~~~~~~^^^^^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 209s return self.__get_result() 209s ~~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 209s raise self._exception 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 209s stopper = ensure_async(km.shutdown_kernel(now, restart)) 209s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 209s return _runner_map[name].run(inner) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 209s return fut.result(None) 209s ~~~~~~~~~~^^^^^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 209s return self.__get_result() 209s ~~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 209s raise self._exception 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s WARNING NotebookApp:handlers.py:612 Unhandled error 209s ERROR NotebookApp:log.py:55 { 209s "Host": "localhost:12341", 209s "Accept": "*/*", 209s "User-Agent": "python-requests/2.32.5" 209s } 209s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/a756cfce-2d79-45e4-a9ff-986518d3d9b5 (::1) 6.500000ms referer=None 209s ________________________ KernelAPITest.test_no_kernels _________________________ 209s 209s self = 209s 209s def test_no_kernels(self): 209s """Make sure there are no kernels running at the start""" 209s kernels = self.kern_api.list().json() 209s > self.assertEqual(kernels, []) 209s E AssertionError: Lists differ: [{'id': 'a756cfce-2d79-45e4-a9ff-986518d3d[281 chars]: 0}] != [] 209s E 209s E First list contains 2 additional elements. 209s E First extra element 0: 209s E {'id': 'a756cfce-2d79-45e4-a9ff-986518d3d9b5', 'name': 'python3', 'last_activity': '2026-02-06T10:25:21.366045Z', 'execution_state': 'starting', 'connections': 0} 209s E 209s E + [] 209s E - [{'connections': 0, 209s E - 'execution_state': 'starting', 209s E - 'id': 'a756cfce-2d79-45e4-a9ff-986518d3d9b5', 209s E - 'last_activity': '2026-02-06T10:25:21.366045Z', 209s E - 'name': 'python3'}, 209s E - {'connections': 0, 209s E - 'execution_state': 'starting', 209s E - 'id': '926b7300-bbef-4852-852e-ccb8a5c0955a', 209s E - 'last_activity': '2026-02-06T10:25:21.384203Z', 209s E - 'name': 'python3'}] 209s 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 209s ------------------------------ Captured log call ------------------------------- 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.680000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.360000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a756cfce-2d79-45e4-a9ff-986518d3d9b5 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a756cfce-2d79-45e4-a9ff-986518d3d9b5 209s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/a756cfce-2d79-45e4-a9ff-986518d3d9b5 (::1) 0.600000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 926b7300-bbef-4852-852e-ccb8a5c0955a 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 926b7300-bbef-4852-852e-ccb8a5c0955a 209s ---------------------------- Captured log teardown ----------------------------- 209s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 209s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 209s _____________________ AsyncKernelAPITest.test_connections ______________________ 209s 209s self = 209s 209s def tearDown(self): 209s for k in self.kern_api.list().json(): 209s > self.kern_api.shutdown(k['id']) 209s 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 209s return self._req('DELETE', id) 209s ^^^^^^^^^^^^^^^^^^^^^^^ 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 209s response.raise_for_status() 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s 209s self = 209s 209s def raise_for_status(self): 209s """Raises :class:`HTTPError`, if one occurred.""" 209s 209s http_error_msg = "" 209s if isinstance(self.reason, bytes): 209s # We attempt to decode utf-8 first because some servers 209s # choose to localize their reason strings. If the string 209s # isn't utf-8, we fall back to iso-8859-1 for all other 209s # encodings. (See PR #3538) 209s try: 209s reason = self.reason.decode("utf-8") 209s except UnicodeDecodeError: 209s reason = self.reason.decode("iso-8859-1") 209s else: 209s reason = self.reason 209s 209s if 400 <= self.status_code < 500: 209s http_error_msg = ( 209s f"{self.status_code} Client Error: {reason} for url: {self.url}" 209s ) 209s 209s elif 500 <= self.status_code < 600: 209s http_error_msg = ( 209s f"{self.status_code} Server Error: {reason} for url: {self.url}" 209s ) 209s 209s if http_error_msg: 209s > raise HTTPError(http_error_msg, response=self) 209s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/d1605fd1-6f08-46b2-a793-94095fd40802 209s 209s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 209s ------------------------------ Captured log setup ------------------------------ 209s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp_vbwkpih/config', '/tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp_vbwkpih/etc/jupyter'] for config files 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp_vbwkpih/etc/jupyter 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp_vbwkpih/config 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp_vbwkpih/etc/jupyter 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp_vbwkpih/config 209s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp_vbwkpih/notebooks 209s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 209s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 209s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 209s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 209s WARNING NotebookApp:handlers.py:612 Forbidden 209s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.320000ms referer=None 209s ------------------------------ Captured log call ------------------------------- 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_vbwkpih/runtime/kernel-d1605fd1-6f08-46b2-a793-94095fd40802.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49141 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49683 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: d1605fd1-6f08-46b2-a793-94095fd40802, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.080000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/d1605fd1-6f08-46b2-a793-94095fd40802 (::1) 0.380000ms 209s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/d1605fd1-6f08-46b2-a793-94095fd40802/channels 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 209s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from d1605fd1-6f08-46b2-a793-94095fd40802 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58437 209s DEBUG NotebookApp:kernelmanager.py:423 activity on d1605fd1-6f08-46b2-a793-94095fd40802: status (busy) 209s 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/'}]} 209s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel d1605fd1-6f08-46b2-a793-94095fd40802) to 5.4 (client). 209s DEBUG NotebookApp:kernelmanager.py:423 activity on d1605fd1-6f08-46b2-a793-94095fd40802: status (idle) 209s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/d1605fd1-6f08-46b2-a793-94095fd40802/channels (::1) 399.080000ms 209s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/d1605fd1-6f08-46b2-a793-94095fd40802/channels 209s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for d1605fd1-6f08-46b2-a793-94095fd40802 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49683 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58437 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49141 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43993 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58437 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49141 209s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 209s Setting websocket_ping_timeout=30000 209s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel d1605fd1-6f08-46b2-a793-94095fd40802 209s DEBUG NotebookApp:kernelmanager.py:423 activity on d1605fd1-6f08-46b2-a793-94095fd40802: status (busy) 209s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: d1605fd1-6f08-46b2-a793-94095fd40802 209s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: d1605fd1-6f08-46b2-a793-94095fd40802 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/d1605fd1-6f08-46b2-a793-94095fd40802 (::1) 0.600000ms 209s DEBUG NotebookApp:kernelmanager.py:423 activity on d1605fd1-6f08-46b2-a793-94095fd40802: status (busy) 209s DEBUG NotebookApp:kernelmanager.py:423 activity on d1605fd1-6f08-46b2-a793-94095fd40802: status (idle) 209s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: d1605fd1-6f08-46b2-a793-94095fd40802 209s DEBUG NotebookApp:handlers.py:197 Nudge: resolving shell future: d1605fd1-6f08-46b2-a793-94095fd40802 209s DEBUG NotebookApp:kernelmanager.py:423 activity on d1605fd1-6f08-46b2-a793-94095fd40802: status (idle) 209s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: d1605fd1-6f08-46b2-a793-94095fd40802 209s DEBUG NotebookApp:handlers.py:579 Websocket closed d1605fd1-6f08-46b2-a793-94095fd40802:c4b9f828-f775f73b1dcf20fc099cc670 209s INFO NotebookApp:kernelmanager.py:222 Starting buffering for d1605fd1-6f08-46b2-a793-94095fd40802:c4b9f828-f775f73b1dcf20fc099cc670 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d1605fd1-6f08-46b2-a793-94095fd40802 209s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on d1605fd1-6f08-46b2-a793-94095fd40802:iopub 209s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on d1605fd1-6f08-46b2-a793-94095fd40802:iopub 209s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on d1605fd1-6f08-46b2-a793-94095fd40802:iopub 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/d1605fd1-6f08-46b2-a793-94095fd40802 (::1) 0.410000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/d1605fd1-6f08-46b2-a793-94095fd40802 (::1) 0.400000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.340000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d1605fd1-6f08-46b2-a793-94095fd40802 209s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for d1605fd1-6f08-46b2-a793-94095fd40802:c4b9f828-f775f73b1dcf20fc099cc670 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d1605fd1-6f08-46b2-a793-94095fd40802 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 209s await kernel_awaitable 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 209s result = await obj 209s ^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/d1605fd1-6f08-46b2-a793-94095fd40802 (::1) 209s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/d1605fd1-6f08-46b2-a793-94095fd40802', version='HTTP/1.1', remote_ip='::1') 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 209s result = await result 209s ^^^^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 209s future.result() 209s ~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 209s yield maybe_future(km.shutdown_kernel(kernel_id)) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 209s raise self._exception.with_traceback(self._exception_tb) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 209s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 209s raise km.ready.exception() # type: ignore[misc] 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 209s await kernel_awaitable 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 209s result = await obj 209s ^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s WARNING NotebookApp:handlers.py:612 Unhandled error 209s ERROR NotebookApp:log.py:55 { 209s "Host": "localhost:12341", 209s "Accept": "*/*", 209s "User-Agent": "python-requests/2.32.5" 209s } 209s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/d1605fd1-6f08-46b2-a793-94095fd40802 (::1) 7.550000ms referer=None 209s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 209s 209s self = 209s 209s def tearDown(self): 209s for k in self.kern_api.list().json(): 209s > self.kern_api.shutdown(k['id']) 209s 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 209s return self._req('DELETE', id) 209s ^^^^^^^^^^^^^^^^^^^^^^^ 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 209s response.raise_for_status() 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s 209s self = 209s 209s def raise_for_status(self): 209s """Raises :class:`HTTPError`, if one occurred.""" 209s 209s http_error_msg = "" 209s if isinstance(self.reason, bytes): 209s # We attempt to decode utf-8 first because some servers 209s # choose to localize their reason strings. If the string 209s # isn't utf-8, we fall back to iso-8859-1 for all other 209s # encodings. (See PR #3538) 209s try: 209s reason = self.reason.decode("utf-8") 209s except UnicodeDecodeError: 209s reason = self.reason.decode("iso-8859-1") 209s else: 209s reason = self.reason 209s 209s if 400 <= self.status_code < 500: 209s http_error_msg = ( 209s f"{self.status_code} Client Error: {reason} for url: {self.url}" 209s ) 209s 209s elif 500 <= self.status_code < 600: 209s http_error_msg = ( 209s f"{self.status_code} Server Error: {reason} for url: {self.url}" 209s ) 209s 209s if http_error_msg: 209s > raise HTTPError(http_error_msg, response=self) 209s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/7f9015ce-b2e0-4816-84fc-d19aeb27103c 209s 209s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 209s ----------------------------- Captured stderr call ----------------------------- 209s Traceback (most recent call last): 209s ------------------------------ Captured log call ------------------------------- 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_vbwkpih/runtime/kernel-7f9015ce-b2e0-4816-84fc-d19aeb27103c.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39367 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47117 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7f9015ce-b2e0-4816-84fc-d19aeb27103c, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.180000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.440000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d1605fd1-6f08-46b2-a793-94095fd40802 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d1605fd1-6f08-46b2-a793-94095fd40802 209s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/d1605fd1-6f08-46b2-a793-94095fd40802 (::1) 2.230000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7f9015ce-b2e0-4816-84fc-d19aeb27103c 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7f9015ce-b2e0-4816-84fc-d19aeb27103c 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 209s await kernel_awaitable 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 209s result = await obj 209s ^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/7f9015ce-b2e0-4816-84fc-d19aeb27103c (::1) 209s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/7f9015ce-b2e0-4816-84fc-d19aeb27103c', version='HTTP/1.1', remote_ip='::1') 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 209s result = await result 209s ^^^^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 209s future.result() 209s ~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 209s yield maybe_future(km.shutdown_kernel(kernel_id)) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 209s raise self._exception.with_traceback(self._exception_tb) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 209s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 209s raise km.ready.exception() # type: ignore[misc] 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 209s await kernel_awaitable 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 209s result = await obj 209s ^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s WARNING NotebookApp:handlers.py:612 Unhandled error 209s ERROR NotebookApp:log.py:55 { 209s "Host": "localhost:12341", 209s "Accept": "*/*", 209s "User-Agent": "python-requests/2.32.5" 209s } 209s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/7f9015ce-b2e0-4816-84fc-d19aeb27103c (::1) 5.750000ms referer=None 209s --------------------------- Captured stderr teardown --------------------------- 209s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 209s return _run_code(code, main_globals, None, 209s "__main__", mod_spec) 209s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 209s exec(code, run_globals) 209s ~~~~^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 209s from ipykernel import kernelapp as app 209s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 209s from .connect import * # noqa: F403 209s ^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 209s import json 209s File "", line 1360, in _find_and_load 209s File "", line 1331, in _find_and_load_unlocked 209s File "", line 935, in _load_unlocked 209s File "", line 1019, in exec_module 209s File "", line 1152, in get_code 209s File "", line 781, in _compile_bytecode 209s KeyboardInterrupt 209s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 209s 209s self = 209s 209s def test_kernel_handler(self): 209s # GET kernel with given id 209s kid = self.kern_api.start().json()['id'] 209s r = self.kern_api.get(kid) 209s kern1 = r.json() 209s self.assertEqual(r.status_code, 200) 209s assert isinstance(kern1, dict) 209s self.assertIn('id', kern1) 209s self.assertEqual(kern1['id'], kid) 209s 209s # Request a bad kernel id and check that a JSON 209s # message is returned! 209s bad_id = '111-111-111-111-111' 209s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 209s self.kern_api.get(bad_id) 209s 209s # DELETE kernel with id 209s > r = self.kern_api.shutdown(kid) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 209s return self._req('DELETE', id) 209s ^^^^^^^^^^^^^^^^^^^^^^^ 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 209s response.raise_for_status() 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s 209s self = 209s 209s def raise_for_status(self): 209s """Raises :class:`HTTPError`, if one occurred.""" 209s 209s http_error_msg = "" 209s if isinstance(self.reason, bytes): 209s # We attempt to decode utf-8 first because some servers 209s # choose to localize their reason strings. If the string 209s # isn't utf-8, we fall back to iso-8859-1 for all other 209s # encodings. (See PR #3538) 209s try: 209s reason = self.reason.decode("utf-8") 209s except UnicodeDecodeError: 209s reason = self.reason.decode("iso-8859-1") 209s else: 209s reason = self.reason 209s 209s if 400 <= self.status_code < 500: 209s http_error_msg = ( 209s f"{self.status_code} Client Error: {reason} for url: {self.url}" 209s ) 209s 209s elif 500 <= self.status_code < 600: 209s http_error_msg = ( 209s f"{self.status_code} Server Error: {reason} for url: {self.url}" 209s ) 209s 209s if http_error_msg: 209s > raise HTTPError(http_error_msg, response=self) 209s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/dee85abf-740e-439a-8705-c370fab8abce 209s 209s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 209s ----------------------------- Captured stderr call ----------------------------- 209s Traceback (most recent call last): 209s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 209s return _run_code(code, main_globals, None, 209s "__main__", mod_spec) 209s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 209s exec(code, run_globals) 209s ~~~~^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 209s from pathlib import Path 209s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 209s from ._abc import * 209s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 209s from glob import _Globber, _no_recurse_symlinks 209s File "/usr/lib/python3.13/glob.py", line 5, in 209s import re 209s File "/usr/lib/python3.13/re/__init__.py", line 315, in 209s Pattern = type(_compiler.compile('', 0)) 209s ~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 209s code = _code(p, flags) 209s File "/usr/lib/python3.13/re/_compiler.py", line 587, in _code 209s code.append(SUCCESS) 209s ~~~~~~~~~~~^^^^^^^^^ 209s KeyboardInterrupt 209s ------------------------------ Captured log call ------------------------------- 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_vbwkpih/runtime/kernel-dee85abf-740e-439a-8705-c370fab8abce.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47217 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52023 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: dee85abf-740e-439a-8705-c370fab8abce, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.020000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/dee85abf-740e-439a-8705-c370fab8abce (::1) 0.450000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s 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 209s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 209s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.450000ms referer=None 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dee85abf-740e-439a-8705-c370fab8abce 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dee85abf-740e-439a-8705-c370fab8abce 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 209s await kernel_awaitable 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 209s result = await obj 209s ^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/dee85abf-740e-439a-8705-c370fab8abce (::1) 209s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/dee85abf-740e-439a-8705-c370fab8abce', version='HTTP/1.1', remote_ip='::1') 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 209s result = await result 209s ^^^^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 209s future.result() 209s ~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 209s yield maybe_future(km.shutdown_kernel(kernel_id)) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 209s raise self._exception.with_traceback(self._exception_tb) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 209s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 209s raise km.ready.exception() # type: ignore[misc] 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 209s await kernel_awaitable 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 209s result = await obj 209s ^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s WARNING NotebookApp:handlers.py:612 Unhandled error 209s ERROR NotebookApp:log.py:55 { 209s "Host": "localhost:12341", 209s "Accept": "*/*", 209s "User-Agent": "python-requests/2.32.5" 209s } 209s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/dee85abf-740e-439a-8705-c370fab8abce (::1) 8.020000ms referer=None 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7f9015ce-b2e0-4816-84fc-d19aeb27103c 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7f9015ce-b2e0-4816-84fc-d19aeb27103c 209s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/7f9015ce-b2e0-4816-84fc-d19aeb27103c (::1) 0.440000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dee85abf-740e-439a-8705-c370fab8abce 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dee85abf-740e-439a-8705-c370fab8abce 209s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/dee85abf-740e-439a-8705-c370fab8abce (::1) 0.460000ms 209s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 209s 209s self = 209s 209s def test_main_kernel_handler(self): 209s # POST request 209s r = self.kern_api.start() 209s kern1 = r.json() 209s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 209s self.assertEqual(r.status_code, 201) 209s self.assertIsInstance(kern1, dict) 209s 209s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 209s expected_csp = '; '.join([ 209s "frame-ancestors 'self'", 209s 'report-uri ' + report_uri, 209s "default-src 'none'" 209s ]) 209s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 209s 209s # GET request 209s r = self.kern_api.list() 209s self.assertEqual(r.status_code, 200) 209s assert isinstance(r.json(), list) 209s self.assertEqual(r.json()[0]['id'], kern1['id']) 209s self.assertEqual(r.json()[0]['name'], kern1['name']) 209s 209s # create another kernel and check that they both are added to the 209s # list of kernels from a GET request 209s kern2 = self.kern_api.start().json() 209s assert isinstance(kern2, dict) 209s r = self.kern_api.list() 209s kernels = r.json() 209s self.assertEqual(r.status_code, 200) 209s assert isinstance(kernels, list) 209s self.assertEqual(len(kernels), 2) 209s 209s # Interrupt a kernel 209s r = self.kern_api.interrupt(kern2['id']) 209s self.assertEqual(r.status_code, 204) 209s 209s # Restart a kernel 209s > r = self.kern_api.restart(kern2['id']) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 209s return self._req('POST', url_path_join(id, 'restart')) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 209s response.raise_for_status() 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s 209s self = 209s 209s def raise_for_status(self): 209s """Raises :class:`HTTPError`, if one occurred.""" 209s 209s http_error_msg = "" 209s if isinstance(self.reason, bytes): 209s # We attempt to decode utf-8 first because some servers 209s # choose to localize their reason strings. If the string 209s # isn't utf-8, we fall back to iso-8859-1 for all other 209s # encodings. (See PR #3538) 209s try: 209s reason = self.reason.decode("utf-8") 209s except UnicodeDecodeError: 209s reason = self.reason.decode("iso-8859-1") 209s else: 209s reason = self.reason 209s 209s if 400 <= self.status_code < 500: 209s http_error_msg = ( 209s f"{self.status_code} Client Error: {reason} for url: {self.url}" 209s ) 209s 209s elif 500 <= self.status_code < 600: 209s http_error_msg = ( 209s f"{self.status_code} Server Error: {reason} for url: {self.url}" 209s ) 209s 209s if http_error_msg: 209s > raise HTTPError(http_error_msg, response=self) 209s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/114a1e68-9868-4ada-a14b-636b42ef5058/restart 209s 209s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 209s ----------------------------- Captured stderr call ----------------------------- 209s Traceback (most recent call last): 209s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 209s return _run_code(code, main_globals, None, 209s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 209s exec(code, run_globals) 209s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 209s from pathlib import Path 209s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 209s from ._abc import * 209s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 209s from glob import _Globber, _no_recurse_symlinks 209s File "/usr/lib/python3.13/glob.py", line 5, in 209s import re 209s File "/usr/lib/python3.13/re/__init__.py", line 126, in 209s from . import _compiler, _parser 209s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 209s from . import _parser 209s File "/usr/lib/python3.13/re/_parser.py", line 74, in 209s class State: 209s File "/usr/lib/python3.13/re/_parser.py", line 74, in State 209s class State: 209s KeyboardInterrupt 209s Traceback (most recent call last): 209s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 209s return _run_code(code, main_globals, None, 209s "__main__", mod_spec) 209s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 209s exec(code, run_globals) 209s ~~~~^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 209s from ipykernel import kernelapp as app 209s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 209s from .connect import * # noqa: F403 209s ^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 209s import jupyter_client 209s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 209s from .asynchronous import AsyncKernelClient 209s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 209s from .client import AsyncKernelClient # noqa 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 209s import zmq.asyncio 209s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 209s import asyncio 209s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 209s from .base_events import * 209s File "/usr/lib/python3.13/asyncio/base_events.py", line 44, in 209s from . import sslproto 209s File "", line 1360, in _find_and_load 209s File "", line 1331, in _find_and_load_unlocked 209s File "", line 935, in _load_unlocked 209s File "", line 1019, in exec_module 209s File "", line 1152, in get_code 209s File "", line 781, in _compile_bytecode 209s KeyboardInterrupt 209s ------------------------------ Captured log call ------------------------------- 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_vbwkpih/runtime/kernel-812933dd-11c4-4373-ae51-34e475ce8782.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38769 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54681 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: 812933dd-11c4-4373-ae51-34e475ce8782, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.500000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.430000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_vbwkpih/runtime/kernel-114a1e68-9868-4ada-a14b-636b42ef5058.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46679 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37209 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: 114a1e68-9868-4ada-a14b-636b42ef5058, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.490000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.450000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 114a1e68-9868-4ada-a14b-636b42ef5058 209s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/114a1e68-9868-4ada-a14b-636b42ef5058/interrupt (::1) 3.410000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 209s yield maybe_future(km.restart_kernel(kernel_id)) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 209s raise self._exception.with_traceback(self._exception_tb) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 209s result = coro.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 209s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 209s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 209s yield self # This tells Task to wait for completion. 209s ^^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 209s future.result() 209s ~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 209s raise self._exception.with_traceback(self._exception_tb) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 209s await ensure_async(kernel.restart_kernel(now=now)) 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 209s result = await obj 209s ^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 209s await self._async_shutdown_kernel(now=now, restart=True) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:log.py:55 { 209s "Host": "localhost:12341", 209s "Accept": "*/*", 209s "User-Agent": "python-requests/2.32.5" 209s } 209s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/114a1e68-9868-4ada-a14b-636b42ef5058/restart (::1) 4.100000ms referer=None 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.440000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 812933dd-11c4-4373-ae51-34e475ce8782 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 812933dd-11c4-4373-ae51-34e475ce8782 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 209s await kernel_awaitable 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 209s result = await obj 209s ^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/812933dd-11c4-4373-ae51-34e475ce8782 (::1) 209s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/812933dd-11c4-4373-ae51-34e475ce8782', version='HTTP/1.1', remote_ip='::1') 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 209s result = await result 209s ^^^^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 209s future.result() 209s ~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 209s yield maybe_future(km.shutdown_kernel(kernel_id)) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 209s raise self._exception.with_traceback(self._exception_tb) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 209s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 209s raise km.ready.exception() # type: ignore[misc] 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 209s await kernel_awaitable 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 209s result = await obj 209s ^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s WARNING NotebookApp:handlers.py:612 Unhandled error 209s ERROR NotebookApp:log.py:55 { 209s "Host": "localhost:12341", 209s "Accept": "*/*", 209s "User-Agent": "python-requests/2.32.5" 209s } 209s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/812933dd-11c4-4373-ae51-34e475ce8782 (::1) 5.070000ms referer=None 209s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 209s 209s self = 209s 209s def test_no_kernels(self): 209s """Make sure there are no kernels running at the start""" 209s kernels = self.kern_api.list().json() 209s > self.assertEqual(kernels, []) 209s E AssertionError: Lists differ: [{'id': '812933dd-11c4-4373-ae51-34e475ce8[281 chars]: 0}] != [] 209s E 209s E First list contains 2 additional elements. 209s E First extra element 0: 209s E {'id': '812933dd-11c4-4373-ae51-34e475ce8782', 'name': 'python3', 'last_activity': '2026-02-06T10:25:22.039008Z', 'execution_state': 'starting', 'connections': 0} 209s E 209s E + [] 209s E - [{'connections': 0, 209s E - 'execution_state': 'starting', 209s E - 'id': '812933dd-11c4-4373-ae51-34e475ce8782', 209s E - 'last_activity': '2026-02-06T10:25:22.039008Z', 209s E - 'name': 'python3'}, 209s E - {'connections': 0, 209s E - 'execution_state': 'starting', 209s E - 'id': '114a1e68-9868-4ada-a14b-636b42ef5058', 209s E - 'last_activity': '2026-02-06T10:25:22.056806Z', 209s E - 'name': 'python3'}] 209s 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 209s ------------------------------ Captured log call ------------------------------- 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.540000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.530000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 812933dd-11c4-4373-ae51-34e475ce8782 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 812933dd-11c4-4373-ae51-34e475ce8782 209s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/812933dd-11c4-4373-ae51-34e475ce8782 (::1) 0.470000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 114a1e68-9868-4ada-a14b-636b42ef5058 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 114a1e68-9868-4ada-a14b-636b42ef5058 209s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/114a1e68-9868-4ada-a14b-636b42ef5058 (::1) 0.500000ms 209s ---------------------------- Captured log teardown ----------------------------- 209s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dee85abf-740e-439a-8705-c370fab8abce 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7f9015ce-b2e0-4816-84fc-d19aeb27103c 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 812933dd-11c4-4373-ae51-34e475ce8782 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d1605fd1-6f08-46b2-a793-94095fd40802 209s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 209s __________________________ SessionAPITest.test_create __________________________ 209s 209s @self.addCleanup 209s def cleanup_sessions(): 209s for session in self.sess_api.list().json(): 209s > self.sess_api.delete(session['id']) 209s 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 209s return self._req('DELETE', id) 209s ^^^^^^^^^^^^^^^^^^^^^^^ 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 209s response.raise_for_status() 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s 209s self = 209s 209s def raise_for_status(self): 209s """Raises :class:`HTTPError`, if one occurred.""" 209s 209s http_error_msg = "" 209s if isinstance(self.reason, bytes): 209s # We attempt to decode utf-8 first because some servers 209s # choose to localize their reason strings. If the string 209s # isn't utf-8, we fall back to iso-8859-1 for all other 209s # encodings. (See PR #3538) 209s try: 209s reason = self.reason.decode("utf-8") 209s except UnicodeDecodeError: 209s reason = self.reason.decode("iso-8859-1") 209s else: 209s reason = self.reason 209s 209s if 400 <= self.status_code < 500: 209s http_error_msg = ( 209s f"{self.status_code} Client Error: {reason} for url: {self.url}" 209s ) 209s 209s elif 500 <= self.status_code < 600: 209s http_error_msg = ( 209s f"{self.status_code} Server Error: {reason} for url: {self.url}" 209s ) 209s 209s if http_error_msg: 209s > raise HTTPError(http_error_msg, response=self) 209s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/533cdac8-f553-4ef9-a658-00cd496827b8 209s 209s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 209s ------------------------------ Captured log setup ------------------------------ 209s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmphs0rzf4s/config', '/tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmphs0rzf4s/etc/jupyter'] for config files 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmphs0rzf4s/etc/jupyter 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmphs0rzf4s/config 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmphs0rzf4s/etc/jupyter 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmphs0rzf4s/config 209s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmphs0rzf4s/notebooks 209s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 209s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 209s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 209s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 209s WARNING NotebookApp:handlers.py:612 Forbidden 209s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.330000ms referer=None 209s ----------------------------- Captured stderr call ----------------------------- 209s Traceback (most recent call last): 209s ------------------------------ Captured log call ------------------------------- 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.720000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphs0rzf4s/runtime/kernel-5e06ec38-ba36-4e51-87f1-51cd21ab2e42.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37925 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52343 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5e06ec38-ba36-4e51-87f1-51cd21ab2e42, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmphs0rzf4s/notebooks/foo'} 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.300000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.510000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/533cdac8-f553-4ef9-a658-00cd496827b8 (::1) 0.930000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.170000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5e06ec38-ba36-4e51-87f1-51cd21ab2e42 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5e06ec38-ba36-4e51-87f1-51cd21ab2e42 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/533cdac8-f553-4ef9-a658-00cd496827b8 (::1) 209s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/533cdac8-f553-4ef9-a658-00cd496827b8', version='HTTP/1.1', remote_ip='::1') 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 209s result = await result 209s ^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 209s yield maybe_future(sm.delete_session(session_id)) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 209s yielded = self.gen.send(value) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 209s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 209s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 209s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 209s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 209s return _runner_map[name].run(inner) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 209s return fut.result(None) 209s ~~~~~~~~~~^^^^^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 209s return self.__get_result() 209s ~~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 209s raise self._exception 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 209s stopper = ensure_async(km.shutdown_kernel(now, restart)) 209s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 209s return _runner_map[name].run(inner) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 209s return fut.result(None) 209s ~~~~~~~~~~^^^^^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 209s return self.__get_result() 209s ~~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 209s raise self._exception 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s WARNING NotebookApp:handlers.py:612 Unhandled error 209s ERROR NotebookApp:log.py:55 { 209s "Host": "localhost:12341", 209s "Accept": "*/*", 209s "User-Agent": "python-requests/2.32.5" 209s } 209s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/533cdac8-f553-4ef9-a658-00cd496827b8 (::1) 5.240000ms referer=None 209s --------------------------- Captured stderr teardown --------------------------- 209s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 209s return _run_code(code, main_globals, None, 209s "__main__", mod_spec) 209s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 209s exec(code, run_globals) 209s ~~~~^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 209s from ipykernel import kernelapp as app 209s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 209s from .connect import * # noqa: F403 209s ^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 209s from subprocess import PIPE, Popen 209s File "/usr/lib/python3.13/subprocess.py", line 46, in 209s import locale 209s File "/usr/lib/python3.13/locale.py", line 739, in 209s locale_encoding_alias.setdefault(k, v) 209s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ 209s KeyboardInterrupt 209s __________________ SessionAPITest.test_create_console_session __________________ 209s 209s @self.addCleanup 209s def cleanup_sessions(): 209s for session in self.sess_api.list().json(): 209s > self.sess_api.delete(session['id']) 209s 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 209s return self._req('DELETE', id) 209s ^^^^^^^^^^^^^^^^^^^^^^^ 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 209s response.raise_for_status() 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s 209s self = 209s 209s def raise_for_status(self): 209s """Raises :class:`HTTPError`, if one occurred.""" 209s 209s http_error_msg = "" 209s if isinstance(self.reason, bytes): 209s # We attempt to decode utf-8 first because some servers 209s # choose to localize their reason strings. If the string 209s # isn't utf-8, we fall back to iso-8859-1 for all other 209s # encodings. (See PR #3538) 209s try: 209s reason = self.reason.decode("utf-8") 209s except UnicodeDecodeError: 209s reason = self.reason.decode("iso-8859-1") 209s else: 209s reason = self.reason 209s 209s if 400 <= self.status_code < 500: 209s http_error_msg = ( 209s f"{self.status_code} Client Error: {reason} for url: {self.url}" 209s ) 209s 209s elif 500 <= self.status_code < 600: 209s http_error_msg = ( 209s f"{self.status_code} Server Error: {reason} for url: {self.url}" 209s ) 209s 209s if http_error_msg: 209s > raise HTTPError(http_error_msg, response=self) 209s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d06aa5a9-8f4f-405b-b304-50fd77ee95f3 209s 209s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 209s ----------------------------- Captured stderr call ----------------------------- 209s Traceback (most recent call last): 209s ------------------------------ Captured log call ------------------------------- 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphs0rzf4s/runtime/kernel-118ca668-dddf-470b-a90e-f9cfceaa7b90.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56587 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35759 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: 118ca668-dddf-470b-a90e-f9cfceaa7b90, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmphs0rzf4s/notebooks/foo'} 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.630000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.220000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5e06ec38-ba36-4e51-87f1-51cd21ab2e42 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5e06ec38-ba36-4e51-87f1-51cd21ab2e42 209s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/533cdac8-f553-4ef9-a658-00cd496827b8 (::1) 0.770000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 118ca668-dddf-470b-a90e-f9cfceaa7b90 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 118ca668-dddf-470b-a90e-f9cfceaa7b90 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d06aa5a9-8f4f-405b-b304-50fd77ee95f3 (::1) 209s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d06aa5a9-8f4f-405b-b304-50fd77ee95f3', version='HTTP/1.1', remote_ip='::1') 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 209s result = await result 209s ^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 209s yield maybe_future(sm.delete_session(session_id)) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 209s yielded = self.gen.send(value) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 209s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 209s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 209s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 209s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 209s return _runner_map[name].run(inner) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 209s return fut.result(None) 209s ~~~~~~~~~~^^^^^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 209s return self.__get_result() 209s ~~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 209s raise self._exception 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 209s stopper = ensure_async(km.shutdown_kernel(now, restart)) 209s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 209s return _runner_map[name].run(inner) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 209s return fut.result(None) 209s ~~~~~~~~~~^^^^^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 209s return self.__get_result() 209s ~~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 209s raise self._exception 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s WARNING NotebookApp:handlers.py:612 Unhandled error 209s --------------------------- Captured stderr teardown --------------------------- 209s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 209s return _run_code(code, main_globals, None, 209s "__main__", mod_spec) 209s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 209s exec(code, run_globals) 209s ~~~~^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 209s from ipykernel import kernelapp as app 209s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 209s from .connect import * # noqa: F403 209s ^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 209s import json 209s File "/usr/lib/python3.13/json/__init__.py", line 106, in 209s from .decoder import JSONDecoder, JSONDecodeError 209s File "/usr/lib/python3.13/json/decoder.py", line 5, in 209s from json import scanner 209s File "/usr/lib/python3.13/json/scanner.py", line 11, in 209s NUMBER_RE = re.compile( 209s r'(-?(?:0|[1-9][0-9]*))(\.[0-9]+)?([eE][-+]?[0-9]+)?', 209s (re.VERBOSE | re.MULTILINE | re.DOTALL)) 209s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 209s return _compile(pattern, flags) 209s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 209s p = _compiler.compile(pattern, flags) 209s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 209s code = _code(p, flags) 209s File "/usr/lib/python3.13/re/_compiler.py", line 582, in _code 209s _compile_info(code, p, flags) 209s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3.13/re/_compiler.py", line 518, in _compile_info 209s lo, hi = pattern.getwidth() 209s ~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.13/re/_parser.py", line 206, in getwidth 209s hi = hi + j * av[1] 209s ~~^~~~~~~ 209s KeyboardInterrupt 209s ____________________ SessionAPITest.test_create_deprecated _____________________ 209s 209s @self.addCleanup 209s def cleanup_sessions(): 209s for session in self.sess_api.list().json(): 209s > self.sess_api.delete(session['id']) 209s 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 209s return self._req('DELETE', id) 209s ^^^^^^^^^^^^^^^^^^^^^^^ 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 209s response.raise_for_status() 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s 209s self = 209s 209s def raise_for_status(self): 209s """Raises :class:`HTTPError`, if one occurred.""" 209s 209s http_error_msg = "" 209s if isinstance(self.reason, bytes): 209s # We attempt to decode utf-8 first because some servers 209s # choose to localize their reason strings. If the string 209s # isn't utf-8, we fall back to iso-8859-1 for all other 209s # encodings. (See PR #3538) 209s try: 209s reason = self.reason.decode("utf-8") 209s except UnicodeDecodeError: 209s reason = self.reason.decode("iso-8859-1") 209s else: 209s reason = self.reason 209s 209s if 400 <= self.status_code < 500: 209s http_error_msg = ( 209s f"{self.status_code} Client Error: {reason} for url: {self.url}" 209s ) 209s 209s elif 500 <= self.status_code < 600: 209s http_error_msg = ( 209s f"{self.status_code} Server Error: {reason} for url: {self.url}" 209s ) 209s 209s if http_error_msg: 209s > raise HTTPError(http_error_msg, response=self) 209s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c602a6e0-db25-4612-b556-bd8163f1b507 209s 209s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 209s ----------------------------- Captured stderr call ----------------------------- 209s Traceback (most recent call last): 209s File "", line 1513, in _path_importer_cache 209s KeyError: '/usr/lib/python3/dist-packages/ipykernel' 209s 209s During handling of the above exception, another exception occurred: 209s 209s Traceback (most recent call last): 209s ------------------------------ Captured log call ------------------------------- 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphs0rzf4s/runtime/kernel-bbd94a83-e15a-45f3-8a5e-b55d9b97013c.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34767 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54239 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: bbd94a83-e15a-45f3-8a5e-b55d9b97013c, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmphs0rzf4s/notebooks/foo'} 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.940000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.250000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 118ca668-dddf-470b-a90e-f9cfceaa7b90 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 118ca668-dddf-470b-a90e-f9cfceaa7b90 209s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d06aa5a9-8f4f-405b-b304-50fd77ee95f3 (::1) 1.450000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bbd94a83-e15a-45f3-8a5e-b55d9b97013c 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bbd94a83-e15a-45f3-8a5e-b55d9b97013c 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c602a6e0-db25-4612-b556-bd8163f1b507 (::1) 209s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c602a6e0-db25-4612-b556-bd8163f1b507', version='HTTP/1.1', remote_ip='::1') 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 209s result = await result 209s ^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 209s yield maybe_future(sm.delete_session(session_id)) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 209s yielded = self.gen.send(value) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 209s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 209s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 209s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 209s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 209s return _runner_map[name].run(inner) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 209s return fut.result(None) 209s ~~~~~~~~~~^^^^^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 209s return self.__get_result() 209s ~~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 209s raise self._exception 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 209s stopper = ensure_async(km.shutdown_kernel(now, restart)) 209s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 209s return _runner_map[name].run(inner) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 209s return fut.result(None) 209s ~~~~~~~~~~^^^^^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 209s return self.__get_result() 209s ~~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 209s raise self._exception 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s WARNING NotebookApp:handlers.py:612 Unhandled error 209s ERROR NotebookApp:log.py:55 { 209s "Host": "localhost:12341", 209s "Accept": "*/*", 209s "User-Agent": "python-requests/2.32.5" 209s } 209s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c602a6e0-db25-4612-b556-bd8163f1b507 (::1) 4.020000ms referer=None 209s --------------------------- Captured stderr teardown --------------------------- 209s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 209s return _run_code(code, main_globals, None, 209s "__main__", mod_spec) 209s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 209s exec(code, run_globals) 209s ~~~~^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 209s from ipykernel import kernelapp as app 209s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 209s from ._version import ( 209s ...<4 lines>... 209s ) 209s File "", line 1360, in _find_and_load 209s File "", line 1322, in _find_and_load_unlocked 209s File "", line 1262, in _find_spec 209s File "", line 1556, in find_spec 209s File "", line 1528, in _get_spec 209s File "", line 1515, in _path_importer_cache 209s File "", line 1491, in _path_hooks 209s File "", line 79, in __init__ 209s File "", line 152, in _path_stat 209s KeyboardInterrupt 209s ___________________ SessionAPITest.test_create_file_session ____________________ 209s 209s @self.addCleanup 209s def cleanup_sessions(): 209s for session in self.sess_api.list().json(): 209s > self.sess_api.delete(session['id']) 209s 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 209s return self._req('DELETE', id) 209s ^^^^^^^^^^^^^^^^^^^^^^^ 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 209s response.raise_for_status() 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s 209s self = 209s 209s def raise_for_status(self): 209s """Raises :class:`HTTPError`, if one occurred.""" 209s 209s http_error_msg = "" 209s if isinstance(self.reason, bytes): 209s # We attempt to decode utf-8 first because some servers 209s # choose to localize their reason strings. If the string 209s # isn't utf-8, we fall back to iso-8859-1 for all other 209s # encodings. (See PR #3538) 209s try: 209s reason = self.reason.decode("utf-8") 209s except UnicodeDecodeError: 209s reason = self.reason.decode("iso-8859-1") 209s else: 209s reason = self.reason 209s 209s if 400 <= self.status_code < 500: 209s http_error_msg = ( 209s f"{self.status_code} Client Error: {reason} for url: {self.url}" 209s ) 209s 209s elif 500 <= self.status_code < 600: 209s http_error_msg = ( 209s f"{self.status_code} Server Error: {reason} for url: {self.url}" 209s ) 209s 209s if http_error_msg: 209s > raise HTTPError(http_error_msg, response=self) 209s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/dfa5a0b9-1112-4228-ad3c-5c55cc86fe1f 209s 209s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 209s ----------------------------- Captured stderr call ----------------------------- 209s Traceback (most recent call last): 209s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 209s return _run_code(code, main_globals, None, 209s "__main__", mod_spec) 209s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 209s exec(code, run_globals) 209s ~~~~^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 209s from ipykernel import kernelapp as app 209s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 209s from .connect import * # noqa: F403 209s ^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 209s import json 209s File "/usr/lib/python3.13/json/__init__.py", line 106, in 209s from .decoder import JSONDecoder, JSONDecodeError 209s File "/usr/lib/python3.13/json/decoder.py", line 53, in 209s HEXDIGITS = re.compile(r'[0-9A-Fa-f]{4}', FLAGS) 209s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 209s return _compile(pattern, flags) 209s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 209s p = _compiler.compile(pattern, flags) 209s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 209s code = _code(p, flags) 209s File "/usr/lib/python3.13/re/_compiler.py", line 585, in _code 209s _compile(code, p.data, flags) 209s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3.13/re/_compiler.py", line 110, in _compile 209s emit(SUCCESS) 209s ~~~~^^^^^^^^^ 209s KeyboardInterrupt 209s ------------------------------ Captured log call ------------------------------- 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphs0rzf4s/runtime/kernel-58e15e95-0231-42a6-9d16-17274c0d7caa.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46307 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46513 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: 58e15e95-0231-42a6-9d16-17274c0d7caa, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmphs0rzf4s/notebooks/foo'} 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.370000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.090000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bbd94a83-e15a-45f3-8a5e-b55d9b97013c 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bbd94a83-e15a-45f3-8a5e-b55d9b97013c 209s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c602a6e0-db25-4612-b556-bd8163f1b507 (::1) 1.520000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 58e15e95-0231-42a6-9d16-17274c0d7caa 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 58e15e95-0231-42a6-9d16-17274c0d7caa 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/dfa5a0b9-1112-4228-ad3c-5c55cc86fe1f (::1) 209s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/dfa5a0b9-1112-4228-ad3c-5c55cc86fe1f', version='HTTP/1.1', remote_ip='::1') 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 209s result = await result 209s ^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 209s yield maybe_future(sm.delete_session(session_id)) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 209s yielded = self.gen.send(value) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 209s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 209s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 209s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 209s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 209s return _runner_map[name].run(inner) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 209s return fut.result(None) 209s ~~~~~~~~~~^^^^^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 209s return self.__get_result() 209s ~~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 209s raise self._exception 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 209s stopper = ensure_async(km.shutdown_kernel(now, restart)) 209s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 209s return _runner_map[name].run(inner) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 209s return fut.result(None) 209s ~~~~~~~~~~^^^^^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 209s return self.__get_result() 209s ~~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 209s raise self._exception 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s WARNING NotebookApp:handlers.py:612 Unhandled error 209s ERROR NotebookApp:log.py:55 { 209s "Host": "localhost:12341", 209s "Accept": "*/*", 209s "User-Agent": "python-requests/2.32.5" 209s } 209s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/dfa5a0b9-1112-4228-ad3c-5c55cc86fe1f (::1) 4.910000ms referer=None 209s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 209s 209s self = 209s 209s def test_create_with_kernel_id(self): 209s # create a new kernel 209s r = self.request('POST', 'api/kernels') 209s r.raise_for_status() 209s kernel = r.json() 209s 209s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 209s self.assertEqual(resp.status_code, 201) 209s newsession = resp.json() 209s self.assertIn('id', newsession) 209s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 209s self.assertEqual(newsession['kernel']['id'], kernel['id']) 209s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 209s 209s sessions = self.sess_api.list().json() 209s > self.assertEqual(sessions, [newsession]) 209s E AssertionError: Lists differ: [{'id': 'dfa5a0b9-1112-4228-ad3c-5c55cc86fe1f', 'p[553 chars]ne}}] != [{'id': 'b6c55699-eef7-4eb2-bac2-f8034816d87b', 'p[279 chars]ne}}] 209s E 209s E First differing element 0: 209s E {'id': 'dfa5a0b9-1112-4228-ad3c-5c55cc86fe1f', 'p[218 chars]: 0}} 209s E {'id': 'b6c55699-eef7-4eb2-bac2-f8034816d87b', 'p[278 chars]one}} 209s E 209s E First list contains 1 additional elements. 209s E First extra element 1: 209s E {'id': 'b6c55699-eef7-4eb2-bac2-f8034816d87b', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '60b60bc6-ffa0-4a23-b837-0e77219dded0', 'name': 'python3', 'last_activity': '2026-02-06T10:25:22.350235Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 209s E 209s E Diff is 830 characters long. Set self.maxDiff to None to see it. 209s 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 209s ----------------------------- Captured stderr call ----------------------------- 209s Traceback (most recent call last): 209s ------------------------------ Captured log call ------------------------------- 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphs0rzf4s/runtime/kernel-60b60bc6-ffa0-4a23-b837-0e77219dded0.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42609 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45585 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: 60b60bc6-ffa0-4a23-b837-0e77219dded0, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.530000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.570000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.770000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.440000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 58e15e95-0231-42a6-9d16-17274c0d7caa 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 58e15e95-0231-42a6-9d16-17274c0d7caa 209s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/dfa5a0b9-1112-4228-ad3c-5c55cc86fe1f (::1) 1.000000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 60b60bc6-ffa0-4a23-b837-0e77219dded0 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 60b60bc6-ffa0-4a23-b837-0e77219dded0 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b6c55699-eef7-4eb2-bac2-f8034816d87b (::1) 209s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b6c55699-eef7-4eb2-bac2-f8034816d87b', version='HTTP/1.1', remote_ip='::1') 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 209s result = await result 209s ^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 209s yield maybe_future(sm.delete_session(session_id)) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 209s yielded = self.gen.send(value) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 209s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 209s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 209s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 209s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 209s return _runner_map[name].run(inner) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 209s return fut.result(None) 209s ~~~~~~~~~~^^^^^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 209s return self.__get_result() 209s ~~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 209s raise self._exception 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 209s stopper = ensure_async(km.shutdown_kernel(now, restart)) 209s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 209s return _runner_map[name].run(inner) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 209s return fut.result(None) 209s ~~~~~~~~~~^^^^^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 209s return self.__get_result() 209s ~~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 209s raise self._exception 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s WARNING NotebookApp:handlers.py:612 Unhandled error 209s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 209s 209s @self.addCleanup 209s def cleanup_sessions(): 209s for session in self.sess_api.list().json(): 209s > self.sess_api.delete(session['id']) 209s 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 209s return self._req('DELETE', id) 209s ^^^^^^^^^^^^^^^^^^^^^^^ 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 209s response.raise_for_status() 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s 209s self = 209s 209s def raise_for_status(self): 209s """Raises :class:`HTTPError`, if one occurred.""" 209s 209s http_error_msg = "" 209s if isinstance(self.reason, bytes): 209s # We attempt to decode utf-8 first because some servers 209s # choose to localize their reason strings. If the string 209s # isn't utf-8, we fall back to iso-8859-1 for all other 209s # encodings. (See PR #3538) 209s try: 209s reason = self.reason.decode("utf-8") 209s except UnicodeDecodeError: 209s reason = self.reason.decode("iso-8859-1") 209s else: 209s reason = self.reason 209s 209s if 400 <= self.status_code < 500: 209s http_error_msg = ( 209s f"{self.status_code} Client Error: {reason} for url: {self.url}" 209s ) 209s 209s elif 500 <= self.status_code < 600: 209s http_error_msg = ( 209s f"{self.status_code} Server Error: {reason} for url: {self.url}" 209s ) 209s 209s if http_error_msg: 209s > raise HTTPError(http_error_msg, response=self) 209s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b6c55699-eef7-4eb2-bac2-f8034816d87b 209s 209s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 209s ----------------------------- Captured stderr call ----------------------------- 209s Traceback (most recent call last): 209s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 209s return _run_code(code, main_globals, None, 209s "__main__", mod_spec) 209s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 209s exec(code, run_globals) 209s ~~~~^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 209s from ipykernel import kernelapp as app 209s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 209s from .connect import * # noqa: F403 209s ^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 209s from subprocess import PIPE, Popen 209s File "/usr/lib/python3.13/subprocess.py", line 51, in 209s import threading 209s File "", line 1360, in _find_and_load 209s File "", line 1331, in _find_and_load_unlocked 209s File "", line 935, in _load_unlocked 209s File "", line 1019, in exec_module 209s File "", line 1152, in get_code 209s File "", line 781, in _compile_bytecode 209s KeyboardInterrupt 209s ------------------------------ Captured log call ------------------------------- 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.630000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphs0rzf4s/runtime/kernel-dff19017-35a7-41de-ad27-d1e92b573705.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39663 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40163 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: dff19017-35a7-41de-ad27-d1e92b573705, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.130000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 60b60bc6-ffa0-4a23-b837-0e77219dded0 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 60b60bc6-ffa0-4a23-b837-0e77219dded0 209s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/b6c55699-eef7-4eb2-bac2-f8034816d87b (::1) 1.640000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.190000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.390000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dff19017-35a7-41de-ad27-d1e92b573705 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dff19017-35a7-41de-ad27-d1e92b573705 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b6c55699-eef7-4eb2-bac2-f8034816d87b (::1) 209s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b6c55699-eef7-4eb2-bac2-f8034816d87b', version='HTTP/1.1', remote_ip='::1') 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 209s result = await result 209s ^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 209s yield maybe_future(sm.delete_session(session_id)) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 209s yielded = self.gen.send(value) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 209s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 209s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 209s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 209s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 209s return _runner_map[name].run(inner) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 209s return fut.result(None) 209s ~~~~~~~~~~^^^^^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 209s return self.__get_result() 209s ~~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 209s raise self._exception 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 209s stopper = ensure_async(km.shutdown_kernel(now, restart)) 209s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 209s return _runner_map[name].run(inner) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 209s return fut.result(None) 209s ~~~~~~~~~~^^^^^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 209s return self.__get_result() 209s ~~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 209s raise self._exception 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s WARNING NotebookApp:handlers.py:612 Unhandled error 209s ERROR NotebookApp:log.py:55 { 209s "Host": "localhost:12341", 209s "Accept": "*/*", 209s "User-Agent": "python-requests/2.32.5" 209s } 209s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b6c55699-eef7-4eb2-bac2-f8034816d87b (::1) 4.630000ms referer=None 209s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 209s 209s @self.addCleanup 209s def cleanup_sessions(): 209s for session in self.sess_api.list().json(): 209s > self.sess_api.delete(session['id']) 209s 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 209s return self._req('DELETE', id) 209s ^^^^^^^^^^^^^^^^^^^^^^^ 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 209s response.raise_for_status() 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s 209s self = 209s 209s def raise_for_status(self): 209s """Raises :class:`HTTPError`, if one occurred.""" 209s 209s http_error_msg = "" 209s if isinstance(self.reason, bytes): 209s # We attempt to decode utf-8 first because some servers 209s # choose to localize their reason strings. If the string 209s # isn't utf-8, we fall back to iso-8859-1 for all other 209s # encodings. (See PR #3538) 209s try: 209s reason = self.reason.decode("utf-8") 209s except UnicodeDecodeError: 209s reason = self.reason.decode("iso-8859-1") 209s else: 209s reason = self.reason 209s 209s if 400 <= self.status_code < 500: 209s http_error_msg = ( 209s f"{self.status_code} Client Error: {reason} for url: {self.url}" 209s ) 209s 209s elif 500 <= self.status_code < 600: 209s http_error_msg = ( 209s f"{self.status_code} Server Error: {reason} for url: {self.url}" 209s ) 209s 209s if http_error_msg: 209s > raise HTTPError(http_error_msg, response=self) 209s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b6c55699-eef7-4eb2-bac2-f8034816d87b 209s 209s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 209s ----------------------------- Captured stderr call ----------------------------- 209s Traceback (most recent call last): 209s ------------------------------ Captured log call ------------------------------- 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.720000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphs0rzf4s/runtime/kernel-3971aff6-a4ec-46ee-9f37-e23fb573c376.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39031 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49615 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3971aff6-a4ec-46ee-9f37-e23fb573c376, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmphs0rzf4s/notebooks/foo'} 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dff19017-35a7-41de-ad27-d1e92b573705 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dff19017-35a7-41de-ad27-d1e92b573705 209s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/b6c55699-eef7-4eb2-bac2-f8034816d87b (::1) 14.070000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.170000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.370000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3971aff6-a4ec-46ee-9f37-e23fb573c376 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3971aff6-a4ec-46ee-9f37-e23fb573c376 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b6c55699-eef7-4eb2-bac2-f8034816d87b (::1) 209s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b6c55699-eef7-4eb2-bac2-f8034816d87b', version='HTTP/1.1', remote_ip='::1') 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 209s result = await result 209s ^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 209s yield maybe_future(sm.delete_session(session_id)) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 209s yielded = self.gen.send(value) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 209s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 209s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 209s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 209s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 209s return _runner_map[name].run(inner) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 209s return fut.result(None) 209s ~~~~~~~~~~^^^^^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 209s return self.__get_result() 209s ~~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 209s raise self._exception 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 209s stopper = ensure_async(km.shutdown_kernel(now, restart)) 209s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 209s return _runner_map[name].run(inner) 209s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 209s return fut.result(None) 209s ~~~~~~~~~~^^^^^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 209s return self.__get_result() 209s ~~~~~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 209s raise self._exception 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s WARNING NotebookApp:handlers.py:612 Unhandled error 209s --------------------------- Captured stderr teardown --------------------------- 209s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 209s return _run_code(code, main_globals, None, 209s "__main__", mod_spec) 209s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 209s exec(code, run_globals) 209s ~~~~^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 209s from ipykernel import kernelapp as app 209s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 209s from .connect import * # noqa: F403 209s ^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 209s from subprocess import PIPE, Popen 209s File "", line 1357, in _find_and_load 209s File "", line 417, in __enter__ 209s File "", line 456, in _get_module_lock 209s KeyboardInterrupt 209s _______________________ AsyncSessionAPITest.test_create ________________________ 209s 209s @self.addCleanup 209s def cleanup_sessions(): 209s for session in self.sess_api.list().json(): 209s > self.sess_api.delete(session['id']) 209s 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 209s return self._req('DELETE', id) 209s ^^^^^^^^^^^^^^^^^^^^^^^ 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 209s response.raise_for_status() 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s 209s self = 209s 209s def raise_for_status(self): 209s """Raises :class:`HTTPError`, if one occurred.""" 209s 209s http_error_msg = "" 209s if isinstance(self.reason, bytes): 209s # We attempt to decode utf-8 first because some servers 209s # choose to localize their reason strings. If the string 209s # isn't utf-8, we fall back to iso-8859-1 for all other 209s # encodings. (See PR #3538) 209s try: 209s reason = self.reason.decode("utf-8") 209s except UnicodeDecodeError: 209s reason = self.reason.decode("iso-8859-1") 209s else: 209s reason = self.reason 209s 209s if 400 <= self.status_code < 500: 209s http_error_msg = ( 209s f"{self.status_code} Client Error: {reason} for url: {self.url}" 209s ) 209s 209s elif 500 <= self.status_code < 600: 209s http_error_msg = ( 209s f"{self.status_code} Server Error: {reason} for url: {self.url}" 209s ) 209s 209s if http_error_msg: 209s > raise HTTPError(http_error_msg, response=self) 209s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/83cc148b-66b3-46ae-8363-b408ba2633ed 209s 209s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 209s ------------------------------ Captured log setup ------------------------------ 209s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp1_6_pebk/config', '/tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp1_6_pebk/etc/jupyter'] for config files 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp1_6_pebk/etc/jupyter 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp1_6_pebk/config 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp1_6_pebk/etc/jupyter 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 209s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp1_6_pebk/config 209s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp1_6_pebk/notebooks 209s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 209s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 209s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 209s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 209s WARNING NotebookApp:handlers.py:612 Forbidden 209s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.410000ms referer=None 209s ----------------------------- Captured stderr call ----------------------------- 209s Traceback (most recent call last): 209s ------------------------------ Captured log call ------------------------------- 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.690000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1_6_pebk/runtime/kernel-4657985c-f6ce-4ad4-8d7d-9d05914a6d7f.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56905 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41697 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4657985c-f6ce-4ad4-8d7d-9d05914a6d7f, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp1_6_pebk/notebooks/foo'} 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.680000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.420000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/83cc148b-66b3-46ae-8363-b408ba2633ed (::1) 0.490000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.830000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4657985c-f6ce-4ad4-8d7d-9d05914a6d7f 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4657985c-f6ce-4ad4-8d7d-9d05914a6d7f 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 209s await kernel_awaitable 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 209s result = await obj 209s ^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/83cc148b-66b3-46ae-8363-b408ba2633ed (::1) 209s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/83cc148b-66b3-46ae-8363-b408ba2633ed', version='HTTP/1.1', remote_ip='::1') 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 209s result = await result 209s ^^^^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 209s future.result() 209s ~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 209s yield maybe_future(sm.delete_session(session_id)) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 209s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 209s raise self._exception.with_traceback(self._exception_tb) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 209s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 209s raise km.ready.exception() # type: ignore[misc] 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 209s await kernel_awaitable 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 209s result = await obj 209s ^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s WARNING NotebookApp:handlers.py:612 Unhandled error 209s ERROR NotebookApp:log.py:55 { 209s "Host": "localhost:12341", 209s "Accept": "*/*", 209s "User-Agent": "python-requests/2.32.5" 209s } 209s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/83cc148b-66b3-46ae-8363-b408ba2633ed (::1) 4.200000ms referer=None/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 209s gc.collect() 209s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 209s 209s --------------------------- Captured stderr teardown --------------------------- 209s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 209s return _run_code(code, main_globals, None, 209s "__main__", mod_spec) 209s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 209s exec(code, run_globals) 209s ~~~~^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 209s from ipykernel import kernelapp as app 209s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 209s from .connect import * # noqa: F403 209s ^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 209s from subprocess import PIPE, Popen 209s File "/usr/lib/python3.13/subprocess.py", line 46, in 209s import locale 209s File "/usr/lib/python3.13/locale.py", line 180, in 209s _percent_re = re.compile(r'%(?:\((?P.*?)\))?' 209s r'(?P[-#0-9 +*.hlL]*?)[eEfFgGdiouxXcrs%]') 209s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 209s return _compile(pattern, flags) 209s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 209s p = _compiler.compile(pattern, flags) 209s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 209s code = _code(p, flags) 209s File "/usr/lib/python3.13/re/_compiler.py", line 585, in _code 209s _compile(code, p.data, flags) 209s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3.13/re/_compiler.py", line 117, in _compile 209s _compile(code, av[2], flags) 209s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3.13/re/_compiler.py", line 126, in _compile 209s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 209s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3.13/re/_compiler.py", line 109, in _compile 209s _compile(code, av[2], flags) 209s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3.13/re/_compiler.py", line 102, in _compile 209s emit(ANY) 209s ~~~~^^^^^ 209s KeyboardInterrupt 209s _______________ AsyncSessionAPITest.test_create_console_session ________________ 209s 209s @self.addCleanup 209s def cleanup_sessions(): 209s for session in self.sess_api.list().json(): 209s > self.sess_api.delete(session['id']) 209s 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 209s return self._req('DELETE', id) 209s ^^^^^^^^^^^^^^^^^^^^^^^ 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 209s response.raise_for_status() 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s 209s self = 209s 209s def raise_for_status(self): 209s """Raises :class:`HTTPError`, if one occurred.""" 209s 209s http_error_msg = "" 209s if isinstance(self.reason, bytes): 209s # We attempt to decode utf-8 first because some servers 209s # choose to localize their reason strings. If the string 209s # isn't utf-8, we fall back to iso-8859-1 for all other 209s # encodings. (See PR #3538) 209s try: 209s reason = self.reason.decode("utf-8") 209s except UnicodeDecodeError: 209s reason = self.reason.decode("iso-8859-1") 209s else: 209s reason = self.reason 209s 209s if 400 <= self.status_code < 500: 209s http_error_msg = ( 209s f"{self.status_code} Client Error: {reason} for url: {self.url}" 209s ) 209s 209s elif 500 <= self.status_code < 600: 209s http_error_msg = ( 209s f"{self.status_code} Server Error: {reason} for url: {self.url}" 209s ) 209s 209s if http_error_msg: 209s > raise HTTPError(http_error_msg, response=self) 209s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/0f310797-52d3-4f32-955d-b32ea57a8366 209s 209s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 209s ----------------------------- Captured stderr call ----------------------------- 209s Traceback (most recent call last): 209s ------------------------------ Captured log call ------------------------------- 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1_6_pebk/runtime/kernel-f0b674d4-87e9-418c-9117-0c7b8d85369e.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38627 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59875 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: f0b674d4-87e9-418c-9117-0c7b8d85369e, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp1_6_pebk/notebooks/foo'} 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.290000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.440000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4657985c-f6ce-4ad4-8d7d-9d05914a6d7f 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4657985c-f6ce-4ad4-8d7d-9d05914a6d7f 209s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/83cc148b-66b3-46ae-8363-b408ba2633ed (::1) 1.260000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f0b674d4-87e9-418c-9117-0c7b8d85369e 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f0b674d4-87e9-418c-9117-0c7b8d85369e 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 209s await kernel_awaitable 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 209s result = await obj 209s ^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/0f310797-52d3-4f32-955d-b32ea57a8366 (::1) 209s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/0f310797-52d3-4f32-955d-b32ea57a8366', version='HTTP/1.1', remote_ip='::1') 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 209s result = await result 209s ^^^^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 209s future.result() 209s ~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 209s yield maybe_future(sm.delete_session(session_id)) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 209s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 209s raise self._exception.with_traceback(self._exception_tb) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 209s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 209s raise km.ready.exception() # type: ignore[misc] 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 209s await kernel_awaitable 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 209s result = await obj 209s ^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s WARNING NotebookApp:handlers.py:612 Unhandled error 209s ERROR NotebookApp:log.py:55 { 209s "Host": "localhost:12341", 209s "Accept": "*/*", 209s "User-Agent": "python-requests/2.32.5" 209s } 209s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/0f310797-52d3-4f32-955d-b32ea57a8366 (::1) 3.660000ms referer=None 209s --------------------------- Captured stderr teardown --------------------------- 209s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 209s return _run_code(code, main_globals, None, 209s "__main__", mod_spec) 209s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 209s exec(code, run_globals) 209s ~~~~^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 209s from pathlib import Path 209s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 209s from ._local import * 209s File "/usr/lib/python3.13/pathlib/_local.py", line 6, in 209s import warnings 209s File "", line 1360, in _find_and_load 209s File "", line 1331, in _find_and_load_unlocked 209s File "", line 921, in _load_unlocked 209s File "", line 819, in module_from_spec 209s File "", line 743, in _init_module_attrs 209s KeyboardInterrupt 209s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 209s 209s @self.addCleanup 209s def cleanup_sessions(): 209s for session in self.sess_api.list().json(): 209s > self.sess_api.delete(session['id']) 209s 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 209s return self._req('DELETE', id) 209s ^^^^^^^^^^^^^^^^^^^^^^^ 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 209s response.raise_for_status() 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s 209s self = 209s 209s def raise_for_status(self): 209s """Raises :class:`HTTPError`, if one occurred.""" 209s 209s http_error_msg = "" 209s if isinstance(self.reason, bytes): 209s # We attempt to decode utf-8 first because some servers 209s # choose to localize their reason strings. If the string 209s # isn't utf-8, we fall back to iso-8859-1 for all other 209s # encodings. (See PR #3538) 209s try: 209s reason = self.reason.decode("utf-8") 209s except UnicodeDecodeError: 209s reason = self.reason.decode("iso-8859-1") 209s else: 209s reason = self.reason 209s 209s if 400 <= self.status_code < 500: 209s http_error_msg = ( 209s f"{self.status_code} Client Error: {reason} for url: {self.url}" 209s ) 209s 209s elif 500 <= self.status_code < 600: 209s http_error_msg = ( 209s f"{self.status_code} Server Error: {reason} for url: {self.url}" 209s ) 209s 209s if http_error_msg: 209s > raise HTTPError(http_error_msg, response=self) 209s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1a3dbee9-e74a-4488-80b0-810e87c841e7 209s 209s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 209s ----------------------------- Captured stderr call ----------------------------- 209s Traceback (most recent call last): 209s ------------------------------ Captured log call ------------------------------- 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1_6_pebk/runtime/kernel-67b924a2-aef6-40e1-843b-0c54081e4ead.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39081 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49471 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: 67b924a2-aef6-40e1-843b-0c54081e4ead, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp1_6_pebk/notebooks/foo'} 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.000000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.410000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f0b674d4-87e9-418c-9117-0c7b8d85369e 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f0b674d4-87e9-418c-9117-0c7b8d85369e 209s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/0f310797-52d3-4f32-955d-b32ea57a8366 (::1) 1.200000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 67b924a2-aef6-40e1-843b-0c54081e4ead 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 67b924a2-aef6-40e1-843b-0c54081e4ead 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 209s await kernel_awaitable 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 209s result = await obj 209s ^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1a3dbee9-e74a-4488-80b0-810e87c841e7 (::1) 209s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1a3dbee9-e74a-4488-80b0-810e87c841e7', version='HTTP/1.1', remote_ip='::1') 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 209s result = await result 209s ^^^^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 209s future.result() 209s ~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 209s yield maybe_future(sm.delete_session(session_id)) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 209s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 209s raise self._exception.with_traceback(self._exception_tb) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 209s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 209s raise km.ready.exception() # type: ignore[misc] 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 209s await kernel_awaitable 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 209s result = await obj 209s ^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s WARNING NotebookApp:handlers.py:612 Unhandled error 209s ERROR NotebookApp:log.py:55 { 209s "Host": "localhost:12341", 209s "Accept": "*/*", 209s "User-Agent": "python-requests/2.32.5" 209s } 209s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1a3dbee9-e74a-4488-80b0-810e87c841e7 (::1) 3.540000ms referer=None 209s --------------------------- Captured stderr teardown --------------------------- 209s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 209s return _run_code(code, main_globals, None, 209s "__main__", mod_spec) 209s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 209s exec(code, run_globals) 209s ~~~~^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 209s from pathlib import Path 209s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 209s from ._local import * 209s File "", line 1360, in _find_and_load 209s File "", line 1331, in _find_and_load_unlocked 209s File "", line 935, in _load_unlocked 209s File "", line 1019, in exec_module 209s File "", line 1152, in get_code 209s File "", line 781, in _compile_bytecode 209s KeyboardInterrupt 209s _________________ AsyncSessionAPITest.test_create_file_session _________________ 209s 209s @self.addCleanup 209s def cleanup_sessions(): 209s for session in self.sess_api.list().json(): 209s > self.sess_api.delete(session['id']) 209s 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 209s return self._req('DELETE', id) 209s ^^^^^^^^^^^^^^^^^^^^^^^ 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 209s response.raise_for_status() 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s 209s self = 209s 209s def raise_for_status(self): 209s """Raises :class:`HTTPError`, if one occurred.""" 209s 209s http_error_msg = "" 209s if isinstance(self.reason, bytes): 209s # We attempt to decode utf-8 first because some servers 209s # choose to localize their reason strings. If the string 209s # isn't utf-8, we fall back to iso-8859-1 for all other 209s # encodings. (See PR #3538) 209s try: 209s reason = self.reason.decode("utf-8") 209s except UnicodeDecodeError: 209s reason = self.reason.decode("iso-8859-1") 209s else: 209s reason = self.reason 209s 209s if 400 <= self.status_code < 500: 209s http_error_msg = ( 209s f"{self.status_code} Client Error: {reason} for url: {self.url}" 209s ) 209s 209s elif 500 <= self.status_code < 600: 209s http_error_msg = ( 209s f"{self.status_code} Server Error: {reason} for url: {self.url}" 209s ) 209s 209s if http_error_msg: 209s > raise HTTPError(http_error_msg, response=self) 209s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/9d2c10cf-4276-4ead-ae80-2d919367ea6d 209s 209s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 209s ------------------------------ Captured log call ------------------------------- 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1_6_pebk/runtime/kernel-352a7bf0-100c-4b25-a65f-c0d2925c10f4.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49001 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40541 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: 352a7bf0-100c-4b25-a65f-c0d2925c10f4, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp1_6_pebk/notebooks/foo'} 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.750000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.410000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 67b924a2-aef6-40e1-843b-0c54081e4ead 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 67b924a2-aef6-40e1-843b-0c54081e4ead 209s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/1a3dbee9-e74a-4488-80b0-810e87c841e7 (::1) 1.240000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 352a7bf0-100c-4b25-a65f-c0d2925c10f4 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 352a7bf0-100c-4b25-a65f-c0d2925c10f4 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 209s await kernel_awaitable 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 209s result = await obj 209s ^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9d2c10cf-4276-4ead-ae80-2d919367ea6d (::1) 209s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9d2c10cf-4276-4ead-ae80-2d919367ea6d', version='HTTP/1.1', remote_ip='::1') 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 209s result = await result 209s ^^^^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 209s future.result() 209s ~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 209s yield maybe_future(sm.delete_session(session_id)) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 209s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 209s raise self._exception.with_traceback(self._exception_tb) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 209s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 209s raise km.ready.exception() # type: ignore[misc] 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 209s await kernel_awaitable 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 209s result = await obj 209s ^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s WARNING NotebookApp:handlers.py:612 Unhandled error 209s ERROR NotebookApp:log.py:55 { 209s "Host": "localhost:12341", 209s "Accept": "*/*", 209s "User-Agent": "python-requests/2.32.5" 209s } 209s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/9d2c10cf-4276-4ead-ae80-2d919367ea6d (::1) 3.540000ms referer=None 209s --------------------------- Captured stderr teardown --------------------------- 209s Traceback (most recent call last): 209s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 209s return _run_code(code, main_globals, None, 209s "__main__", mod_spec) 209s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 209s exec(code, run_globals) 209s ~~~~^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 209s from pathlib import Path 209s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 209s from ._abc import * 209s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 209s from glob import _Globber, _no_recurse_symlinks 209s File "/usr/lib/python3.13/glob.py", line 5, in 209s import re 209s File "/usr/lib/python3.13/re/__init__.py", line 125, in 209s import enum 209s File "", line 1360, in _find_and_load 209s File "", line 1331, in _find_and_load_unlocked 209s File "", line 935, in _load_unlocked 209s File "", line 1019, in exec_module 209s File "", line 1152, in get_code 209s File "", line 781, in _compile_bytecode 209s KeyboardInterrupt 209s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 209s 209s self = 209s 209s def test_create_with_kernel_id(self): 209s # create a new kernel 209s r = self.request('POST', 'api/kernels') 209s r.raise_for_status() 209s kernel = r.json() 209s 209s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 209s self.assertEqual(resp.status_code, 201) 209s newsession = resp.json() 209s self.assertIn('id', newsession) 209s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 209s self.assertEqual(newsession['kernel']['id'], kernel['id']) 209s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 209s 209s sessions = self.sess_api.list().json() 209s > self.assertEqual(sessions, [newsession]) 209s E AssertionError: Lists differ: [{'id': '9d2c10cf-4276-4ead-ae80-2d919367ea6d', 'p[553 chars]ne}}] != [{'id': '588fad86-fd58-4260-ab43-cf5d027254ad', 'p[279 chars]ne}}] 209s E 209s E First differing element 0: 209s E {'id': '9d2c10cf-4276-4ead-ae80-2d919367ea6d', 'p[218 chars]: 0}} 209s E {'id': '588fad86-fd58-4260-ab43-cf5d027254ad', 'p[278 chars]one}} 209s E 209s E First list contains 1 additional elements. 209s E First extra element 1: 209s E {'id': '588fad86-fd58-4260-ab43-cf5d027254ad', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '35542014-dcff-44ba-bad0-87b92a1b6ae7', 'name': 'python3', 'last_activity': '2026-02-06T10:25:22.752521Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 209s E 209s E Diff is 830 characters long. Set self.maxDiff to None to see it. 209s 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 209s ----------------------------- Captured stderr call ----------------------------- 209s Traceback (most recent call last): 209s ------------------------------ Captured log call ------------------------------- 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1_6_pebk/runtime/kernel-35542014-dcff-44ba-bad0-87b92a1b6ae7.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44391 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33321 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: 35542014-dcff-44ba-bad0-87b92a1b6ae7, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.750000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.520000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.430000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.420000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 352a7bf0-100c-4b25-a65f-c0d2925c10f4 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 352a7bf0-100c-4b25-a65f-c0d2925c10f4 209s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/9d2c10cf-4276-4ead-ae80-2d919367ea6d (::1) 0.470000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 35542014-dcff-44ba-bad0-87b92a1b6ae7 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 35542014-dcff-44ba-bad0-87b92a1b6ae7 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 209s await kernel_awaitable 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 209s result = await obj 209s ^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/588fad86-fd58-4260-ab43-cf5d027254ad (::1) 209s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/588fad86-fd58-4260-ab43-cf5d027254ad', version='HTTP/1.1', remote_ip='::1') 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 209s result = await result 209s ^^^^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 209s future.result() 209s ~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 209s yield maybe_future(sm.delete_session(session_id)) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 209s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 209s raise self._exception.with_traceback(self._exception_tb) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 209s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 209s raise km.ready.exception() # type: ignore[misc] 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 209s await kernel_awaitable 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 209s result = await obj 209s ^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s WARNING NotebookApp:handlers.py:612 Unhandled error 209s ERROR NotebookApp:log.py:55 { 209s "Host": "localhost:12341", 209s "Accept": "*/*", 209s "User-Agent": "python-requests/2.32.5" 209s } 209s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/588fad86-fd58-4260-ab43-cf5d027254ad (::1) 3.820000ms referer=None 209s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 209s 209s @self.addCleanup 209s def cleanup_sessions(): 209s for session in self.sess_api.list().json(): 209s > self.sess_api.delete(session['id']) 209s 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 209s return self._req('DELETE', id) 209s ^^^^^^^^^^^^^^^^^^^^^^^ 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 209s response.raise_for_status() 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s 209s self = 209s 209s def raise_for_status(self): 209s """Raises :class:`HTTPError`, if one occurred.""" 209s 209s http_error_msg = "" 209s if isinstance(self.reason, bytes): 209s # We attempt to decode utf-8 first because some servers 209s # choose to localize their reason strings. If the string 209s # isn't utf-8, we fall back to iso-8859-1 for all other 209s # encodings. (See PR #3538) 209s try: 209s reason = self.reason.decode("utf-8") 209s except UnicodeDecodeError: 209s reason = self.reason.decode("iso-8859-1") 209s else: 209s reason = self.reason 209s 209s if 400 <= self.status_code < 500: 209s http_error_msg = ( 209s f"{self.status_code} Client Error: {reason} for url: {self.url}" 209s ) 209s 209s elif 500 <= self.status_code < 600: 209s http_error_msg = ( 209s f"{self.status_code} Server Error: {reason} for url: {self.url}" 209s ) 209s 209s if http_error_msg: 209s > raise HTTPError(http_error_msg, response=self) 209s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/588fad86-fd58-4260-ab43-cf5d027254ad 209s 209s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 209s ----------------------------- Captured stderr call ----------------------------- 209s Traceback (most recent call last): 209s ------------------------------ Captured log call ------------------------------- 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.540000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1_6_pebk/runtime/kernel-8688af73-3dcf-4b37-ae0a-47d9a74aa75c.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56987 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35619 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8688af73-3dcf-4b37-ae0a-47d9a74aa75c, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.010000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 35542014-dcff-44ba-bad0-87b92a1b6ae7 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 35542014-dcff-44ba-bad0-87b92a1b6ae7 209s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/588fad86-fd58-4260-ab43-cf5d027254ad (::1) 0.960000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.440000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.240000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8688af73-3dcf-4b37-ae0a-47d9a74aa75c 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8688af73-3dcf-4b37-ae0a-47d9a74aa75c 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 209s await kernel_awaitable 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 209s result = await obj 209s ^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/588fad86-fd58-4260-ab43-cf5d027254ad (::1) 209s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/588fad86-fd58-4260-ab43-cf5d027254ad', version='HTTP/1.1', remote_ip='::1') 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 209s result = await result 209s ^^^^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 209s future.result() 209s ~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 209s yield maybe_future(sm.delete_session(session_id)) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 209s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 209s raise self._exception.with_traceback(self._exception_tb) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 209s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 209s raise km.ready.exception() # type: ignore[misc] 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 209s await kernel_awaitable 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 209s result = await obj 209s ^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s WARNING NotebookApp:handlers.py:612 Unhandled error 209s ERROR NotebookApp:log.py:55 { 209s "Host": "localhost:12341", 209s "Accept": "*/*", 209s "User-Agent": "python-requests/2.32.5" 209s } 209s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/588fad86-fd58-4260-ab43-cf5d027254ad (::1) 3.970000ms referer=None 209s --------------------------- Captured stderr teardown --------------------------- 209s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 209s return _run_code(code, main_globals, None, 209s "__main__", mod_spec) 209s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 209s exec(code, run_globals) 209s ~~~~^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 209s from ipykernel import kernelapp as app 209s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 209s from .connect import * # noqa: F403 209s ^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 209s from subprocess import PIPE, Popen 209s File "", line 1360, in _find_and_load 209s File "", line 1331, in _find_and_load_unlocked 209s File "", line 935, in _load_unlocked 209s File "", line 1019, in exec_module 209s File "", line 1115, in get_code 209s File "", line 1214, in get_data 209s KeyboardInterrupt 209s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 209s 209s @self.addCleanup 209s def cleanup_sessions(): 209s for session in self.sess_api.list().json(): 209s > self.sess_api.delete(session['id']) 209s 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 209s return self._req('DELETE', id) 209s ^^^^^^^^^^^^^^^^^^^^^^^ 209s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 209s response.raise_for_status() 209s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209s 209s self = 209s 209s def raise_for_status(self): 209s """Raises :class:`HTTPError`, if one occurred.""" 209s 209s http_error_msg = "" 209s if isinstance(self.reason, bytes): 209s # We attempt to decode utf-8 first because some servers 209s # choose to localize their reason strings. If the string 209s # isn't utf-8, we fall back to iso-8859-1 for all other 209s # encodings. (See PR #3538) 209s try: 209s reason = self.reason.decode("utf-8") 209s except UnicodeDecodeError: 209s reason = self.reason.decode("iso-8859-1") 209s else: 209s reason = self.reason 209s 209s if 400 <= self.status_code < 500: 209s http_error_msg = ( 209s f"{self.status_code} Client Error: {reason} for url: {self.url}" 209s ) 209s 209s elif 500 <= self.status_code < 600: 209s http_error_msg = ( 209s f"{self.status_code} Server Error: {reason} for url: {self.url}" 209s ) 209s 209s if http_error_msg: 209s > raise HTTPError(http_error_msg, response=self) 209s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/588fad86-fd58-4260-ab43-cf5d027254ad 209s 209s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 209s ----------------------------- Captured stderr call ----------------------------- 209s Traceback (most recent call last): 209s ------------------------------ Captured log call ------------------------------- 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.580000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 209s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1_6_pebk/runtime/kernel-fec4056c-c079-4e3d-b226-2e97112fceff.json'] 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47613 209s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48263 209s INFO NotebookApp:kernelmanager.py:179 Kernel started: fec4056c-c079-4e3d-b226-2e97112fceff, name: python3 209s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp1_6_pebk/notebooks/foo'} 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8688af73-3dcf-4b37-ae0a-47d9a74aa75c 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8688af73-3dcf-4b37-ae0a-47d9a74aa75c 209s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/588fad86-fd58-4260-ab43-cf5d027254ad (::1) 14.250000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.470000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.440000ms 209s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 209s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fec4056c-c079-4e3d-b226-2e97112fceff 209s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fec4056c-c079-4e3d-b226-2e97112fceff 209s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 209s await kernel_awaitable 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 209s result = await obj 209s ^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/588fad86-fd58-4260-ab43-cf5d027254ad (::1) 209s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/588fad86-fd58-4260-ab43-cf5d027254ad', version='HTTP/1.1', remote_ip='::1') 209s Traceback (most recent call last): 209s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 209s result = await result 209s ^^^^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 209s future.result() 209s ~~~~~~~~~~~~~^^ 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 209s yield maybe_future(sm.delete_session(session_id)) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 209s yielded = self.gen.throw(exc) 209s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 209s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 209s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 209s value = future.result() 209s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 209s raise self._exception.with_traceback(self._exception_tb) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 209s result = coro.send(None) 209s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 209s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 209s raise km.ready.exception() # type: ignore[misc] 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 209s await kernel_awaitable 209s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 209s result = await obj 209s ^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 209s raise e 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 209s out = await method(self, *args, **kwargs) 209s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 209s await self._async_finish_shutdown(restart=restart) 209s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 209s await asyncio.wait_for( 209s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 209s ) 209s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 209s async with timeouts.timeout(timeout): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^ 209s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 209s raise RuntimeError("Timeout should be used inside a task") 209s RuntimeError: Timeout should be used inside a task 209s WARNING NotebookApp:handlers.py:612 Unhandled error 209s --------------------------- Captured stderr teardown --------------------------- 209s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 209s return _run_code(code, main_globals, None, 209s "__main__", mod_spec) 209s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 209s exec(code, run_globals) 209s ~~~~^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 209s from ipykernel import kernelapp as app 209s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 209s from .connect import * # noqa: F403 209s ^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 209s from subprocess import PIPE, Popen 209s File "", line 1360, in _find_and_load 209s File "", line 1331, in _find_and_load_unlocked 209s File "", line 935, in _load_unlocked 209s File "", line 1019, in exec_module 209s File "", line 1152, in get_code 209s File "", line 781, in _compile_bytecode 209s KeyboardInterrupt 209s =============================== warnings summary =============================== 209s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 209s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 209s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 209s return LooseVersion(v) >= LooseVersion(check) 209s 209s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 209s services/kernels/tests/test_kernels_api.py: 71 warnings 209s services/sessions/tests/test_sessions_api.py: 96 warnings 209s /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). 209s dt = unaware(*args, **kwargs) 209s 209s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 209s /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 209s pytestmark = pytest.mark.integration_tests 209s 209s services/kernels/tests/test_kernels_api.py: 6 warnings 209s services/sessions/tests/test_sessions_api.py: 6 warnings 209s /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 209s policy = events.get_event_loop_policy() 209s 209s services/kernels/tests/test_kernels_api.py: 24 warnings 209s services/sessions/tests/test_sessions_api.py: 19 warnings 209s /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 209s loop = events.get_event_loop_policy().get_event_loop() 209s 209s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 209s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 209s loop.make_current() 209s 209s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 209s =========================== short test summary info ============================ 209s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 209s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 209s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 209s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 209s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 209s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 209s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 209s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 209s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 209s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 209s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 209s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 209s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 209s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 209s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 209s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 209s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 209s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 209s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 209s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 209s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 209s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 209s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 209s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 209s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 209s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 209s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 209s ===== 23 failed, 2 passed, 305 deselected, 227 warnings, 4 errors in 3.61s ===== 209s *** END OF RUN 3: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 209s *** STARTING RUN 4: python3.14 -m pytest --pyargs notebook -rfE --last-failed --last-failed-no-failures none --ignore=/usr/lib/python3/dist-packages/notebook/tests/selenium --deselect=services/kernels/tests/test_kernels_api.py::KernelAPITest::test_connections 211s ============================= test session starts ============================== 211s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 211s rootdir: /tmp/autopkgtest.g9YpMG/autopkgtest_tmp 211s plugins: typeguard-4.4.4 211s collected 330 items / 307 deselected / 23 selected 211s run-last-failure: rerun previous 23 failures 211s 212s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 39%] 213s services/sessions/tests/test_sessions_api.py FFFFFEFFFFFFFEFF [100%] 213s 213s ==================================== ERRORS ==================================== 213s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 213s 213s self = 213s 213s def tearDown(self): 213s for k in self.kern_api.list().json(): 213s > self.kern_api.shutdown(k['id']) 213s 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 213s return self._req('DELETE', id) 213s ^^^^^^^^^^^^^^^^^^^^^^^ 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 213s response.raise_for_status() 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s 213s self = 213s 213s def raise_for_status(self): 213s """Raises :class:`HTTPError`, if one occurred.""" 213s 213s http_error_msg = "" 213s if isinstance(self.reason, bytes): 213s # We attempt to decode utf-8 first because some servers 213s # choose to localize their reason strings. If the string 213s # isn't utf-8, we fall back to iso-8859-1 for all other 213s # encodings. (See PR #3538) 213s try: 213s reason = self.reason.decode("utf-8") 213s except UnicodeDecodeError: 213s reason = self.reason.decode("iso-8859-1") 213s else: 213s reason = self.reason 213s 213s if 400 <= self.status_code < 500: 213s http_error_msg = ( 213s f"{self.status_code} Client Error: {reason} for url: {self.url}" 213s ) 213s 213s elif 500 <= self.status_code < 600: 213s http_error_msg = ( 213s f"{self.status_code} Server Error: {reason} for url: {self.url}" 213s ) 213s 213s if http_error_msg: 213s > raise HTTPError(http_error_msg, response=self) 213s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/641fc144-2a55-46f2-85bb-25e49b465205 213s 213s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 213s ----------------------------- Captured stderr call ----------------------------- 213s Traceback (most recent call last): 213s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 213s return _run_code(code, main_globals, None, 213s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 213s exec(code, run_globals) 213s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 213s from pathlib import Path 213s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 213s from ._abc import * 213s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 213s from glob import _Globber, _no_recurse_symlinks 213s File "/usr/lib/python3.13/glob.py", line 5, in 213s import re 213s File "/usr/lib/python3.13/re/__init__.py", line 126, in 213s from . import _compiler, _parser 213s File "", line 1360, in _find_and_load 213s File "", line 1322, in _find_and_load_unlocked 213s File "", line 1262, in _find_spec 213s File "", line 1556, in find_spec 213s File "", line 1530, in _get_spec 213s File "", line 1662, in find_spec 213s File "", line 166, in _path_isfile 213s File "", line 158, in _path_is_mode_type 213s File "", line 152, in _path_stat 213s KeyboardInterrupt 213s Traceback (most recent call last): 213s ------------------------------ Captured log call ------------------------------- 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpkpv7exs1/runtime/kernel-641fc144-2a55-46f2-85bb-25e49b465205.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54611 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45055 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: 641fc144-2a55-46f2-85bb-25e49b465205, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.080000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpkpv7exs1/runtime/kernel-481be9c9-f107-4586-934c-69c8ab4c8826.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49653 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41621 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: 481be9c9-f107-4586-934c-69c8ab4c8826, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.100000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 3.730000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 481be9c9-f107-4586-934c-69c8ab4c8826 213s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/481be9c9-f107-4586-934c-69c8ab4c8826/interrupt (::1) 0.610000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 213s yield maybe_future(km.restart_kernel(kernel_id)) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 213s raise self._exception.with_traceback(self._exception_tb) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 213s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 213s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 213s return _runner_map[name].run(inner) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 213s return fut.result(None) 213s ~~~~~~~~~~^^^^^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 213s return self.__get_result() 213s ~~~~~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 213s raise self._exception 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 213s await ensure_async(kernel.restart_kernel(now=now)) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 213s return _runner_map[name].run(inner) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 213s return fut.result(None) 213s ~~~~~~~~~~^^^^^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 213s return self.__get_result() 213s ~~~~~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 213s raise self._exception 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 213s await self._async_shutdown_kernel(now=now, restart=True) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:log.py:55 { 213s "Host": "localhost:12341", 213s "Accept": "*/*", 213s "User-Agent": "python-requests/2.32.5" 213s } 213s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/481be9c9-f107-4586-934c-69c8ab4c8826/restart (::1) 2.650000ms referer=None 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.430000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 641fc144-2a55-46f2-85bb-25e49b465205 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 641fc144-2a55-46f2-85bb-25e49b465205 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/641fc144-2a55-46f2-85bb-25e49b465205 (::1) 213s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/641fc144-2a55-46f2-85bb-25e49b465205', version='HTTP/1.1', remote_ip='::1') 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 213s result = await result 213s ^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 213s yielded = ctx_run(next, result) 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 213s yield maybe_future(km.shutdown_kernel(kernel_id)) 213s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 213s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 213s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 213s return _runner_map[name].run(inner) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 213s return fut.result(None) 213s ~~~~~~~~~~^^^^^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 213s return self.__get_result() 213s ~~~~~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 213s raise self._exception 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 213s stopper = ensure_async(km.shutdown_kernel(now, restart)) 213s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 213s return _runner_map[name].run(inner) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 213s return fut.result(None) 213s ~~~~~~~~~~^^^^^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 213s return self.__get_result() 213s ~~~~~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 213s raise self._exception 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s WARNING NotebookApp:handlers.py:612 Unhandled error 213s ERROR NotebookApp:log.py:55 { 213s "Host": "localhost:12341", 213s "Accept": "*/*", 213s "User-Agent": "python-requests/2.32.5" 213s } 213s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/641fc144-2a55-46f2-85bb-25e49b465205 (::1) 4.290000ms referer=None 213s --------------------------- Captured stderr teardown --------------------------- 213s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 213s return _run_code(code, main_globals, None, 213s "__main__", mod_spec) 213s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 213s exec(code, run_globals) 213s ~~~~^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 213s from ipykernel import kernelapp as app 213s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 213s from .connect import * # noqa: F403 213s ^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 213s import jupyter_client 213s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 213s from .asynchronous import AsyncKernelClient 213s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 213s from .client import AsyncKernelClient # noqa 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 213s import zmq.asyncio 213s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 213s import asyncio 213s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 213s from .base_events import * 213s File "/usr/lib/python3.13/asyncio/base_events.py", line 39, in 213s from . import coroutines 213s File "/usr/lib/python3.13/asyncio/coroutines.py", line 4, in 213s import inspect 213s File "/usr/lib/python3.13/inspect.py", line 155, in 213s import tokenize 213s File "/usr/lib/python3.13/tokenize.py", line 35, in 213s from token import * 213s File "", line 1360, in _find_and_load 213s File "", line 1322, in _find_and_load_unlocked 213s File "", line 1256, in _find_spec 213s File "", line 1226, in __exit__ 213s KeyboardInterrupt 213s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 213s 213s self = 213s 213s def tearDown(self): 213s for k in self.kern_api.list().json(): 213s > self.kern_api.shutdown(k['id']) 213s 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 213s return self._req('DELETE', id) 213s ^^^^^^^^^^^^^^^^^^^^^^^ 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 213s response.raise_for_status() 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s 213s self = 213s 213s def raise_for_status(self): 213s """Raises :class:`HTTPError`, if one occurred.""" 213s 213s http_error_msg = "" 213s if isinstance(self.reason, bytes): 213s # We attempt to decode utf-8 first because some servers 213s # choose to localize their reason strings. If the string 213s # isn't utf-8, we fall back to iso-8859-1 for all other 213s # encodings. (See PR #3538) 213s try: 213s reason = self.reason.decode("utf-8") 213s except UnicodeDecodeError: 213s reason = self.reason.decode("iso-8859-1") 213s else: 213s reason = self.reason 213s 213s if 400 <= self.status_code < 500: 213s http_error_msg = ( 213s f"{self.status_code} Client Error: {reason} for url: {self.url}" 213s ) 213s 213s elif 500 <= self.status_code < 600: 213s http_error_msg = ( 213s f"{self.status_code} Server Error: {reason} for url: {self.url}" 213s ) 213s 213s if http_error_msg: 213s > raise HTTPError(http_error_msg, response=self) 213s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/fed1f3ce-d29b-4af6-be4c-2eb91a04e297 213s 213s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 213s ----------------------------- Captured stderr call ----------------------------- 213s Traceback (most recent call last): 213s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 213s return _run_code(code, main_globals, None, 213s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 213s exec(code, run_globals) 213s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 213s from ipykernel import kernelapp as app 213s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 213s from ._version import ( 213s File "", line 1360, in _find_and_load 213s File "", line 1339, in _find_and_load_unlocked 213s KeyboardInterrupt 213s Traceback (most recent call last): 213s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 213s return _run_code(code, main_globals, None, 213s "__main__", mod_spec) 213s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 213s exec(code, run_globals) 213s ~~~~^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 213s from ipykernel import kernelapp as app 213s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 213s from .connect import * # noqa: F403 213s ^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 213s import jupyter_client 213s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 213s from .asynchronous import AsyncKernelClient 213s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 213s from .client import AsyncKernelClient # noqa 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 213s import zmq.asyncio 213s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 213s import asyncio 213s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 213s from .base_events import * 213s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 213s import ssl 213s File "/usr/lib/python3.13/ssl.py", line 263, in 213s import base64 # for DER-to-PEM translation 213s ^^^^^^^^^^^^^ 213s File "", line 1360, in _find_and_load 213s File "", line 1331, in _find_and_load_unlocked 213s File "", line 921, in _load_unlocked 213s File "", line 819, in module_from_spec 213s File "", line 797, in _init_module_attrs 213s KeyboardInterrupt 213s ------------------------------ Captured log call ------------------------------- 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpt60f7z4c/runtime/kernel-fed1f3ce-d29b-4af6-be4c-2eb91a04e297.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39777 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55489 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: fed1f3ce-d29b-4af6-be4c-2eb91a04e297, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.130000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.380000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpt60f7z4c/runtime/kernel-c5ba3c60-c73d-4291-a16b-75d38b3b7603.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53761 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50597 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: c5ba3c60-c73d-4291-a16b-75d38b3b7603, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.870000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.460000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: c5ba3c60-c73d-4291-a16b-75d38b3b7603 213s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/c5ba3c60-c73d-4291-a16b-75d38b3b7603/interrupt (::1) 0.450000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 213s yield maybe_future(km.restart_kernel(kernel_id)) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 213s raise self._exception.with_traceback(self._exception_tb) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 213s result = coro.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 213s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 213s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 213s yield self # This tells Task to wait for completion. 213s ^^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 213s future.result() 213s ~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 213s raise self._exception.with_traceback(self._exception_tb) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 213s await ensure_async(kernel.restart_kernel(now=now)) 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 213s result = await obj 213s ^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 213s await self._async_shutdown_kernel(now=now, restart=True) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:log.py:55 { 213s "Host": "localhost:12341", 213s "Accept": "*/*", 213s "User-Agent": "python-requests/2.32.5" 213s } 213s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/c5ba3c60-c73d-4291-a16b-75d38b3b7603/restart (::1) 4.090000ms referer=None 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.440000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fed1f3ce-d29b-4af6-be4c-2eb91a04e297 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fed1f3ce-d29b-4af6-be4c-2eb91a04e297 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 213s await kernel_awaitable 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 213s result = await obj 213s ^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/fed1f3ce-d29b-4af6-be4c-2eb91a04e297 (::1) 213s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/fed1f3ce-d29b-4af6-be4c-2eb91a04e297', version='HTTP/1.1', remote_ip='::1') 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 213s result = await result 213s ^^^^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 213s future.result() 213s ~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 213s yield maybe_future(km.shutdown_kernel(kernel_id)) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 213s raise self._exception.with_traceback(self._exception_tb) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 213s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 213s raise km.ready.exception() # type: ignore[misc] 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 213s await kernel_awaitable 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 213s result = await obj 213s ^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s WARNING NotebookApp:handlers.py:612 Unhandled error 213s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 213s 213s @self.addCleanup 213s def cleanup_sessions(): 213s for session in self.sess_api.list().json(): 213s > self.sess_api.delete(session['id']) 213s 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 213s return self._req('DELETE', id) 213s ^^^^^^^^^^^^^^^^^^^^^^^ 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 213s response.raise_for_status() 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s 213s self = 213s 213s def raise_for_status(self): 213s """Raises :class:`HTTPError`, if one occurred.""" 213s 213s http_error_msg = "" 213s if isinstance(self.reason, bytes): 213s # We attempt to decode utf-8 first because some servers 213s # choose to localize their reason strings. If the string 213s # isn't utf-8, we fall back to iso-8859-1 for all other 213s # encodings. (See PR #3538) 213s try: 213s reason = self.reason.decode("utf-8") 213s except UnicodeDecodeError: 213s reason = self.reason.decode("iso-8859-1") 213s else: 213s reason = self.reason 213s 213s if 400 <= self.status_code < 500: 213s http_error_msg = ( 213s f"{self.status_code} Client Error: {reason} for url: {self.url}" 213s ) 213s 213s elif 500 <= self.status_code < 600: 213s http_error_msg = ( 213s f"{self.status_code} Server Error: {reason} for url: {self.url}" 213s ) 213s 213s if http_error_msg: 213s > raise HTTPError(http_error_msg, response=self) 213s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7f9cd524-b84d-4d1c-b204-aab9c43bdd2f 213s 213s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 213s ----------------------------- Captured stderr call ----------------------------- 213s Traceback (most recent call last): 213s ------------------------------ Captured log call ------------------------------- 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpflewnbkn/runtime/kernel-ff221408-2fa8-4324-bd1c-25c2380cb91a.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43223 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58877 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: ff221408-2fa8-4324-bd1c-25c2380cb91a, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.710000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.560000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.950000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.470000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0296fbda-e47d-4678-8614-1723fa881d0d 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0296fbda-e47d-4678-8614-1723fa881d0d 213s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/0a405052-7448-4d77-b1bc-a7d8e5adc4ed (::1) 1.270000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ff221408-2fa8-4324-bd1c-25c2380cb91a 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ff221408-2fa8-4324-bd1c-25c2380cb91a 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7f9cd524-b84d-4d1c-b204-aab9c43bdd2f (::1) 213s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7f9cd524-b84d-4d1c-b204-aab9c43bdd2f', version='HTTP/1.1', remote_ip='::1') 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 213s result = await result 213s ^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 213s yield maybe_future(sm.delete_session(session_id)) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 213s yielded = self.gen.send(value) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 213s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 213s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 213s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 213s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 213s return _runner_map[name].run(inner) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 213s return fut.result(None) 213s ~~~~~~~~~~^^^^^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 213s return self.__get_result() 213s ~~~~~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 213s raise self._exception 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 213s stopper = ensure_async(km.shutdown_kernel(now, restart)) 213s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 213s return _runner_map[name].run(inner) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 213s return fut.result(None) 213s ~~~~~~~~~~^^^^^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 213s return self.__get_result() 213s ~~~~~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 213s raise self._exception 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s WARNING NotebookApp:handlers.py:612 Unhandled error 213s ERROR NotebookApp:log.py:55 { 213s "Host": "localhost:12341", 213s "Accept": "*/*", 213s "User-Agent": "python-requests/2.32.5" 213s } 213s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/7f9cd524-b84d-4d1c-b204-aab9c43bdd2f (::1) 4.320000ms referer=None 213s --------------------------- Captured stderr teardown --------------------------- 213s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 213s return _run_code(code, main_globals, None, 213s "__main__", mod_spec) 213s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 213s exec(code, run_globals) 213s ~~~~^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 213s from ipykernel import kernelapp as app 213s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 213s from .connect import * # noqa: F403 213s ^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 213s import jupyter_client 213s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 3, in 213s from ._version import __version__, protocol_version, protocol_version_info, version_info 213s File "/usr/lib/python3/dist-packages/jupyter_client/_version.py", line 12, in 213s parts: list[Union[int, str]] = [int(match[part]) for part in ["major", "minor", "patch"]] 213s ~~~~~^^^^^^^^^^ 213s File "/usr/lib/python3.13/typing.py", line 429, in inner 213s return _caches[func](*args, **kwds) 213s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3.13/typing.py", line 576, in __getitem__ 213s return self._getitem(self, parameters) 213s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3.13/typing.py", line 789, in Union 213s parameters = tuple(_type_check(p, msg) for p in parameters) 213s File "/usr/lib/python3.13/typing.py", line 789, in 213s parameters = tuple(_type_check(p, msg) for p in parameters) 213s ~~~~~~~~~~~^^^^^^^^ 213s KeyboardInterrupt 213s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 213s 213s @self.addCleanup 213s def cleanup_sessions(): 213s for session in self.sess_api.list().json(): 213s > self.sess_api.delete(session['id']) 213s 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 213s return self._req('DELETE', id) 213s ^^^^^^^^^^^^^^^^^^^^^^^ 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 213s response.raise_for_status() 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s 213s self = 213s 213s def raise_for_status(self): 213s """Raises :class:`HTTPError`, if one occurred.""" 213s 213s http_error_msg = "" 213s if isinstance(self.reason, bytes): 213s # We attempt to decode utf-8 first because some servers 213s # choose to localize their reason strings. If the string 213s # isn't utf-8, we fall back to iso-8859-1 for all other 213s # encodings. (See PR #3538) 213s try: 213s reason = self.reason.decode("utf-8") 213s except UnicodeDecodeError: 213s reason = self.reason.decode("iso-8859-1") 213s else: 213s reason = self.reason 213s 213s if 400 <= self.status_code < 500: 213s http_error_msg = ( 213s f"{self.status_code} Client Error: {reason} for url: {self.url}" 213s ) 213s 213s elif 500 <= self.status_code < 600: 213s http_error_msg = ( 213s f"{self.status_code} Server Error: {reason} for url: {self.url}" 213s ) 213s 213s if http_error_msg: 213s > raise HTTPError(http_error_msg, response=self) 213s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/de1d4be7-0ca0-4707-98cb-d9d27927d928 213s 213s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 213s ----------------------------- Captured stderr call ----------------------------- 213s Traceback (most recent call last): 213s ------------------------------ Captured log call ------------------------------- 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpw4i_19l1/runtime/kernel-a905df61-1eb9-4281-b0aa-6cce87f07a17.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55553 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42521 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: a905df61-1eb9-4281-b0aa-6cce87f07a17, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.900000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.520000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.640000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.370000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eb23908b-26bd-4890-add5-64c8d216a9ce 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eb23908b-26bd-4890-add5-64c8d216a9ce 213s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/21ae9195-9a64-4528-88a4-57eba8be2ce6 (::1) 1.180000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a905df61-1eb9-4281-b0aa-6cce87f07a17 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a905df61-1eb9-4281-b0aa-6cce87f07a17 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 213s await kernel_awaitable 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 213s result = await obj 213s ^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/de1d4be7-0ca0-4707-98cb-d9d27927d928 (::1) 213s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/de1d4be7-0ca0-4707-98cb-d9d27927d928', version='HTTP/1.1', remote_ip='::1') 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 213s result = await result 213s ^^^^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 213s future.result() 213s ~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 213s yield maybe_future(sm.delete_session(session_id)) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 213s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 213s raise self._exception.with_traceback(self._exception_tb) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 213s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 213s raise km.ready.exception() # type: ignore[misc] 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 213s await kernel_awaitable 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 213s result = await obj 213s ^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s WARNING NotebookApp:handlers.py:612 Unhandled error 213s --------------------------- Captured stderr teardown --------------------------- 213s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 213s return _run_code(code, main_globals, None, 213s "__main__", mod_spec) 213s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 213s exec(code, run_globals) 213s ~~~~^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 213s from ipykernel import kernelapp as app 213s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 213s from .connect import * # noqa: F403 213s ^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 213s from subprocess import PIPE, Popen 213s File "/usr/lib/python3.13/subprocess.py", line 51, in 213s import threading 213s File "/usr/lib/python3.13/threading.py", line 9, in 213s from _weakrefset import WeakSet 213s File "", line 1360, in _find_and_load 213s File "", line 1331, in _find_and_load_unlocked 213s File "", line 935, in _load_unlocked 213s File "", line 1019, in exec_module 213s File "", line 1152, in get_code 213s File "", line 781, in _compile_bytecode 213s KeyboardInterrupt 213s =================================== FAILURES =================================== 213s ______________________ KernelAPITest.test_default_kernel _______________________ 213s 213s self = 213s 213s def tearDown(self): 213s for k in self.kern_api.list().json(): 213s > self.kern_api.shutdown(k['id']) 213s 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 213s return self._req('DELETE', id) 213s ^^^^^^^^^^^^^^^^^^^^^^^ 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 213s response.raise_for_status() 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s 213s self = 213s 213s def raise_for_status(self): 213s """Raises :class:`HTTPError`, if one occurred.""" 213s 213s http_error_msg = "" 213s if isinstance(self.reason, bytes): 213s # We attempt to decode utf-8 first because some servers 213s # choose to localize their reason strings. If the string 213s # isn't utf-8, we fall back to iso-8859-1 for all other 213s # encodings. (See PR #3538) 213s try: 213s reason = self.reason.decode("utf-8") 213s except UnicodeDecodeError: 213s reason = self.reason.decode("iso-8859-1") 213s else: 213s reason = self.reason 213s 213s if 400 <= self.status_code < 500: 213s http_error_msg = ( 213s f"{self.status_code} Client Error: {reason} for url: {self.url}" 213s ) 213s 213s elif 500 <= self.status_code < 600: 213s http_error_msg = ( 213s f"{self.status_code} Server Error: {reason} for url: {self.url}" 213s ) 213s 213s if http_error_msg: 213s > raise HTTPError(http_error_msg, response=self) 213s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/9b060597-4a7c-4089-90dd-ef3df1fdd056 213s 213s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 213s ------------------------------ Captured log setup ------------------------------ 213s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpkpv7exs1/config', '/tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpkpv7exs1/etc/jupyter'] for config files 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpkpv7exs1/etc/jupyter 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpkpv7exs1/config 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpkpv7exs1/etc/jupyter 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpkpv7exs1/config 213s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpkpv7exs1/notebooks 213s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 213s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 213s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 213s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 213s WARNING NotebookApp:handlers.py:612 Forbidden 213s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.030000ms referer=None 213s ----------------------------- Captured stderr call ----------------------------- 213s Traceback (most recent call last): 213s ------------------------------ Captured log call ------------------------------- 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpkpv7exs1/runtime/kernel-9b060597-4a7c-4089-90dd-ef3df1fdd056.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45227 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42519 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9b060597-4a7c-4089-90dd-ef3df1fdd056, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 32.490000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.550000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9b060597-4a7c-4089-90dd-ef3df1fdd056 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9b060597-4a7c-4089-90dd-ef3df1fdd056 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/9b060597-4a7c-4089-90dd-ef3df1fdd056 (::1) 213s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/9b060597-4a7c-4089-90dd-ef3df1fdd056', version='HTTP/1.1', remote_ip='::1') 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 213s result = await result 213s ^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 213s yielded = ctx_run(next, result) 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 213s yield maybe_future(km.shutdown_kernel(kernel_id)) 213s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 213s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 213s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 213s return _runner_map[name].run(inner) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 213s return fut.result(None) 213s ~~~~~~~~~~^^^^^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 213s return self.__get_result() 213s ~~~~~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 213s raise self._exception 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 213s stopper = ensure_async(km.shutdown_kernel(now, restart)) 213s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 213s return _runner_map[name].run(inner) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 213s return fut.result(None) 213s ~~~~~~~~~~^^^^^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 213s return self.__get_result() 213s ~~~~~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 213s raise self._exception 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s WARNING NotebookApp:handlers.py:612 Unhandled error 213s --------------------------- Captured stderr teardown --------------------------- 213s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 213s return _run_code(code, main_globals, None, 213s "__main__", mod_spec) 213s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 213s exec(code, run_globals) 213s ~~~~^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 213s from pathlib import Path 213s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 213s from ._local import * 213s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 213s class PureWindowsPath(PurePath): 213s ...<7 lines>... 213s __slots__ = () 213s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 213s import ntpath 213s File "/usr/lib/python3.13/ntpath.py", line 861, in 213s from nt import _path_isdevdrive 213s File "", line 1360, in _find_and_load 213s File "", line 1322, in _find_and_load_unlocked 213s File "", line 1262, in _find_spec 213s File "", line 1556, in find_spec 213s File "", line 1530, in _get_spec 213s File "", line 1657, in find_spec 213s File "", line 133, in _path_join 213s KeyboardInterrupt 213s ______________________ KernelAPITest.test_kernel_handler _______________________ 213s 213s self = 213s 213s def test_kernel_handler(self): 213s # GET kernel with given id 213s kid = self.kern_api.start().json()['id'] 213s r = self.kern_api.get(kid) 213s kern1 = r.json() 213s self.assertEqual(r.status_code, 200) 213s assert isinstance(kern1, dict) 213s self.assertIn('id', kern1) 213s self.assertEqual(kern1['id'], kid) 213s 213s # Request a bad kernel id and check that a JSON 213s # message is returned! 213s bad_id = '111-111-111-111-111' 213s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 213s self.kern_api.get(bad_id) 213s 213s # DELETE kernel with id 213s > r = self.kern_api.shutdown(kid) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 213s return self._req('DELETE', id) 213s ^^^^^^^^^^^^^^^^^^^^^^^ 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 213s response.raise_for_status() 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s 213s self = 213s 213s def raise_for_status(self): 213s """Raises :class:`HTTPError`, if one occurred.""" 213s 213s http_error_msg = "" 213s if isinstance(self.reason, bytes): 213s # We attempt to decode utf-8 first because some servers 213s # choose to localize their reason strings. If the string 213s # isn't utf-8, we fall back to iso-8859-1 for all other 213s # encodings. (See PR #3538) 213s try: 213s reason = self.reason.decode("utf-8") 213s except UnicodeDecodeError: 213s reason = self.reason.decode("iso-8859-1") 213s else: 213s reason = self.reason 213s 213s if 400 <= self.status_code < 500: 213s http_error_msg = ( 213s f"{self.status_code} Client Error: {reason} for url: {self.url}" 213s ) 213s 213s elif 500 <= self.status_code < 600: 213s http_error_msg = ( 213s f"{self.status_code} Server Error: {reason} for url: {self.url}" 213s ) 213s 213s if http_error_msg: 213s > raise HTTPError(http_error_msg, response=self) 213s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/dc696ef9-3d52-405f-8387-1a597188e6ea 213s 213s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 213s ----------------------------- Captured stderr call ----------------------------- 213s Traceback (most recent call last): 213s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 213s return _run_code(code, main_globals, None, 213s "__main__", mod_spec) 213s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 213s exec(code, run_globals) 213s ~~~~^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 213s from ipykernel import kernelapp as app 213s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 213s from ._version import ( 213s ...<4 lines>... 213s ) 213s File "/usr/lib/python3/dist-packages/ipykernel/_version.py", line 11, in 213s match = re.match(pattern, __version__) 213s File "/usr/lib/python3.13/re/__init__.py", line 167, in match 213s return _compile(pattern, flags).match(string) 213s ~~~~~~~~^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 213s p = _compiler.compile(pattern, flags) 213s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 213s code = _code(p, flags) 213s File "/usr/lib/python3.13/re/_compiler.py", line 582, in _code 213s _compile_info(code, p, flags) 213s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3.13/re/_compiler.py", line 533, in _compile_info 213s charset = _get_charset_prefix(pattern, flags) 213s File "/usr/lib/python3.13/re/_compiler.py", line 478, in _get_charset_prefix 213s flags = _combine_flags(flags, add_flags, del_flags) 213s File "/usr/lib/python3.13/re/_compiler.py", line 31, in _combine_flags 213s def _combine_flags(flags, add_flags, del_flags, 213s 213s KeyboardInterrupt 213s ------------------------------ Captured log call ------------------------------- 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpkpv7exs1/runtime/kernel-dc696ef9-3d52-405f-8387-1a597188e6ea.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57589 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56929 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: dc696ef9-3d52-405f-8387-1a597188e6ea, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.820000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/dc696ef9-3d52-405f-8387-1a597188e6ea (::1) 0.450000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s 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 213s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 213s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 1.250000ms referer=None 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dc696ef9-3d52-405f-8387-1a597188e6ea 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dc696ef9-3d52-405f-8387-1a597188e6ea 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/dc696ef9-3d52-405f-8387-1a597188e6ea (::1) 213s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/dc696ef9-3d52-405f-8387-1a597188e6ea', version='HTTP/1.1', remote_ip='::1') 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 213s result = await result 213s ^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 213s yielded = ctx_run(next, result) 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 213s yield maybe_future(km.shutdown_kernel(kernel_id)) 213s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 213s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 213s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 213s return _runner_map[name].run(inner) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 213s return fut.result(None) 213s ~~~~~~~~~~^^^^^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 213s return self.__get_result() 213s ~~~~~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 213s raise self._exception 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 213s stopper = ensure_async(km.shutdown_kernel(now, restart)) 213s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 213s return _runner_map[name].run(inner) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 213s return fut.result(None) 213s ~~~~~~~~~~^^^^^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 213s return self.__get_result() 213s ~~~~~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 213s raise self._exception 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s WARNING NotebookApp:handlers.py:612 Unhandled error 213s ERROR NotebookApp:log.py:55 { 213s "Host": "localhost:12341", 213s "Accept": "*/*", 213s "User-Agent": "python-requests/2.32.5" 213s } 213s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/dc696ef9-3d52-405f-8387-1a597188e6ea (::1) 5.440000ms referer=None 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9b060597-4a7c-4089-90dd-ef3df1fdd056 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9b060597-4a7c-4089-90dd-ef3df1fdd056 213s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/9b060597-4a7c-4089-90dd-ef3df1fdd056 (::1) 0.540000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dc696ef9-3d52-405f-8387-1a597188e6ea 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dc696ef9-3d52-405f-8387-1a597188e6ea 213s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 213s 213s self = 213s 213s def test_main_kernel_handler(self): 213s # POST request 213s r = self.kern_api.start() 213s kern1 = r.json() 213s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 213s self.assertEqual(r.status_code, 201) 213s self.assertIsInstance(kern1, dict) 213s 213s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 213s expected_csp = '; '.join([ 213s "frame-ancestors 'self'", 213s 'report-uri ' + report_uri, 213s "default-src 'none'" 213s ]) 213s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 213s 213s # GET request 213s r = self.kern_api.list() 213s self.assertEqual(r.status_code, 200) 213s assert isinstance(r.json(), list) 213s self.assertEqual(r.json()[0]['id'], kern1['id']) 213s self.assertEqual(r.json()[0]['name'], kern1['name']) 213s 213s # create another kernel and check that they both are added to the 213s # list of kernels from a GET request 213s kern2 = self.kern_api.start().json() 213s assert isinstance(kern2, dict) 213s r = self.kern_api.list() 213s kernels = r.json() 213s self.assertEqual(r.status_code, 200) 213s assert isinstance(kernels, list) 213s self.assertEqual(len(kernels), 2) 213s 213s # Interrupt a kernel 213s r = self.kern_api.interrupt(kern2['id']) 213s self.assertEqual(r.status_code, 204) 213s 213s # Restart a kernel 213s > r = self.kern_api.restart(kern2['id']) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 213s return self._req('POST', url_path_join(id, 'restart')) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 213s response.raise_for_status() 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s 213s self = 213s 213s def raise_for_status(self): 213s """Raises :class:`HTTPError`, if one occurred.""" 213s 213s http_error_msg = "" 213s if isinstance(self.reason, bytes): 213s # We attempt to decode utf-8 first because some servers 213s # choose to localize their reason strings. If the string 213s # isn't utf-8, we fall back to iso-8859-1 for all other 213s # encodings. (See PR #3538) 213s try: 213s reason = self.reason.decode("utf-8") 213s except UnicodeDecodeError: 213s reason = self.reason.decode("iso-8859-1") 213s else: 213s reason = self.reason 213s 213s if 400 <= self.status_code < 500: 213s http_error_msg = ( 213s f"{self.status_code} Client Error: {reason} for url: {self.url}" 213s ) 213s 213s elif 500 <= self.status_code < 600: 213s http_error_msg = ( 213s f"{self.status_code} Server Error: {reason} for url: {self.url}" 213s ) 213s 213s if http_error_msg: 213s > raise HTTPError(http_error_msg, response=self) 213s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/481be9c9-f107-4586-934c-69c8ab4c8826/restart 213s 213s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 213s ----------------------------- Captured stderr call ----------------------------- 213s Traceback (most recent call last): 213s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 213s return _run_code(code, main_globals, None, 213s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 213s exec(code, run_globals) 213s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 213s from pathlib import Path 213s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 213s from ._abc import * 213s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 213s from glob import _Globber, _no_recurse_symlinks 213s File "/usr/lib/python3.13/glob.py", line 5, in 213s import re 213s File "/usr/lib/python3.13/re/__init__.py", line 126, in 213s from . import _compiler, _parser 213s File "", line 1360, in _find_and_load 213s File "", line 1322, in _find_and_load_unlocked 213s File "", line 1262, in _find_spec 213s File "", line 1556, in find_spec 213s File "", line 1530, in _get_spec 213s File "", line 1662, in find_spec 213s File "", line 166, in _path_isfile 213s File "", line 158, in _path_is_mode_type 213s File "", line 152, in _path_stat 213s KeyboardInterrupt 213s Traceback (most recent call last): 213s ------------------------------ Captured log call ------------------------------- 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpkpv7exs1/runtime/kernel-641fc144-2a55-46f2-85bb-25e49b465205.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54611 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45055 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: 641fc144-2a55-46f2-85bb-25e49b465205, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.080000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpkpv7exs1/runtime/kernel-481be9c9-f107-4586-934c-69c8ab4c8826.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49653 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41621 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: 481be9c9-f107-4586-934c-69c8ab4c8826, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.100000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 3.730000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 481be9c9-f107-4586-934c-69c8ab4c8826 213s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/481be9c9-f107-4586-934c-69c8ab4c8826/interrupt (::1) 0.610000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 213s yield maybe_future(km.restart_kernel(kernel_id)) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 213s raise self._exception.with_traceback(self._exception_tb) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 213s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 213s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 213s return _runner_map[name].run(inner) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 213s return fut.result(None) 213s ~~~~~~~~~~^^^^^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 213s return self.__get_result() 213s ~~~~~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 213s raise self._exception 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 213s await ensure_async(kernel.restart_kernel(now=now)) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 213s return _runner_map[name].run(inner) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 213s return fut.result(None) 213s ~~~~~~~~~~^^^^^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 213s return self.__get_result() 213s ~~~~~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 213s raise self._exception 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 213s await self._async_shutdown_kernel(now=now, restart=True) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:log.py:55 { 213s "Host": "localhost:12341", 213s "Accept": "*/*", 213s "User-Agent": "python-requests/2.32.5" 213s } 213s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/481be9c9-f107-4586-934c-69c8ab4c8826/restart (::1) 2.650000ms referer=None 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.430000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 641fc144-2a55-46f2-85bb-25e49b465205 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 641fc144-2a55-46f2-85bb-25e49b465205 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/641fc144-2a55-46f2-85bb-25e49b465205 (::1) 213s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/641fc144-2a55-46f2-85bb-25e49b465205', version='HTTP/1.1', remote_ip='::1') 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 213s result = await result 213s ^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 213s yielded = ctx_run(next, result) 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 213s yield maybe_future(km.shutdown_kernel(kernel_id)) 213s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 213s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 213s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 213s return _runner_map[name].run(inner) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 213s return fut.result(None) 213s ~~~~~~~~~~^^^^^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 213s return self.__get_result() 213s ~~~~~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 213s raise self._exception 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 213s stopper = ensure_async(km.shutdown_kernel(now, restart)) 213s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 213s return _runner_map[name].run(inner) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 213s return fut.result(None) 213s ~~~~~~~~~~^^^^^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 213s return self.__get_result() 213s ~~~~~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 213s raise self._exception 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s WARNING NotebookApp:handlers.py:612 Unhandled error 213s ERROR NotebookApp:log.py:55 { 213s "Host": "localhost:12341", 213s "Accept": "*/*", 213s "User-Agent": "python-requests/2.32.5" 213s } 213s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/641fc144-2a55-46f2-85bb-25e49b465205 (::1) 4.290000ms referer=None 213s ________________________ KernelAPITest.test_no_kernels _________________________ 213s 213s self = 213s 213s def test_no_kernels(self): 213s """Make sure there are no kernels running at the start""" 213s kernels = self.kern_api.list().json() 213s > self.assertEqual(kernels, []) 213s E AssertionError: Lists differ: [{'id': '641fc144-2a55-46f2-85bb-25e49b465[281 chars]: 0}] != [] 213s E 213s E First list contains 2 additional elements. 213s E First extra element 0: 213s E {'id': '641fc144-2a55-46f2-85bb-25e49b465205', 'name': 'python3', 'last_activity': '2026-02-06T10:25:25.531300Z', 'execution_state': 'starting', 'connections': 0} 213s E 213s E + [] 213s E - [{'connections': 0, 213s E - 'execution_state': 'starting', 213s E - 'id': '641fc144-2a55-46f2-85bb-25e49b465205', 213s E - 'last_activity': '2026-02-06T10:25:25.531300Z', 213s E - 'name': 'python3'}, 213s E - {'connections': 0, 213s E - 'execution_state': 'starting', 213s E - 'id': '481be9c9-f107-4586-934c-69c8ab4c8826', 213s E - 'last_activity': '2026-02-06T10:25:25.549231Z', 213s E - 'name': 'python3'}] 213s 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 213s ------------------------------ Captured log call ------------------------------- 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.670000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.440000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 641fc144-2a55-46f2-85bb-25e49b465205 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 641fc144-2a55-46f2-85bb-25e49b465205 213s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/641fc144-2a55-46f2-85bb-25e49b465205 (::1) 0.540000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 481be9c9-f107-4586-934c-69c8ab4c8826 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 481be9c9-f107-4586-934c-69c8ab4c8826 213s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/481be9c9-f107-4586-934c-69c8ab4c8826 (::1) 0.620000ms 213s ---------------------------- Captured log teardown ----------------------------- 213s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 213s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 213s _____________________ AsyncKernelAPITest.test_connections ______________________ 213s 213s self = 213s 213s def tearDown(self): 213s for k in self.kern_api.list().json(): 213s > self.kern_api.shutdown(k['id']) 213s 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 213s return self._req('DELETE', id) 213s ^^^^^^^^^^^^^^^^^^^^^^^ 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 213s response.raise_for_status() 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s 213s self = 213s 213s def raise_for_status(self): 213s """Raises :class:`HTTPError`, if one occurred.""" 213s 213s http_error_msg = "" 213s if isinstance(self.reason, bytes): 213s # We attempt to decode utf-8 first because some servers 213s # choose to localize their reason strings. If the string 213s # isn't utf-8, we fall back to iso-8859-1 for all other 213s # encodings. (See PR #3538) 213s try: 213s reason = self.reason.decode("utf-8") 213s except UnicodeDecodeError: 213s reason = self.reason.decode("iso-8859-1") 213s else: 213s reason = self.reason 213s 213s if 400 <= self.status_code < 500: 213s http_error_msg = ( 213s f"{self.status_code} Client Error: {reason} for url: {self.url}" 213s ) 213s 213s elif 500 <= self.status_code < 600: 213s http_error_msg = ( 213s f"{self.status_code} Server Error: {reason} for url: {self.url}" 213s ) 213s 213s if http_error_msg: 213s > raise HTTPError(http_error_msg, response=self) 213s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/cf501e1a-80bf-48d3-bcf9-56ac250032be 213s 213s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 213s ------------------------------ Captured log setup ------------------------------ 213s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpt60f7z4c/config', '/tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpt60f7z4c/etc/jupyter'] for config files 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpt60f7z4c/etc/jupyter 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpt60f7z4c/config 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpt60f7z4c/etc/jupyter 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpt60f7z4c/config 213s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpt60f7z4c/notebooks 213s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 213s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 213s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 213s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 213s WARNING NotebookApp:handlers.py:612 Forbidden 213s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.390000ms referer=None 213s ------------------------------ Captured log call ------------------------------- 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpt60f7z4c/runtime/kernel-cf501e1a-80bf-48d3-bcf9-56ac250032be.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44041 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60953 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: cf501e1a-80bf-48d3-bcf9-56ac250032be, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.260000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/cf501e1a-80bf-48d3-bcf9-56ac250032be (::1) 0.450000ms 213s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/cf501e1a-80bf-48d3-bcf9-56ac250032be/channels 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 213s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from cf501e1a-80bf-48d3-bcf9-56ac250032be 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49761 213s 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/'}]} 213s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel cf501e1a-80bf-48d3-bcf9-56ac250032be) to 5.4 (client). 213s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/cf501e1a-80bf-48d3-bcf9-56ac250032be/channels (::1) 298.270000ms 213s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/cf501e1a-80bf-48d3-bcf9-56ac250032be/channels 213s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for cf501e1a-80bf-48d3-bcf9-56ac250032be 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60953 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49761 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44041 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53833 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49761 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44041 213s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 213s Setting websocket_ping_timeout=30000 213s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel cf501e1a-80bf-48d3-bcf9-56ac250032be 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/cf501e1a-80bf-48d3-bcf9-56ac250032be (::1) 2.180000ms 213s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: cf501e1a-80bf-48d3-bcf9-56ac250032be 213s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: cf501e1a-80bf-48d3-bcf9-56ac250032be 213s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: cf501e1a-80bf-48d3-bcf9-56ac250032be 213s DEBUG NotebookApp:handlers.py:197 Nudge: resolving shell future: cf501e1a-80bf-48d3-bcf9-56ac250032be 213s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: cf501e1a-80bf-48d3-bcf9-56ac250032be 213s DEBUG NotebookApp:handlers.py:579 Websocket closed cf501e1a-80bf-48d3-bcf9-56ac250032be:e4877e3b-3b0fec787698c3d075d221b9 213s INFO NotebookApp:kernelmanager.py:222 Starting buffering for cf501e1a-80bf-48d3-bcf9-56ac250032be:e4877e3b-3b0fec787698c3d075d221b9 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cf501e1a-80bf-48d3-bcf9-56ac250032be 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on cf501e1a-80bf-48d3-bcf9-56ac250032be:iopub 213s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on cf501e1a-80bf-48d3-bcf9-56ac250032be:iopub 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/cf501e1a-80bf-48d3-bcf9-56ac250032be (::1) 1.420000ms 213s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on cf501e1a-80bf-48d3-bcf9-56ac250032be:iopub 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/cf501e1a-80bf-48d3-bcf9-56ac250032be (::1) 0.390000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.330000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cf501e1a-80bf-48d3-bcf9-56ac250032be 213s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for cf501e1a-80bf-48d3-bcf9-56ac250032be:e4877e3b-3b0fec787698c3d075d221b9 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cf501e1a-80bf-48d3-bcf9-56ac250032be 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 213s await kernel_awaitable 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 213s result = await obj 213s ^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/cf501e1a-80bf-48d3-bcf9-56ac250032be (::1) 213s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/cf501e1a-80bf-48d3-bcf9-56ac250032be', version='HTTP/1.1', remote_ip='::1') 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 213s result = await result 213s ^^^^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 213s future.result() 213s ~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 213s yield maybe_future(km.shutdown_kernel(kernel_id)) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 213s raise self._exception.with_traceback(self._exception_tb) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 213s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 213s raise km.ready.exception() # type: ignore[misc] 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 213s await kernel_awaitable 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 213s result = await obj 213s ^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s WARNING NotebookApp:handlers.py:612 Unhandled error 213s ERROR NotebookApp:log.py:55 { 213s "Host": "localhost:12341", 213s "Accept": "*/*", 213s "User-Agent": "python-requests/2.32.5" 213s } 213s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/cf501e1a-80bf-48d3-bcf9-56ac250032be (::1) 6.700000ms referer=None 213s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 213s 213s self = 213s 213s def tearDown(self): 213s for k in self.kern_api.list().json(): 213s > self.kern_api.shutdown(k['id']) 213s 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 213s return self._req('DELETE', id) 213s ^^^^^^^^^^^^^^^^^^^^^^^ 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 213s response.raise_for_status() 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s 213s self = 213s 213s def raise_for_status(self): 213s """Raises :class:`HTTPError`, if one occurred.""" 213s 213s http_error_msg = "" 213s if isinstance(self.reason, bytes): 213s # We attempt to decode utf-8 first because some servers 213s # choose to localize their reason strings. If the string 213s # isn't utf-8, we fall back to iso-8859-1 for all other 213s # encodings. (See PR #3538) 213s try: 213s reason = self.reason.decode("utf-8") 213s except UnicodeDecodeError: 213s reason = self.reason.decode("iso-8859-1") 213s else: 213s reason = self.reason 213s 213s if 400 <= self.status_code < 500: 213s http_error_msg = ( 213s f"{self.status_code} Client Error: {reason} for url: {self.url}" 213s ) 213s 213s elif 500 <= self.status_code < 600: 213s http_error_msg = ( 213s f"{self.status_code} Server Error: {reason} for url: {self.url}" 213s ) 213s 213s if http_error_msg: 213s > raise HTTPError(http_error_msg, response=self) 213s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/4bcc56ea-e8c4-45ba-b622-3be466873f76 213s 213s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 213s ------------------------------ Captured log call ------------------------------- 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpt60f7z4c/runtime/kernel-4bcc56ea-e8c4-45ba-b622-3be466873f76.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52635 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59871 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4bcc56ea-e8c4-45ba-b622-3be466873f76, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.460000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.750000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cf501e1a-80bf-48d3-bcf9-56ac250032be 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cf501e1a-80bf-48d3-bcf9-56ac250032be 213s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/cf501e1a-80bf-48d3-bcf9-56ac250032be (::1) 0.450000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4bcc56ea-e8c4-45ba-b622-3be466873f76 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4bcc56ea-e8c4-45ba-b622-3be466873f76 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 213s await kernel_awaitable 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 213s result = await obj 213s ^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/4bcc56ea-e8c4-45ba-b622-3be466873f76 (::1) 213s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/4bcc56ea-e8c4-45ba-b622-3be466873f76', version='HTTP/1.1', remote_ip='::1') 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 213s result = await result 213s ^^^^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 213s future.result() 213s ~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 213s yield maybe_future(km.shutdown_kernel(kernel_id)) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 213s raise self._exception.with_traceback(self._exception_tb) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 213s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 213s raise km.ready.exception() # type: ignore[misc] 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 213s await kernel_awaitable 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 213s result = await obj 213s ^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s WARNING NotebookApp:handlers.py:612 Unhandled error 213s --------------------------- Captured stderr teardown --------------------------- 213s Traceback (most recent call last): 213s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 213s return _run_code(code, main_globals, None, 213s "__main__", mod_spec) 213s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 213s exec(code, run_globals) 213s ~~~~^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 213s from pathlib import Path 213s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 213s from ._abc import * 213s File "/usr/lib/python3.13/pathlib/_abc.py", line 48, in 213s class UnsupportedOperation(NotImplementedError): 213s ...<3 lines>... 213s pass 213s KeyboardInterrupt 213s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 213s 213s self = 213s 213s def test_kernel_handler(self): 213s # GET kernel with given id 213s kid = self.kern_api.start().json()['id'] 213s r = self.kern_api.get(kid) 213s kern1 = r.json() 213s self.assertEqual(r.status_code, 200) 213s assert isinstance(kern1, dict) 213s self.assertIn('id', kern1) 213s self.assertEqual(kern1['id'], kid) 213s 213s # Request a bad kernel id and check that a JSON 213s # message is returned! 213s bad_id = '111-111-111-111-111' 213s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 213s self.kern_api.get(bad_id) 213s 213s # DELETE kernel with id 213s > r = self.kern_api.shutdown(kid) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 213s return self._req('DELETE', id) 213s ^^^^^^^^^^^^^^^^^^^^^^^ 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 213s response.raise_for_status() 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s 213s self = 213s 213s def raise_for_status(self): 213s """Raises :class:`HTTPError`, if one occurred.""" 213s 213s http_error_msg = "" 213s if isinstance(self.reason, bytes): 213s # We attempt to decode utf-8 first because some servers 213s # choose to localize their reason strings. If the string 213s # isn't utf-8, we fall back to iso-8859-1 for all other 213s # encodings. (See PR #3538) 213s try: 213s reason = self.reason.decode("utf-8") 213s except UnicodeDecodeError: 213s reason = self.reason.decode("iso-8859-1") 213s else: 213s reason = self.reason 213s 213s if 400 <= self.status_code < 500: 213s http_error_msg = ( 213s f"{self.status_code} Client Error: {reason} for url: {self.url}" 213s ) 213s 213s elif 500 <= self.status_code < 600: 213s http_error_msg = ( 213s f"{self.status_code} Server Error: {reason} for url: {self.url}" 213s ) 213s 213s if http_error_msg: 213s > raise HTTPError(http_error_msg, response=self) 213s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/0233164b-0e24-464c-8b1f-c04efa0de4bf 213s 213s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 213s ----------------------------- Captured stderr call ----------------------------- 213s Traceback (most recent call last): 213s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 213s return _run_code(code, main_globals, None, 213s "__main__", mod_spec) 213s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 213s exec(code, run_globals) 213s ~~~~^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 213s from pathlib import Path 213s File "", line 1360, in _find_and_load 213s File "", line 1331, in _find_and_load_unlocked 213s File "", line 948, in _load_unlocked 213s File "", line 491, in _verbose_message 213s KeyboardInterrupt 213s ------------------------------ Captured log call ------------------------------- 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpt60f7z4c/runtime/kernel-0233164b-0e24-464c-8b1f-c04efa0de4bf.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59897 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41479 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0233164b-0e24-464c-8b1f-c04efa0de4bf, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.510000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/0233164b-0e24-464c-8b1f-c04efa0de4bf (::1) 1.550000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s 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 213s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 213s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 1.350000ms referer=None 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0233164b-0e24-464c-8b1f-c04efa0de4bf 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0233164b-0e24-464c-8b1f-c04efa0de4bf 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 213s await kernel_awaitable 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 213s result = await obj 213s ^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/0233164b-0e24-464c-8b1f-c04efa0de4bf (::1) 213s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/0233164b-0e24-464c-8b1f-c04efa0de4bf', version='HTTP/1.1', remote_ip='::1') 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 213s result = await result 213s ^^^^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 213s future.result() 213s ~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 213s yield maybe_future(km.shutdown_kernel(kernel_id)) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 213s raise self._exception.with_traceback(self._exception_tb) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 213s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 213s raise km.ready.exception() # type: ignore[misc] 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 213s await kernel_awaitable 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 213s result = await obj 213s ^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s WARNING NotebookApp:handlers.py:612 Unhandled error 213s ERROR NotebookApp:log.py:55 { 213s "Host": "localhost:12341", 213s "Accept": "*/*", 213s "User-Agent": "python-requests/2.32.5" 213s } 213s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/0233164b-0e24-464c-8b1f-c04efa0de4bf (::1) 8.890000ms referer=None 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.430000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4bcc56ea-e8c4-45ba-b622-3be466873f76 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4bcc56ea-e8c4-45ba-b622-3be466873f76 213s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/4bcc56ea-e8c4-45ba-b622-3be466873f76 (::1) 0.510000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0233164b-0e24-464c-8b1f-c04efa0de4bf 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0233164b-0e24-464c-8b1f-c04efa0de4bf 213s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 213s 213s self = 213s 213s def test_main_kernel_handler(self): 213s # POST request 213s r = self.kern_api.start() 213s kern1 = r.json() 213s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 213s self.assertEqual(r.status_code, 201) 213s self.assertIsInstance(kern1, dict) 213s 213s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 213s expected_csp = '; '.join([ 213s "frame-ancestors 'self'", 213s 'report-uri ' + report_uri, 213s "default-src 'none'" 213s ]) 213s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 213s 213s # GET request 213s r = self.kern_api.list() 213s self.assertEqual(r.status_code, 200) 213s assert isinstance(r.json(), list) 213s self.assertEqual(r.json()[0]['id'], kern1['id']) 213s self.assertEqual(r.json()[0]['name'], kern1['name']) 213s 213s # create another kernel and check that they both are added to the 213s # list of kernels from a GET request 213s kern2 = self.kern_api.start().json() 213s assert isinstance(kern2, dict) 213s r = self.kern_api.list() 213s kernels = r.json() 213s self.assertEqual(r.status_code, 200) 213s assert isinstance(kernels, list) 213s self.assertEqual(len(kernels), 2) 213s 213s # Interrupt a kernel 213s r = self.kern_api.interrupt(kern2['id']) 213s self.assertEqual(r.status_code, 204) 213s 213s # Restart a kernel 213s > r = self.kern_api.restart(kern2['id']) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 213s return self._req('POST', url_path_join(id, 'restart')) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 213s response.raise_for_status() 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s 213s self = 213s 213s def raise_for_status(self): 213s """Raises :class:`HTTPError`, if one occurred.""" 213s 213s http_error_msg = "" 213s if isinstance(self.reason, bytes): 213s # We attempt to decode utf-8 first because some servers 213s # choose to localize their reason strings. If the string 213s # isn't utf-8, we fall back to iso-8859-1 for all other 213s # encodings. (See PR #3538) 213s try: 213s reason = self.reason.decode("utf-8") 213s except UnicodeDecodeError: 213s reason = self.reason.decode("iso-8859-1") 213s else: 213s reason = self.reason 213s 213s if 400 <= self.status_code < 500: 213s http_error_msg = ( 213s f"{self.status_code} Client Error: {reason} for url: {self.url}" 213s ) 213s 213s elif 500 <= self.status_code < 600: 213s http_error_msg = ( 213s f"{self.status_code} Server Error: {reason} for url: {self.url}" 213s ) 213s 213s if http_error_msg: 213s > raise HTTPError(http_error_msg, response=self) 213s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/c5ba3c60-c73d-4291-a16b-75d38b3b7603/restart 213s 213s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 213s ----------------------------- Captured stderr call ----------------------------- 213s Traceback (most recent call last): 213s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 213s return _run_code(code, main_globals, None, 213s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 213s exec(code, run_globals) 213s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 213s from ipykernel import kernelapp as app 213s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 213s from ._version import ( 213s File "", line 1360, in _find_and_load 213s File "", line 1339, in _find_and_load_unlocked 213s KeyboardInterrupt 213s Traceback (most recent call last): 213s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 213s return _run_code(code, main_globals, None, 213s "__main__", mod_spec) 213s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 213s exec(code, run_globals) 213s ~~~~^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 213s from ipykernel import kernelapp as app 213s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 213s from .connect import * # noqa: F403 213s ^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 213s import jupyter_client 213s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 213s from .asynchronous import AsyncKernelClient 213s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 213s from .client import AsyncKernelClient # noqa 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 213s import zmq.asyncio 213s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 213s import asyncio 213s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 213s from .base_events import * 213s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 213s import ssl 213s File "/usr/lib/python3.13/ssl.py", line 263, in 213s import base64 # for DER-to-PEM translation 213s ^^^^^^^^^^^^^ 213s File "", line 1360, in _find_and_load 213s File "", line 1331, in _find_and_load_unlocked 213s File "", line 921, in _load_unlocked 213s File "", line 819, in module_from_spec 213s File "", line 797, in _init_module_attrs 213s KeyboardInterrupt 213s ------------------------------ Captured log call ------------------------------- 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpt60f7z4c/runtime/kernel-fed1f3ce-d29b-4af6-be4c-2eb91a04e297.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39777 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55489 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: fed1f3ce-d29b-4af6-be4c-2eb91a04e297, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.130000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.380000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpt60f7z4c/runtime/kernel-c5ba3c60-c73d-4291-a16b-75d38b3b7603.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53761 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50597 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: c5ba3c60-c73d-4291-a16b-75d38b3b7603, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.870000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.460000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: c5ba3c60-c73d-4291-a16b-75d38b3b7603 213s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/c5ba3c60-c73d-4291-a16b-75d38b3b7603/interrupt (::1) 0.450000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 213s yield maybe_future(km.restart_kernel(kernel_id)) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 213s raise self._exception.with_traceback(self._exception_tb) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 213s result = coro.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 213s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 213s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 213s yield self # This tells Task to wait for completion. 213s ^^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 213s future.result() 213s ~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 213s raise self._exception.with_traceback(self._exception_tb) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 213s await ensure_async(kernel.restart_kernel(now=now)) 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 213s result = await obj 213s ^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 213s await self._async_shutdown_kernel(now=now, restart=True) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:log.py:55 { 213s "Host": "localhost:12341", 213s "Accept": "*/*", 213s "User-Agent": "python-requests/2.32.5" 213s } 213s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/c5ba3c60-c73d-4291-a16b-75d38b3b7603/restart (::1) 4.090000ms referer=None 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.440000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fed1f3ce-d29b-4af6-be4c-2eb91a04e297 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fed1f3ce-d29b-4af6-be4c-2eb91a04e297 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 213s await kernel_awaitable 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 213s result = await obj 213s ^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/fed1f3ce-d29b-4af6-be4c-2eb91a04e297 (::1) 213s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/fed1f3ce-d29b-4af6-be4c-2eb91a04e297', version='HTTP/1.1', remote_ip='::1') 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 213s result = await result 213s ^^^^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 213s future.result() 213s ~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 213s yield maybe_future(km.shutdown_kernel(kernel_id)) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 213s raise self._exception.with_traceback(self._exception_tb) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 213s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 213s raise km.ready.exception() # type: ignore[misc] 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 213s await kernel_awaitable 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 213s result = await obj 213s ^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s WARNING NotebookApp:handlers.py:612 Unhandled error 213s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 213s 213s self = 213s 213s def test_no_kernels(self): 213s """Make sure there are no kernels running at the start""" 213s kernels = self.kern_api.list().json() 213s > self.assertEqual(kernels, []) 213s E AssertionError: Lists differ: [{'id': 'fed1f3ce-d29b-4af6-be4c-2eb91a04e[281 chars]: 0}] != [] 213s E 213s E First list contains 2 additional elements. 213s E First extra element 0: 213s E {'id': 'fed1f3ce-d29b-4af6-be4c-2eb91a04e297', 'name': 'python3', 'last_activity': '2026-02-06T10:25:26.096352Z', 'execution_state': 'starting', 'connections': 0} 213s E 213s E + [] 213s E - [{'connections': 0, 213s E - 'execution_state': 'starting', 213s E - 'id': 'fed1f3ce-d29b-4af6-be4c-2eb91a04e297', 213s E - 'last_activity': '2026-02-06T10:25:26.096352Z', 213s E - 'name': 'python3'}, 213s E - {'connections': 0, 213s E - 'execution_state': 'starting', 213s E - 'id': 'c5ba3c60-c73d-4291-a16b-75d38b3b7603', 213s E - 'last_activity': '2026-02-06T10:25:26.114392Z', 213s E - 'name': 'python3'}] 213s 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 213s ------------------------------ Captured log call ------------------------------- 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fed1f3ce-d29b-4af6-be4c-2eb91a04e297 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fed1f3ce-d29b-4af6-be4c-2eb91a04e297 213s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/fed1f3ce-d29b-4af6-be4c-2eb91a04e297 (::1) 0.740000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c5ba3c60-c73d-4291-a16b-75d38b3b7603 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c5ba3c60-c73d-4291-a16b-75d38b3b7603 213s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/c5ba3c60-c73d-4291-a16b-75d38b3b7603 (::1) 0.490000ms 213s ---------------------------- Captured log teardown ----------------------------- 213s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cf501e1a-80bf-48d3-bcf9-56ac250032be 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fed1f3ce-d29b-4af6-be4c-2eb91a04e297 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4bcc56ea-e8c4-45ba-b622-3be466873f76 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0233164b-0e24-464c-8b1f-c04efa0de4bf 213s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 213s __________________________ SessionAPITest.test_create __________________________ 213s 213s @self.addCleanup 213s def cleanup_sessions(): 213s for session in self.sess_api.list().json(): 213s > self.sess_api.delete(session['id']) 213s 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 213s return self._req('DELETE', id) 213s ^^^^^^^^^^^^^^^^^^^^^^^ 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 213s response.raise_for_status() 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s 213s self = 213s 213s def raise_for_status(self): 213s """Raises :class:`HTTPError`, if one occurred.""" 213s 213s http_error_msg = "" 213s if isinstance(self.reason, bytes): 213s # We attempt to decode utf-8 first because some servers 213s # choose to localize their reason strings. If the string 213s # isn't utf-8, we fall back to iso-8859-1 for all other 213s # encodings. (See PR #3538) 213s try: 213s reason = self.reason.decode("utf-8") 213s except UnicodeDecodeError: 213s reason = self.reason.decode("iso-8859-1") 213s else: 213s reason = self.reason 213s 213s if 400 <= self.status_code < 500: 213s http_error_msg = ( 213s f"{self.status_code} Client Error: {reason} for url: {self.url}" 213s ) 213s 213s elif 500 <= self.status_code < 600: 213s http_error_msg = ( 213s f"{self.status_code} Server Error: {reason} for url: {self.url}" 213s ) 213s 213s if http_error_msg: 213s > raise HTTPError(http_error_msg, response=self) 213s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/762b6552-f955-4cc1-91d4-dc52e4e5a7dd 213s 213s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 213s ------------------------------ Captured log setup ------------------------------ 213s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpflewnbkn/config', '/tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpflewnbkn/etc/jupyter'] for config files 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpflewnbkn/etc/jupyter 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpflewnbkn/config 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpflewnbkn/etc/jupyter 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpflewnbkn/config 213s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpflewnbkn/notebooks 213s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 213s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 213s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 213s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 213s WARNING NotebookApp:handlers.py:612 Forbidden 213s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.320000ms referer=None 213s ----------------------------- Captured stderr call ----------------------------- 213s Traceback (most recent call last): 213s ------------------------------ Captured log call ------------------------------- 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.710000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpflewnbkn/runtime/kernel-238f5422-0aab-4318-b350-f2198f00c5ae.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53791 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36673 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: 238f5422-0aab-4318-b350-f2198f00c5ae, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpflewnbkn/notebooks/foo'} 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.600000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.400000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/762b6552-f955-4cc1-91d4-dc52e4e5a7dd (::1) 0.520000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.370000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 238f5422-0aab-4318-b350-f2198f00c5ae 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 238f5422-0aab-4318-b350-f2198f00c5ae 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/762b6552-f955-4cc1-91d4-dc52e4e5a7dd (::1) 213s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/762b6552-f955-4cc1-91d4-dc52e4e5a7dd', version='HTTP/1.1', remote_ip='::1') 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 213s result = await result 213s ^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 213s yield maybe_future(sm.delete_session(session_id)) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 213s yielded = self.gen.send(value) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 213s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 213s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 213s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 213s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 213s return _runner_map[name].run(inner) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 213s return fut.result(None) 213s ~~~~~~~~~~^^^^^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 213s return self.__get_result() 213s ~~~~~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 213s raise self._exception 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 213s stopper = ensure_async(km.shutdown_kernel(now, restart)) 213s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 213s return _runner_map[name].run(inner) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 213s return fut.result(None) 213s ~~~~~~~~~~^^^^^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 213s return self.__get_result() 213s ~~~~~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 213s raise self._exception 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s WARNING NotebookApp:handlers.py:612 Unhandled error 213s ERROR NotebookApp:log.py:55 { 213s "Host": "localhost:12341", 213s "Accept": "*/*", 213s "User-Agent": "python-requests/2.32.5" 213s } 213s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/762b6552-f955-4cc1-91d4-dc52e4e5a7dd (::1) 4.260000ms referer=None 213s --------------------------- Captured stderr teardown --------------------------- 213s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 213s return _run_code(code, main_globals, None, 213s "__main__", mod_spec) 213s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 213s exec(code, run_globals) 213s ~~~~^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 213s from ipykernel import kernelapp as app 213s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 213s from .connect import * # noqa: F403 213s ^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 213s from subprocess import PIPE, Popen 213s File "/usr/lib/python3.13/subprocess.py", line 49, in 213s import signal 213s File "", line 1360, in _find_and_load 213s File "", line 1331, in _find_and_load_unlocked 213s File "", line 921, in _load_unlocked 213s File "", line 810, in module_from_spec 213s KeyboardInterrupt 213s __________________ SessionAPITest.test_create_console_session __________________ 213s 213s @self.addCleanup 213s def cleanup_sessions(): 213s for session in self.sess_api.list().json(): 213s > self.sess_api.delete(session['id']) 213s 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 213s return self._req('DELETE', id) 213s ^^^^^^^^^^^^^^^^^^^^^^^ 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 213s response.raise_for_status() 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s 213s self = 213s 213s def raise_for_status(self): 213s """Raises :class:`HTTPError`, if one occurred.""" 213s 213s http_error_msg = "" 213s if isinstance(self.reason, bytes): 213s # We attempt to decode utf-8 first because some servers 213s # choose to localize their reason strings. If the string 213s # isn't utf-8, we fall back to iso-8859-1 for all other 213s # encodings. (See PR #3538) 213s try: 213s reason = self.reason.decode("utf-8") 213s except UnicodeDecodeError: 213s reason = self.reason.decode("iso-8859-1") 213s else: 213s reason = self.reason 213s 213s if 400 <= self.status_code < 500: 213s http_error_msg = ( 213s f"{self.status_code} Client Error: {reason} for url: {self.url}" 213s ) 213s 213s elif 500 <= self.status_code < 600: 213s http_error_msg = ( 213s f"{self.status_code} Server Error: {reason} for url: {self.url}" 213s ) 213s 213s if http_error_msg: 213s > raise HTTPError(http_error_msg, response=self) 213s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/50b28adf-5a59-45db-bdc9-d0e30a4e6e65 213s 213s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 213s ----------------------------- Captured stderr call ----------------------------- 213s Traceback (most recent call last): 213s ------------------------------ Captured log call ------------------------------- 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpflewnbkn/runtime/kernel-a0267833-cc7f-4992-bdee-97d9fa235824.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40087 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44531 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: a0267833-cc7f-4992-bdee-97d9fa235824, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpflewnbkn/notebooks/foo'} 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.420000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.440000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 238f5422-0aab-4318-b350-f2198f00c5ae 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 238f5422-0aab-4318-b350-f2198f00c5ae 213s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/762b6552-f955-4cc1-91d4-dc52e4e5a7dd (::1) 0.560000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a0267833-cc7f-4992-bdee-97d9fa235824 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a0267833-cc7f-4992-bdee-97d9fa235824 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/50b28adf-5a59-45db-bdc9-d0e30a4e6e65 (::1) 213s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/50b28adf-5a59-45db-bdc9-d0e30a4e6e65', version='HTTP/1.1', remote_ip='::1') 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 213s result = await result 213s ^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 213s yield maybe_future(sm.delete_session(session_id)) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 213s yielded = self.gen.send(value) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 213s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 213s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 213s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 213s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 213s return _runner_map[name].run(inner) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 213s return fut.result(None) 213s ~~~~~~~~~~^^^^^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 213s return self.__get_result() 213s ~~~~~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 213s raise self._exception 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 213s stopper = ensure_async(km.shutdown_kernel(now, restart)) 213s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 213s return _runner_map[name].run(inner) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 213s return fut.result(None) 213s ~~~~~~~~~~^^^^^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 213s return self.__get_result() 213s ~~~~~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 213s raise self._exception 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s WARNING NotebookApp:handlers.py:612 Unhandled error 213s ERROR NotebookApp:log.py:55 { 213s "Host": "localhost:12341", 213s "Accept": "*/*", 213s "User-Agent": "python-requests/2.32.5" 213s } 213s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/50b28adf-5a59-45db-bdc9-d0e30a4e6e65 (::1) 4.270000ms referer=None 213s --------------------------- Captured stderr teardown --------------------------- 213s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 213s return _run_code(code, main_globals, None, 213s "__main__", mod_spec) 213s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 213s exec(code, run_globals) 213s ~~~~^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 213s from ipykernel import kernelapp as app 213s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 213s from .connect import * # noqa: F403 213s ^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 213s import json 213s File "/usr/lib/python3.13/json/__init__.py", line 106, in 213s from .decoder import JSONDecoder, JSONDecodeError 213s File "/usr/lib/python3.13/json/decoder.py", line 20, in 213s class JSONDecodeError(ValueError): 213s ...<22 lines>... 213s return self.__class__, (self.msg, self.doc, self.pos) 213s KeyboardInterrupt 213s ____________________ SessionAPITest.test_create_deprecated _____________________ 213s 213s @self.addCleanup 213s def cleanup_sessions(): 213s for session in self.sess_api.list().json(): 213s > self.sess_api.delete(session['id']) 213s 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 213s return self._req('DELETE', id) 213s ^^^^^^^^^^^^^^^^^^^^^^^ 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 213s response.raise_for_status() 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s 213s self = 213s 213s def raise_for_status(self): 213s """Raises :class:`HTTPError`, if one occurred.""" 213s 213s http_error_msg = "" 213s if isinstance(self.reason, bytes): 213s # We attempt to decode utf-8 first because some servers 213s # choose to localize their reason strings. If the string 213s # isn't utf-8, we fall back to iso-8859-1 for all other 213s # encodings. (See PR #3538) 213s try: 213s reason = self.reason.decode("utf-8") 213s except UnicodeDecodeError: 213s reason = self.reason.decode("iso-8859-1") 213s else: 213s reason = self.reason 213s 213s if 400 <= self.status_code < 500: 213s http_error_msg = ( 213s f"{self.status_code} Client Error: {reason} for url: {self.url}" 213s ) 213s 213s elif 500 <= self.status_code < 600: 213s http_error_msg = ( 213s f"{self.status_code} Server Error: {reason} for url: {self.url}" 213s ) 213s 213s if http_error_msg: 213s > raise HTTPError(http_error_msg, response=self) 213s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ec1b1315-65c4-4244-b0aa-9884f4186a34 213s 213s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 213s ------------------------------ Captured log call ------------------------------- 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpflewnbkn/runtime/kernel-00e921e8-6016-4d02-ae42-54b1912a7c21.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56531 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48705 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: 00e921e8-6016-4d02-ae42-54b1912a7c21, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpflewnbkn/notebooks/foo'} 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.450000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.270000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a0267833-cc7f-4992-bdee-97d9fa235824 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a0267833-cc7f-4992-bdee-97d9fa235824 213s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/50b28adf-5a59-45db-bdc9-d0e30a4e6e65 (::1) 0.540000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 00e921e8-6016-4d02-ae42-54b1912a7c21 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 00e921e8-6016-4d02-ae42-54b1912a7c21 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ec1b1315-65c4-4244-b0aa-9884f4186a34 (::1) 213s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ec1b1315-65c4-4244-b0aa-9884f4186a34', version='HTTP/1.1', remote_ip='::1') 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 213s result = await result 213s ^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 213s yield maybe_future(sm.delete_session(session_id)) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 213s yielded = self.gen.send(value) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 213s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 213s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 213s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 213s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 213s return _runner_map[name].run(inner) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 213s return fut.result(None) 213s ~~~~~~~~~~^^^^^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 213s return self.__get_result() 213s ~~~~~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 213s raise self._exception 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 213s stopper = ensure_async(km.shutdown_kernel(now, restart)) 213s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 213s return _runner_map[name].run(inner) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 213s return fut.result(None) 213s ~~~~~~~~~~^^^^^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 213s return self.__get_result() 213s ~~~~~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 213s raise self._exception 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s WARNING NotebookApp:handlers.py:612 Unhandled error 213s --------------------------- Captured stderr teardown --------------------------- 213s Traceback (most recent call last): 213s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 213s return _run_code(code, main_globals, None, 213s "__main__", mod_spec) 213s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 213s exec(code, run_globals) 213s ~~~~^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 213s from ipykernel import kernelapp as app 213s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 213s from ._version import ( 213s ...<4 lines>... 213s ) 213s File "/usr/lib/python3/dist-packages/ipykernel/_version.py", line 11, in 213s match = re.match(pattern, __version__) 213s File "/usr/lib/python3.13/re/__init__.py", line 167, in match 213s return _compile(pattern, flags).match(string) 213s ~~~~~~~~^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 213s p = _compiler.compile(pattern, flags) 213s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 213s code = _code(p, flags) 213s File "/usr/lib/python3.13/re/_compiler.py", line 585, in _code 213s _compile(code, p.data, flags) 213s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3.13/re/_compiler.py", line 126, in _compile 213s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 213s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3.13/re/_compiler.py", line 110, in _compile 213s emit(SUCCESS) 213s ~~~~^^^^^^^^^ 213s KeyboardInterrupt 213s ___________________ SessionAPITest.test_create_file_session ____________________ 213s 213s @self.addCleanup 213s def cleanup_sessions(): 213s for session in self.sess_api.list().json(): 213s > self.sess_api.delete(session['id']) 213s 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 213s return self._req('DELETE', id) 213s ^^^^^^^^^^^^^^^^^^^^^^^ 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 213s response.raise_for_status() 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s 213s self = 213s 213s def raise_for_status(self): 213s """Raises :class:`HTTPError`, if one occurred.""" 213s 213s http_error_msg = "" 213s if isinstance(self.reason, bytes): 213s # We attempt to decode utf-8 first because some servers 213s # choose to localize their reason strings. If the string 213s # isn't utf-8, we fall back to iso-8859-1 for all other 213s # encodings. (See PR #3538) 213s try: 213s reason = self.reason.decode("utf-8") 213s except UnicodeDecodeError: 213s reason = self.reason.decode("iso-8859-1") 213s else: 213s reason = self.reason 213s 213s if 400 <= self.status_code < 500: 213s http_error_msg = ( 213s f"{self.status_code} Client Error: {reason} for url: {self.url}" 213s ) 213s 213s elif 500 <= self.status_code < 600: 213s http_error_msg = ( 213s f"{self.status_code} Server Error: {reason} for url: {self.url}" 213s ) 213s 213s if http_error_msg: 213s > raise HTTPError(http_error_msg, response=self) 213s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/0a405052-7448-4d77-b1bc-a7d8e5adc4ed 213s 213s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 213s ----------------------------- Captured stderr call ----------------------------- 213s Traceback (most recent call last): 213s ------------------------------ Captured log call ------------------------------- 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpflewnbkn/runtime/kernel-0296fbda-e47d-4678-8614-1723fa881d0d.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50913 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40213 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0296fbda-e47d-4678-8614-1723fa881d0d, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpflewnbkn/notebooks/foo'} 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.780000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.450000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 00e921e8-6016-4d02-ae42-54b1912a7c21 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 00e921e8-6016-4d02-ae42-54b1912a7c21 213s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/ec1b1315-65c4-4244-b0aa-9884f4186a34 (::1) 0.580000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0296fbda-e47d-4678-8614-1723fa881d0d 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0296fbda-e47d-4678-8614-1723fa881d0d 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/0a405052-7448-4d77-b1bc-a7d8e5adc4ed (::1) 213s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/0a405052-7448-4d77-b1bc-a7d8e5adc4ed', version='HTTP/1.1', remote_ip='::1') 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 213s result = await result 213s ^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 213s yield maybe_future(sm.delete_session(session_id)) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 213s yielded = self.gen.send(value) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 213s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 213s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 213s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 213s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 213s return _runner_map[name].run(inner) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 213s return fut.result(None) 213s ~~~~~~~~~~^^^^^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 213s return self.__get_result() 213s ~~~~~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 213s raise self._exception 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 213s stopper = ensure_async(km.shutdown_kernel(now, restart)) 213s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 213s return _runner_map[name].run(inner) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 213s return fut.result(None) 213s ~~~~~~~~~~^^^^^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 213s return self.__get_result() 213s ~~~~~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 213s raise self._exception 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s WARNING NotebookApp:handlers.py:612 Unhandled error 213s ERROR NotebookApp:log.py:55 { 213s "Host": "localhost:12341", 213s "Accept": "*/*", 213s "User-Agent": "python-requests/2.32.5" 213s } 213s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/0a405052-7448-4d77-b1bc-a7d8e5adc4ed (::1) 4.450000ms referer=None 213s --------------------------- Captured stderr teardown --------------------------- 213s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 213s return _run_code(code, main_globals, None, 213s "__main__", mod_spec) 213s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 213s exec(code, run_globals) 213s ~~~~^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 213s from ipykernel import kernelapp as app 213s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 213s from .connect import * # noqa: F403 213s ^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 213s from subprocess import PIPE, Popen 213s File "", line 1360, in _find_and_load 213s File "", line 1331, in _find_and_load_unlocked 213s File "", line 935, in _load_unlocked 213s File "", line 1019, in exec_module 213s File "", line 1152, in get_code 213s File "", line 781, in _compile_bytecode 213s KeyboardInterrupt 213s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 213s 213s self = 213s 213s def test_create_with_kernel_id(self): 213s # create a new kernel 213s r = self.request('POST', 'api/kernels') 213s r.raise_for_status() 213s kernel = r.json() 213s 213s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 213s self.assertEqual(resp.status_code, 201) 213s newsession = resp.json() 213s self.assertIn('id', newsession) 213s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 213s self.assertEqual(newsession['kernel']['id'], kernel['id']) 213s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 213s 213s sessions = self.sess_api.list().json() 213s > self.assertEqual(sessions, [newsession]) 213s E AssertionError: Lists differ: [{'id': '0a405052-7448-4d77-b1bc-a7d8e5adc4ed', 'p[553 chars]ne}}] != [{'id': '7f9cd524-b84d-4d1c-b204-aab9c43bdd2f', 'p[279 chars]ne}}] 213s E 213s E First differing element 0: 213s E {'id': '0a405052-7448-4d77-b1bc-a7d8e5adc4ed', 'p[218 chars]: 0}} 213s E {'id': '7f9cd524-b84d-4d1c-b204-aab9c43bdd2f', 'p[278 chars]one}} 213s E 213s E First list contains 1 additional elements. 213s E First extra element 1: 213s E {'id': '7f9cd524-b84d-4d1c-b204-aab9c43bdd2f', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'ff221408-2fa8-4324-bd1c-25c2380cb91a', 'name': 'python3', 'last_activity': '2026-02-06T10:25:26.397208Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 213s E 213s E Diff is 830 characters long. Set self.maxDiff to None to see it. 213s 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 213s ----------------------------- Captured stderr call ----------------------------- 213s Traceback (most recent call last): 213s ------------------------------ Captured log call ------------------------------- 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpflewnbkn/runtime/kernel-ff221408-2fa8-4324-bd1c-25c2380cb91a.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43223 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58877 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: ff221408-2fa8-4324-bd1c-25c2380cb91a, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.710000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.560000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.950000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.470000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0296fbda-e47d-4678-8614-1723fa881d0d 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0296fbda-e47d-4678-8614-1723fa881d0d 213s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/0a405052-7448-4d77-b1bc-a7d8e5adc4ed (::1) 1.270000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ff221408-2fa8-4324-bd1c-25c2380cb91a 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ff221408-2fa8-4324-bd1c-25c2380cb91a 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7f9cd524-b84d-4d1c-b204-aab9c43bdd2f (::1) 213s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7f9cd524-b84d-4d1c-b204-aab9c43bdd2f', version='HTTP/1.1', remote_ip='::1') 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 213s result = await result 213s ^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 213s yield maybe_future(sm.delete_session(session_id)) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 213s yielded = self.gen.send(value) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 213s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 213s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 213s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 213s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 213s return _runner_map[name].run(inner) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 213s return fut.result(None) 213s ~~~~~~~~~~^^^^^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 213s return self.__get_result() 213s ~~~~~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 213s raise self._exception 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 213s stopper = ensure_async(km.shutdown_kernel(now, restart)) 213s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 213s return _runner_map[name].run(inner) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 213s return fut.result(None) 213s ~~~~~~~~~~^^^^^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 213s return self.__get_result() 213s ~~~~~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 213s raise self._exception 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s WARNING NotebookApp:handlers.py:612 Unhandled error 213s ERROR NotebookApp:log.py:55 { 213s "Host": "localhost:12341", 213s "Accept": "*/*", 213s "User-Agent": "python-requests/2.32.5" 213s } 213s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/7f9cd524-b84d-4d1c-b204-aab9c43bdd2f (::1) 4.320000ms referer=None 213s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 213s 213s @self.addCleanup 213s def cleanup_sessions(): 213s for session in self.sess_api.list().json(): 213s > self.sess_api.delete(session['id']) 213s 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 213s return self._req('DELETE', id) 213s ^^^^^^^^^^^^^^^^^^^^^^^ 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 213s response.raise_for_status() 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s 213s self = 213s 213s def raise_for_status(self): 213s """Raises :class:`HTTPError`, if one occurred.""" 213s 213s http_error_msg = "" 213s if isinstance(self.reason, bytes): 213s # We attempt to decode utf-8 first because some servers 213s # choose to localize their reason strings. If the string 213s # isn't utf-8, we fall back to iso-8859-1 for all other 213s # encodings. (See PR #3538) 213s try: 213s reason = self.reason.decode("utf-8") 213s except UnicodeDecodeError: 213s reason = self.reason.decode("iso-8859-1") 213s else: 213s reason = self.reason 213s 213s if 400 <= self.status_code < 500: 213s http_error_msg = ( 213s f"{self.status_code} Client Error: {reason} for url: {self.url}" 213s ) 213s 213s elif 500 <= self.status_code < 600: 213s http_error_msg = ( 213s f"{self.status_code} Server Error: {reason} for url: {self.url}" 213s ) 213s 213s if http_error_msg: 213s > raise HTTPError(http_error_msg, response=self) 213s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7f9cd524-b84d-4d1c-b204-aab9c43bdd2f 213s 213s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 213s ----------------------------- Captured stderr call ----------------------------- 213s Traceback (most recent call last): 213s ------------------------------ Captured log call ------------------------------- 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.560000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpflewnbkn/runtime/kernel-54b320ef-7ae8-49fe-a44a-357b9e94a2a8.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60717 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58277 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: 54b320ef-7ae8-49fe-a44a-357b9e94a2a8, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.560000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ff221408-2fa8-4324-bd1c-25c2380cb91a 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ff221408-2fa8-4324-bd1c-25c2380cb91a 213s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/7f9cd524-b84d-4d1c-b204-aab9c43bdd2f (::1) 1.900000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.200000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.260000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 54b320ef-7ae8-49fe-a44a-357b9e94a2a8 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 54b320ef-7ae8-49fe-a44a-357b9e94a2a8 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7f9cd524-b84d-4d1c-b204-aab9c43bdd2f (::1) 213s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7f9cd524-b84d-4d1c-b204-aab9c43bdd2f', version='HTTP/1.1', remote_ip='::1') 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 213s result = await result 213s ^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 213s yield maybe_future(sm.delete_session(session_id)) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 213s yielded = self.gen.send(value) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 213s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 213s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 213s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 213s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 213s return _runner_map[name].run(inner) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 213s return fut.result(None) 213s ~~~~~~~~~~^^^^^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 213s return self.__get_result() 213s ~~~~~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 213s raise self._exception 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 213s stopper = ensure_async(km.shutdown_kernel(now, restart)) 213s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 213s return _runner_map[name].run(inner) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 213s return fut.result(None) 213s ~~~~~~~~~~^^^^^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 213s return self.__get_result() 213s ~~~~~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 213s raise self._exception 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s WARNING NotebookApp:handlers.py:612 Unhandled error 213s ERROR NotebookApp:log.py:55 { 213s "Host": "localhost:12341", 213s "Accept": "*/*", 213s "User-Agent": "python-requests/2.32.5" 213s } 213s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/7f9cd524-b84d-4d1c-b204-aab9c43bdd2f (::1) 4.190000ms referer=None 213s --------------------------- Captured stderr teardown --------------------------- 213s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 213s return _run_code(code, main_globals, None, 213s "__main__", mod_spec) 213s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 213s exec(code, run_globals) 213s ~~~~^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 213s from ipykernel import kernelapp as app 213s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 213s from .connect import * # noqa: F403 213s ^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 213s from subprocess import PIPE, Popen 213s File "/usr/lib/python3.13/subprocess.py", line 51, in 213s import threading 213s File "/usr/lib/python3.13/threading.py", line 1321, in 213s class Timer(Thread): 213s ...<24 lines>... 213s self.finished.set() 213s KeyboardInterrupt 213s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 213s 213s @self.addCleanup 213s def cleanup_sessions(): 213s for session in self.sess_api.list().json(): 213s > self.sess_api.delete(session['id']) 213s 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 213s return self._req('DELETE', id) 213s ^^^^^^^^^^^^^^^^^^^^^^^ 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 213s response.raise_for_status() 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s 213s self = 213s 213s def raise_for_status(self): 213s """Raises :class:`HTTPError`, if one occurred.""" 213s 213s http_error_msg = "" 213s if isinstance(self.reason, bytes): 213s # We attempt to decode utf-8 first because some servers 213s # choose to localize their reason strings. If the string 213s # isn't utf-8, we fall back to iso-8859-1 for all other 213s # encodings. (See PR #3538) 213s try: 213s reason = self.reason.decode("utf-8") 213s except UnicodeDecodeError: 213s reason = self.reason.decode("iso-8859-1") 213s else: 213s reason = self.reason 213s 213s if 400 <= self.status_code < 500: 213s http_error_msg = ( 213s f"{self.status_code} Client Error: {reason} for url: {self.url}" 213s ) 213s 213s elif 500 <= self.status_code < 600: 213s http_error_msg = ( 213s f"{self.status_code} Server Error: {reason} for url: {self.url}" 213s ) 213s 213s if http_error_msg: 213s > raise HTTPError(http_error_msg, response=self) 213s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7f9cd524-b84d-4d1c-b204-aab9c43bdd2f 213s 213s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 213s ----------------------------- Captured stderr call ----------------------------- 213s Traceback (most recent call last): 213s ------------------------------ Captured log call ------------------------------- 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.180000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpflewnbkn/runtime/kernel-ee77721e-68ff-4dbb-b5b6-3d9deba10a76.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33487 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51833 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: ee77721e-68ff-4dbb-b5b6-3d9deba10a76, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpflewnbkn/notebooks/foo'} 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 54b320ef-7ae8-49fe-a44a-357b9e94a2a8 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 54b320ef-7ae8-49fe-a44a-357b9e94a2a8 213s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/7f9cd524-b84d-4d1c-b204-aab9c43bdd2f (::1) 16.100000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.380000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.390000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ee77721e-68ff-4dbb-b5b6-3d9deba10a76 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ee77721e-68ff-4dbb-b5b6-3d9deba10a76 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7f9cd524-b84d-4d1c-b204-aab9c43bdd2f (::1) 213s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7f9cd524-b84d-4d1c-b204-aab9c43bdd2f', version='HTTP/1.1', remote_ip='::1') 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 213s result = await result 213s ^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 213s yield maybe_future(sm.delete_session(session_id)) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 213s yielded = self.gen.send(value) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 213s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 213s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 213s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 213s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 213s return _runner_map[name].run(inner) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 213s return fut.result(None) 213s ~~~~~~~~~~^^^^^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 213s return self.__get_result() 213s ~~~~~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 213s raise self._exception 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 213s stopper = ensure_async(km.shutdown_kernel(now, restart)) 213s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 213s return _runner_map[name].run(inner) 213s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 213s return fut.result(None) 213s ~~~~~~~~~~^^^^^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 213s return self.__get_result() 213s ~~~~~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 213s raise self._exception 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s WARNING NotebookApp:handlers.py:612 Unhandled error 213s --------------------------- Captured stderr teardown --------------------------- 213s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 213s return _run_code(code, main_globals, None, 213s "__main__", mod_spec) 213s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 213s exec(code, run_globals) 213s ~~~~^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 213s from ipykernel import kernelapp as app 213s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 213s from .connect import * # noqa: F403 213s ^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 213s from subprocess import PIPE, Popen 213s File "/usr/lib/python3.13/subprocess.py", line 49, in 213s import signal 213s File "/usr/lib/python3.13/signal.py", line 7, in 213s _IntEnum._convert_( 213s ~~~~~~~~~~~~~~~~~~^ 213s 'Signals', __name__, 213s ^^^^^^^^^^^^^^^^^^^^ 213s ...<2 lines>... 213s and (name.startswith('SIG') and not name.startswith('SIG_')) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s or name.startswith('CTRL_')) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3.13/enum.py", line 928, in _convert_ 213s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 213s File "/usr/lib/python3.13/enum.py", line 1919, in convert_class 213s enum_class._value2member_map_.setdefault(value, member) 213s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ 213s KeyboardInterrupt 213s ---------------------------- Captured log teardown ----------------------------- 213s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ee77721e-68ff-4dbb-b5b6-3d9deba10a76 213s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 213s _______________________ AsyncSessionAPITest.test_create ________________________ 213s 213s @self.addCleanup 213s def cleanup_sessions(): 213s for session in self.sess_api.list().json(): 213s > self.sess_api.delete(session['id']) 213s 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 213s return self._req('DELETE', id) 213s ^^^^^^^^^^^^^^^^^^^^^^^ 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 213s response.raise_for_status() 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s 213s self = 213s 213s def raise_for_status(self): 213s """Raises :class:`HTTPError`, if one occurred.""" 213s 213s http_error_msg = "" 213s if isinstance(self.reason, bytes): 213s # We attempt to decode utf-8 first because some servers 213s # choose to localize their reason strings. If the string 213s # isn't utf-8, we fall back to iso-8859-1 for all other 213s # encodings. (See PR #3538) 213s try: 213s reason = self.reason.decode("utf-8") 213s except UnicodeDecodeError: 213s reason = self.reason.decode("iso-8859-1") 213s else: 213s reason = self.reason 213s 213s if 400 <= self.status_code < 500: 213s http_error_msg = ( 213s f"{self.status_code} Client Error: {reason} for url: {self.url}" 213s ) 213s 213s elif 500 <= self.status_code < 600: 213s http_error_msg = ( 213s f"{self.status_code} Server Error: {reason} for url: {self.url}" 213s ) 213s 213s if http_error_msg: 213s > raise HTTPError(http_error_msg, response=self) 213s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/72ecac1c-4bf6-4fed-9f8f-e0e044021762 213s 213s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 213s ------------------------------ Captured log setup ------------------------------ 213s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpw4i_19l1/config', '/tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpw4i_19l1/etc/jupyter'] for config files 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpw4i_19l1/etc/jupyter 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpw4i_19l1/config 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpw4i_19l1/etc/jupyter 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 213s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpw4i_19l1/config 213s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpw4i_19l1/notebooks 213s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 213s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 213s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 213s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 213s WARNING NotebookApp:handlers.py:612 Forbidden 213s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.350000ms referer=None 213s ----------------------------- Captured stderr call ----------------------------- 213s Traceback (most recent call last): 213s ------------------------------ Captured log call ------------------------------- 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.590000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpw4i_19l1/runtime/kernel-f13cb1a2-d70e-4634-8f39-87fdf8e2edef.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42473 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40135 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: f13cb1a2-d70e-4634-8f39-87fdf8e2edef, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpw4i_19l1/notebooks/foo'} 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.390000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.250000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/72ecac1c-4bf6-4fed-9f8f-e0e044021762 (::1) 1.220000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.150000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f13cb1a2-d70e-4634-8f39-87fdf8e2edef 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f13cb1a2-d70e-4634-8f39-87fdf8e2edef 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 213s await kernel_awaitable 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 213s result = await obj 213s ^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/72ecac1c-4bf6-4fed-9f8f-e0e044021762 (::1) 213s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/72ecac1c-4bf6-4fed-9f8f-e0e044021762', version='HTTP/1.1', remote_ip='::1') 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 213s result = await result 213s ^^^^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 213s future.result() 213s ~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 213s yield maybe_future(sm.delete_session(session_id)) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 213s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 213s raise self._exception.with_traceback(self._exception_tb) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 213s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 213s raise km.ready.exception() # type: ignore[misc] 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 213s await kernel_awaitable 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 213s result = await obj 213s ^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s WARNING NotebookApp:handlers.py:612 Unhandled error 213s ERROR NotebookApp:log.py:55 { 213s "Host": "localhost:12341", 213s "Accept": "*/*", 213s "User-Agent": "python-requests/2.32.5" 213s } 213s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/72ecac1c-4bf6-4fed-9f8f-e0e044021762 (::1) 4.060000ms referer=None/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 213s gc.collect() 213s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 213s 213s --------------------------- Captured stderr teardown --------------------------- 213s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 213s return _run_code(code, main_globals, None, 213s "__main__", mod_spec) 213s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 213s exec(code, run_globals) 213s ~~~~^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 213s from ipykernel import kernelapp as app 213s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 213s from .connect import * # noqa: F403 213s ^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 213s from subprocess import PIPE, Popen 213s File "", line 1360, in _find_and_load 213s File "", line 1331, in _find_and_load_unlocked 213s File "", line 935, in _load_unlocked 213s File "", line 1019, in exec_module 213s File "", line 1115, in get_code 213s File "", line 1215, in get_data 213s KeyboardInterrupt 213s _______________ AsyncSessionAPITest.test_create_console_session ________________ 213s 213s @self.addCleanup 213s def cleanup_sessions(): 213s for session in self.sess_api.list().json(): 213s > self.sess_api.delete(session['id']) 213s 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 213s return self._req('DELETE', id) 213s ^^^^^^^^^^^^^^^^^^^^^^^ 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 213s response.raise_for_status() 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s 213s self = 213s 213s def raise_for_status(self): 213s """Raises :class:`HTTPError`, if one occurred.""" 213s 213s http_error_msg = "" 213s if isinstance(self.reason, bytes): 213s # We attempt to decode utf-8 first because some servers 213s # choose to localize their reason strings. If the string 213s # isn't utf-8, we fall back to iso-8859-1 for all other 213s # encodings. (See PR #3538) 213s try: 213s reason = self.reason.decode("utf-8") 213s except UnicodeDecodeError: 213s reason = self.reason.decode("iso-8859-1") 213s else: 213s reason = self.reason 213s 213s if 400 <= self.status_code < 500: 213s http_error_msg = ( 213s f"{self.status_code} Client Error: {reason} for url: {self.url}" 213s ) 213s 213s elif 500 <= self.status_code < 600: 213s http_error_msg = ( 213s f"{self.status_code} Server Error: {reason} for url: {self.url}" 213s ) 213s 213s if http_error_msg: 213s > raise HTTPError(http_error_msg, response=self) 213s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/9be737bb-84f1-4610-8359-bf8f21077aaa 213s 213s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 213s ----------------------------- Captured stderr call ----------------------------- 213s Traceback (most recent call last): 213s ------------------------------ Captured log call ------------------------------- 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpw4i_19l1/runtime/kernel-a888fef9-6116-49d3-ba18-0c41f0861a2c.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48363 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49317 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: a888fef9-6116-49d3-ba18-0c41f0861a2c, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpw4i_19l1/notebooks/foo'} 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.320000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.860000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f13cb1a2-d70e-4634-8f39-87fdf8e2edef 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f13cb1a2-d70e-4634-8f39-87fdf8e2edef 213s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/72ecac1c-4bf6-4fed-9f8f-e0e044021762 (::1) 1.270000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a888fef9-6116-49d3-ba18-0c41f0861a2c 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a888fef9-6116-49d3-ba18-0c41f0861a2c 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 213s await kernel_awaitable 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 213s result = await obj 213s ^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9be737bb-84f1-4610-8359-bf8f21077aaa (::1) 213s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9be737bb-84f1-4610-8359-bf8f21077aaa', version='HTTP/1.1', remote_ip='::1') 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 213s result = await result 213s ^^^^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 213s future.result() 213s ~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 213s yield maybe_future(sm.delete_session(session_id)) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 213s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 213s raise self._exception.with_traceback(self._exception_tb) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 213s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 213s raise km.ready.exception() # type: ignore[misc] 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 213s await kernel_awaitable 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 213s result = await obj 213s ^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s WARNING NotebookApp:handlers.py:612 Unhandled error 213s --------------------------- Captured stderr teardown --------------------------- 213s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 213s return _run_code(code, main_globals, None, 213s "__main__", mod_spec) 213s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 213s exec(code, run_globals) 213s ~~~~^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 213s from ipykernel import kernelapp as app 213s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 213s from .connect import * # noqa: F403 213s ^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 213s import json 213s File "/usr/lib/python3.13/json/__init__.py", line 106, in 213s from .decoder import JSONDecoder, JSONDecodeError 213s File "", line 1360, in _find_and_load 213s File "", line 1331, in _find_and_load_unlocked 213s File "", line 921, in _load_unlocked 213s File "", line 819, in module_from_spec 213s File "", line 798, in _init_module_attrs 213s File "", line 638, in cached 213s File "", line 642, in _get_cached 213s File "", line 536, in cache_from_source 213s KeyboardInterrupt 213s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 213s 213s @self.addCleanup 213s def cleanup_sessions(): 213s for session in self.sess_api.list().json(): 213s > self.sess_api.delete(session['id']) 213s 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 213s return self._req('DELETE', id) 213s ^^^^^^^^^^^^^^^^^^^^^^^ 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 213s response.raise_for_status() 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s 213s self = 213s 213s def raise_for_status(self): 213s """Raises :class:`HTTPError`, if one occurred.""" 213s 213s http_error_msg = "" 213s if isinstance(self.reason, bytes): 213s # We attempt to decode utf-8 first because some servers 213s # choose to localize their reason strings. If the string 213s # isn't utf-8, we fall back to iso-8859-1 for all other 213s # encodings. (See PR #3538) 213s try: 213s reason = self.reason.decode("utf-8") 213s except UnicodeDecodeError: 213s reason = self.reason.decode("iso-8859-1") 213s else: 213s reason = self.reason 213s 213s if 400 <= self.status_code < 500: 213s http_error_msg = ( 213s f"{self.status_code} Client Error: {reason} for url: {self.url}" 213s ) 213s 213s elif 500 <= self.status_code < 600: 213s http_error_msg = ( 213s f"{self.status_code} Server Error: {reason} for url: {self.url}" 213s ) 213s 213s if http_error_msg: 213s > raise HTTPError(http_error_msg, response=self) 213s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/19a7e80d-9218-4647-bbd3-31893e7202a4 213s 213s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 213s ----------------------------- Captured stderr call ----------------------------- 213s Traceback (most recent call last): 213s ------------------------------ Captured log call ------------------------------- 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpw4i_19l1/runtime/kernel-c54c7b6d-6dff-4ffe-8c28-c8f61190073a.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32861 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45095 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: c54c7b6d-6dff-4ffe-8c28-c8f61190073a, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpw4i_19l1/notebooks/foo'} 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.250000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.270000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a888fef9-6116-49d3-ba18-0c41f0861a2c 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a888fef9-6116-49d3-ba18-0c41f0861a2c 213s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/9be737bb-84f1-4610-8359-bf8f21077aaa (::1) 1.180000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c54c7b6d-6dff-4ffe-8c28-c8f61190073a 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c54c7b6d-6dff-4ffe-8c28-c8f61190073a 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 213s await kernel_awaitable 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 213s result = await obj 213s ^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/19a7e80d-9218-4647-bbd3-31893e7202a4 (::1) 213s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/19a7e80d-9218-4647-bbd3-31893e7202a4', version='HTTP/1.1', remote_ip='::1') 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 213s result = await result 213s ^^^^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 213s future.result() 213s ~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 213s yield maybe_future(sm.delete_session(session_id)) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 213s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 213s raise self._exception.with_traceback(self._exception_tb) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 213s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 213s raise km.ready.exception() # type: ignore[misc] 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 213s await kernel_awaitable 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 213s result = await obj 213s ^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s WARNING NotebookApp:handlers.py:612 Unhandled error 213s --------------------------- Captured stderr teardown --------------------------- 213s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 213s return _run_code(code, main_globals, None, 213s "__main__", mod_spec) 213s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 213s exec(code, run_globals) 213s ~~~~^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 213s from ipykernel import kernelapp as app 213s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 213s from .connect import * # noqa: F403 213s ^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 213s import json 213s File "", line 1360, in _find_and_load 213s File "", line 1331, in _find_and_load_unlocked 213s File "", line 935, in _load_unlocked 213s File "", line 1019, in exec_module 213s File "", line 1152, in get_code 213s File "", line 785, in _compile_bytecode 213s KeyboardInterrupt 213s _________________ AsyncSessionAPITest.test_create_file_session _________________ 213s 213s @self.addCleanup 213s def cleanup_sessions(): 213s for session in self.sess_api.list().json(): 213s > self.sess_api.delete(session['id']) 213s 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 213s return self._req('DELETE', id) 213s ^^^^^^^^^^^^^^^^^^^^^^^ 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 213s response.raise_for_status() 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s 213s self = 213s 213s def raise_for_status(self): 213s """Raises :class:`HTTPError`, if one occurred.""" 213s 213s http_error_msg = "" 213s if isinstance(self.reason, bytes): 213s # We attempt to decode utf-8 first because some servers 213s # choose to localize their reason strings. If the string 213s # isn't utf-8, we fall back to iso-8859-1 for all other 213s # encodings. (See PR #3538) 213s try: 213s reason = self.reason.decode("utf-8") 213s except UnicodeDecodeError: 213s reason = self.reason.decode("iso-8859-1") 213s else: 213s reason = self.reason 213s 213s if 400 <= self.status_code < 500: 213s http_error_msg = ( 213s f"{self.status_code} Client Error: {reason} for url: {self.url}" 213s ) 213s 213s elif 500 <= self.status_code < 600: 213s http_error_msg = ( 213s f"{self.status_code} Server Error: {reason} for url: {self.url}" 213s ) 213s 213s if http_error_msg: 213s > raise HTTPError(http_error_msg, response=self) 213s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/21ae9195-9a64-4528-88a4-57eba8be2ce6 213s 213s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 213s ----------------------------- Captured stderr call ----------------------------- 213s Traceback (most recent call last): 213s ------------------------------ Captured log call ------------------------------- 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpw4i_19l1/runtime/kernel-eb23908b-26bd-4890-add5-64c8d216a9ce.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44667 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53731 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: eb23908b-26bd-4890-add5-64c8d216a9ce, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpw4i_19l1/notebooks/foo'} 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.130000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.320000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c54c7b6d-6dff-4ffe-8c28-c8f61190073a 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c54c7b6d-6dff-4ffe-8c28-c8f61190073a 213s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/19a7e80d-9218-4647-bbd3-31893e7202a4 (::1) 1.300000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eb23908b-26bd-4890-add5-64c8d216a9ce 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eb23908b-26bd-4890-add5-64c8d216a9ce 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 213s await kernel_awaitable 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 213s result = await obj 213s ^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/21ae9195-9a64-4528-88a4-57eba8be2ce6 (::1) 213s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/21ae9195-9a64-4528-88a4-57eba8be2ce6', version='HTTP/1.1', remote_ip='::1') 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 213s result = await result 213s ^^^^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 213s future.result() 213s ~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 213s yield maybe_future(sm.delete_session(session_id)) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 213s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 213s raise self._exception.with_traceback(self._exception_tb) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 213s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 213s raise km.ready.exception() # type: ignore[misc] 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 213s await kernel_awaitable 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 213s result = await obj 213s ^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s WARNING NotebookApp:handlers.py:612 Unhandled error 213s ERROR NotebookApp:log.py:55 { 213s "Host": "localhost:12341", 213s "Accept": "*/*", 213s "User-Agent": "python-requests/2.32.5" 213s } 213s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/21ae9195-9a64-4528-88a4-57eba8be2ce6 (::1) 4.380000ms referer=None 213s --------------------------- Captured stderr teardown --------------------------- 213s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 213s return _run_code(code, main_globals, None, 213s "__main__", mod_spec) 213s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 213s exec(code, run_globals) 213s ~~~~^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 213s from ipykernel import kernelapp as app 213s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 213s from ._version import ( 213s ...<4 lines>... 213s ) 213s File "/usr/lib/python3/dist-packages/ipykernel/_version.py", line 11, in 213s match = re.match(pattern, __version__) 213s File "/usr/lib/python3.13/re/__init__.py", line 167, in match 213s return _compile(pattern, flags).match(string) 213s ~~~~~~~~^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 213s p = _compiler.compile(pattern, flags) 213s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 213s p = _parser.parse(p, flags) 213s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 213s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 213s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 213s itemsappend(_parse(source, state, verbose, nested + 1, 213s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s not nested and not items)) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3.13/re/_parser.py", line 863, in _parse 213s p = _parse_sub(source, state, sub_verbose, nested + 1) 213s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 213s itemsappend(_parse(source, state, verbose, nested + 1, 213s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s not nested and not items)) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3.13/re/_parser.py", line 682, in _parse 213s item = subpattern[-1:] 213s ~~~~~~~~~~^^^^^ 213s File "/usr/lib/python3.13/re/_parser.py", line 169, in __getitem__ 213s return SubPattern(self.state, self.data[index]) 213s File "/usr/lib/python3.13/re/_parser.py", line 112, in __init__ 213s def __init__(self, state, data=None): 213s 213s KeyboardInterrupt 213s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 213s 213s self = 213s 213s def test_create_with_kernel_id(self): 213s # create a new kernel 213s r = self.request('POST', 'api/kernels') 213s r.raise_for_status() 213s kernel = r.json() 213s 213s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 213s self.assertEqual(resp.status_code, 201) 213s newsession = resp.json() 213s self.assertIn('id', newsession) 213s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 213s self.assertEqual(newsession['kernel']['id'], kernel['id']) 213s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 213s 213s sessions = self.sess_api.list().json() 213s > self.assertEqual(sessions, [newsession]) 213s E AssertionError: Lists differ: [{'id': '21ae9195-9a64-4528-88a4-57eba8be2ce6', 'p[553 chars]ne}}] != [{'id': 'de1d4be7-0ca0-4707-98cb-d9d27927d928', 'p[279 chars]ne}}] 213s E 213s E First differing element 0: 213s E {'id': '21ae9195-9a64-4528-88a4-57eba8be2ce6', 'p[218 chars]: 0}} 213s E {'id': 'de1d4be7-0ca0-4707-98cb-d9d27927d928', 'p[278 chars]one}} 213s E 213s E First list contains 1 additional elements. 213s E First extra element 1: 213s E {'id': 'de1d4be7-0ca0-4707-98cb-d9d27927d928', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'a905df61-1eb9-4281-b0aa-6cce87f07a17', 'name': 'python3', 'last_activity': '2026-02-06T10:25:26.689131Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 213s E 213s E Diff is 830 characters long. Set self.maxDiff to None to see it. 213s 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 213s ----------------------------- Captured stderr call ----------------------------- 213s Traceback (most recent call last): 213s ------------------------------ Captured log call ------------------------------- 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpw4i_19l1/runtime/kernel-a905df61-1eb9-4281-b0aa-6cce87f07a17.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55553 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42521 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: a905df61-1eb9-4281-b0aa-6cce87f07a17, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.900000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.520000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.640000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.370000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eb23908b-26bd-4890-add5-64c8d216a9ce 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eb23908b-26bd-4890-add5-64c8d216a9ce 213s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/21ae9195-9a64-4528-88a4-57eba8be2ce6 (::1) 1.180000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a905df61-1eb9-4281-b0aa-6cce87f07a17 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a905df61-1eb9-4281-b0aa-6cce87f07a17 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 213s await kernel_awaitable 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 213s result = await obj 213s ^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/de1d4be7-0ca0-4707-98cb-d9d27927d928 (::1) 213s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/de1d4be7-0ca0-4707-98cb-d9d27927d928', version='HTTP/1.1', remote_ip='::1') 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 213s result = await result 213s ^^^^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 213s future.result() 213s ~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 213s yield maybe_future(sm.delete_session(session_id)) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 213s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 213s raise self._exception.with_traceback(self._exception_tb) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 213s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 213s raise km.ready.exception() # type: ignore[misc] 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 213s await kernel_awaitable 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 213s result = await obj 213s ^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s WARNING NotebookApp:handlers.py:612 Unhandled error 213s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 213s 213s @self.addCleanup 213s def cleanup_sessions(): 213s for session in self.sess_api.list().json(): 213s > self.sess_api.delete(session['id']) 213s 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 213s return self._req('DELETE', id) 213s ^^^^^^^^^^^^^^^^^^^^^^^ 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 213s response.raise_for_status() 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s 213s self = 213s 213s def raise_for_status(self): 213s """Raises :class:`HTTPError`, if one occurred.""" 213s 213s http_error_msg = "" 213s if isinstance(self.reason, bytes): 213s # We attempt to decode utf-8 first because some servers 213s # choose to localize their reason strings. If the string 213s # isn't utf-8, we fall back to iso-8859-1 for all other 213s # encodings. (See PR #3538) 213s try: 213s reason = self.reason.decode("utf-8") 213s except UnicodeDecodeError: 213s reason = self.reason.decode("iso-8859-1") 213s else: 213s reason = self.reason 213s 213s if 400 <= self.status_code < 500: 213s http_error_msg = ( 213s f"{self.status_code} Client Error: {reason} for url: {self.url}" 213s ) 213s 213s elif 500 <= self.status_code < 600: 213s http_error_msg = ( 213s f"{self.status_code} Server Error: {reason} for url: {self.url}" 213s ) 213s 213s if http_error_msg: 213s > raise HTTPError(http_error_msg, response=self) 213s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/de1d4be7-0ca0-4707-98cb-d9d27927d928 213s 213s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 213s ----------------------------- Captured stderr call ----------------------------- 213s Traceback (most recent call last): 213s ------------------------------ Captured log call ------------------------------- 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.520000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpw4i_19l1/runtime/kernel-c7f426e3-b24a-4bad-91ff-17a1683b3e4b.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54919 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47673 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: c7f426e3-b24a-4bad-91ff-17a1683b3e4b, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.920000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a905df61-1eb9-4281-b0aa-6cce87f07a17 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a905df61-1eb9-4281-b0aa-6cce87f07a17 213s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/de1d4be7-0ca0-4707-98cb-d9d27927d928 (::1) 0.690000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.370000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c7f426e3-b24a-4bad-91ff-17a1683b3e4b 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c7f426e3-b24a-4bad-91ff-17a1683b3e4b 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 213s await kernel_awaitable 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 213s result = await obj 213s ^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/de1d4be7-0ca0-4707-98cb-d9d27927d928 (::1) 213s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/de1d4be7-0ca0-4707-98cb-d9d27927d928', version='HTTP/1.1', remote_ip='::1') 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 213s result = await result 213s ^^^^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 213s future.result() 213s ~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 213s yield maybe_future(sm.delete_session(session_id)) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 213s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 213s raise self._exception.with_traceback(self._exception_tb) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 213s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 213s raise km.ready.exception() # type: ignore[misc] 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 213s await kernel_awaitable 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 213s result = await obj 213s ^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s WARNING NotebookApp:handlers.py:612 Unhandled error 213s ERROR NotebookApp:log.py:55 { 213s "Host": "localhost:12341", 213s "Accept": "*/*", 213s "User-Agent": "python-requests/2.32.5" 213s } 213s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/de1d4be7-0ca0-4707-98cb-d9d27927d928 (::1) 3.760000ms referer=None 213s --------------------------- Captured stderr teardown --------------------------- 213s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 213s return _run_code(code, main_globals, None, 213s "__main__", mod_spec) 213s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 213s exec(code, run_globals) 213s ~~~~^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 213s from ipykernel import kernelapp as app 213s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 213s from .connect import * # noqa: F403 213s ^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 213s from subprocess import PIPE, Popen 213s File "", line 1360, in _find_and_load 213s File "", line 1331, in _find_and_load_unlocked 213s File "", line 935, in _load_unlocked 213s File "", line 1019, in exec_module 213s File "", line 1152, in get_code 213s File "", line 781, in _compile_bytecode 213s KeyboardInterrupt 213s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 213s 213s @self.addCleanup 213s def cleanup_sessions(): 213s for session in self.sess_api.list().json(): 213s > self.sess_api.delete(session['id']) 213s 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 213s return self._req('DELETE', id) 213s ^^^^^^^^^^^^^^^^^^^^^^^ 213s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 213s response.raise_for_status() 213s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 213s 213s self = 213s 213s def raise_for_status(self): 213s """Raises :class:`HTTPError`, if one occurred.""" 213s 213s http_error_msg = "" 213s if isinstance(self.reason, bytes): 213s # We attempt to decode utf-8 first because some servers 213s # choose to localize their reason strings. If the string 213s # isn't utf-8, we fall back to iso-8859-1 for all other 213s # encodings. (See PR #3538) 213s try: 213s reason = self.reason.decode("utf-8") 213s except UnicodeDecodeError: 213s reason = self.reason.decode("iso-8859-1") 213s else: 213s reason = self.reason 213s 213s if 400 <= self.status_code < 500: 213s http_error_msg = ( 213s f"{self.status_code} Client Error: {reason} for url: {self.url}" 213s ) 213s 213s elif 500 <= self.status_code < 600: 213s http_error_msg = ( 213s f"{self.status_code} Server Error: {reason} for url: {self.url}" 213s ) 213s 213s if http_error_msg: 213s > raise HTTPError(http_error_msg, response=self) 213s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/de1d4be7-0ca0-4707-98cb-d9d27927d928 213s 213s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 213s ----------------------------- Captured stderr call ----------------------------- 213s Traceback (most recent call last): 213s ------------------------------ Captured log call ------------------------------- 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.320000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 213s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpw4i_19l1/runtime/kernel-907ed078-0218-4e13-840d-1c483f56aeac.json'] 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45835 213s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33477 213s INFO NotebookApp:kernelmanager.py:179 Kernel started: 907ed078-0218-4e13-840d-1c483f56aeac, name: python3 213s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpw4i_19l1/notebooks/foo'} 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c7f426e3-b24a-4bad-91ff-17a1683b3e4b 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c7f426e3-b24a-4bad-91ff-17a1683b3e4b 213s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/de1d4be7-0ca0-4707-98cb-d9d27927d928 (::1) 13.220000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.360000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.170000ms 213s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 213s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 907ed078-0218-4e13-840d-1c483f56aeac 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 907ed078-0218-4e13-840d-1c483f56aeac 213s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 213s await kernel_awaitable 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 213s result = await obj 213s ^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/de1d4be7-0ca0-4707-98cb-d9d27927d928 (::1) 213s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/de1d4be7-0ca0-4707-98cb-d9d27927d928', version='HTTP/1.1', remote_ip='::1') 213s Traceback (most recent call last): 213s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 213s result = await result 213s ^^^^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 213s future.result() 213s ~~~~~~~~~~~~~^^ 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 213s yield maybe_future(sm.delete_session(session_id)) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 213s yielded = self.gen.throw(exc) 213s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 213s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 213s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 213s value = future.result() 213s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 213s raise self._exception.with_traceback(self._exception_tb) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 213s result = coro.send(None) 213s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 213s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 213s raise km.ready.exception() # type: ignore[misc] 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 213s await kernel_awaitable 213s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 213s result = await obj 213s ^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 213s raise e 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 213s out = await method(self, *args, **kwargs) 213s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 213s await self._async_finish_shutdown(restart=restart) 213s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 213s await asyncio.wait_for( 213s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 213s ) 213s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 213s async with timeouts.timeout(timeout): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^ 213s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 213s raise RuntimeError("Timeout should be used inside a task") 213s RuntimeError: Timeout should be used inside a task 213s WARNING NotebookApp:handlers.py:612 Unhandled error 213s ERROR NotebookApp:log.py:55 { 213s "Host": "localhost:12341", 213s "Accept": "*/*", 213s "User-Agent": "python-requests/2.32.5" 213s } 213s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/de1d4be7-0ca0-4707-98cb-d9d27927d928 (::1) 3.780000ms referer=None 213s --------------------------- Captured stderr teardown --------------------------- 213s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 213s return _run_code(code, main_globals, None, 213s "__main__", mod_spec) 213s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 213s exec(code, run_globals) 213s ~~~~^^^^^^^^^^^^^^^^^^^ 213s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 213s from ipykernel import kernelapp as app 213s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 213s from .connect import * # noqa: F403 213s ^^^^^^^^^^^^^^^^^^^^^^ 213s File "", line 1360, in _find_and_load 213s File "", line 1322, in _find_and_load_unlocked 213s File "", line 1262, in _find_spec 213s File "", line 1556, in find_spec 213s File "", line 1530, in _get_spec 213s File "", line 1662, in find_spec 213s File "", line 166, in _path_isfile 213s File "", line 158, in _path_is_mode_type 213s File "", line 152, in _path_stat 213s KeyboardInterrupt 213s ---------------------------- Captured log teardown ----------------------------- 213s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a905df61-1eb9-4281-b0aa-6cce87f07a17 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eb23908b-26bd-4890-add5-64c8d216a9ce 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a888fef9-6116-49d3-ba18-0c41f0861a2c 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c54c7b6d-6dff-4ffe-8c28-c8f61190073a 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 907ed078-0218-4e13-840d-1c483f56aeac 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c7f426e3-b24a-4bad-91ff-17a1683b3e4b 213s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f13cb1a2-d70e-4634-8f39-87fdf8e2edef 213s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 213s =============================== warnings summary =============================== 213s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 213s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 213s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 213s return LooseVersion(v) >= LooseVersion(check) 213s 213s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 213s services/kernels/tests/test_kernels_api.py: 65 warnings 213s services/sessions/tests/test_sessions_api.py: 88 warnings 213s /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). 213s dt = unaware(*args, **kwargs) 213s 213s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 213s /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 213s pytestmark = pytest.mark.integration_tests 213s 213s services/kernels/tests/test_kernels_api.py: 6 warnings 213s services/sessions/tests/test_sessions_api.py: 6 warnings 213s /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 213s policy = events.get_event_loop_policy() 213s 213s services/kernels/tests/test_kernels_api.py: 24 warnings 213s services/sessions/tests/test_sessions_api.py: 19 warnings 213s /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 213s loop = events.get_event_loop_policy().get_event_loop() 213s 213s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 213s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 213s loop.make_current() 213s 213s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 213s =========================== short test summary info ============================ 213s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 213s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 213s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 213s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 213s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 213s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 213s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 213s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 213s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 213s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 213s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 213s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 213s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 213s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 213s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 213s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 213s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 213s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 213s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 213s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 213s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 213s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 213s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 213s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 213s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 213s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 213s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 213s ========== 23 failed, 307 deselected, 213 warnings, 4 errors in 3.19s ========== 213s *** END OF RUN 4: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 213s *** 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 215s ============================= test session starts ============================== 215s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 215s rootdir: /tmp/autopkgtest.g9YpMG/autopkgtest_tmp 215s plugins: typeguard-4.4.4 215s collected 330 items / 307 deselected / 23 selected 215s run-last-failure: rerun previous 23 failures 215s 216s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 39%] 217s services/sessions/tests/test_sessions_api.py FFFFFEFFFFFFFEFF [100%] 217s 217s ==================================== ERRORS ==================================== 217s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 217s 217s self = 217s 217s def tearDown(self): 217s for k in self.kern_api.list().json(): 217s > self.kern_api.shutdown(k['id']) 217s 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 217s return self._req('DELETE', id) 217s ^^^^^^^^^^^^^^^^^^^^^^^ 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 217s response.raise_for_status() 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s 217s self = 217s 217s def raise_for_status(self): 217s """Raises :class:`HTTPError`, if one occurred.""" 217s 217s http_error_msg = "" 217s if isinstance(self.reason, bytes): 217s # We attempt to decode utf-8 first because some servers 217s # choose to localize their reason strings. If the string 217s # isn't utf-8, we fall back to iso-8859-1 for all other 217s # encodings. (See PR #3538) 217s try: 217s reason = self.reason.decode("utf-8") 217s except UnicodeDecodeError: 217s reason = self.reason.decode("iso-8859-1") 217s else: 217s reason = self.reason 217s 217s if 400 <= self.status_code < 500: 217s http_error_msg = ( 217s f"{self.status_code} Client Error: {reason} for url: {self.url}" 217s ) 217s 217s elif 500 <= self.status_code < 600: 217s http_error_msg = ( 217s f"{self.status_code} Server Error: {reason} for url: {self.url}" 217s ) 217s 217s if http_error_msg: 217s > raise HTTPError(http_error_msg, response=self) 217s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/3f1face0-8c63-4008-a0d2-17787ad5a612 217s 217s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 217s ----------------------------- Captured stderr call ----------------------------- 217s Traceback (most recent call last): 217s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 217s return _run_code(code, main_globals, None, 217s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 217s exec(code, run_globals) 217s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 217s from pathlib import Path 217s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 217s from ._local import * 217s File "/usr/lib/python3.13/pathlib/_local.py", line 6, in 217s import warnings 217s File "", line 1360, in _find_and_load 217s File "", line 1331, in _find_and_load_unlocked 217s File "", line 935, in _load_unlocked 217s File "", line 1019, in exec_module 217s File "", line 1152, in get_code 217s File "", line 781, in _compile_bytecode 217s KeyboardInterrupt 217s Traceback (most recent call last): 217s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 217s return _run_code(code, main_globals, None, 217s "__main__", mod_spec) 217s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 217s exec(code, run_globals) 217s ~~~~^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 217s from ipykernel import kernelapp as app 217s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 217s from .connect import * # noqa: F403 217s ^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 217s import jupyter_client 217s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 217s from .asynchronous import AsyncKernelClient 217s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 217s from .client import AsyncKernelClient # noqa 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 217s import zmq.asyncio 217s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 217s import asyncio 217s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 217s from .base_events import * 217s File "/usr/lib/python3.13/asyncio/base_events.py", line 39, in 217s from . import coroutines 217s File "/usr/lib/python3.13/asyncio/coroutines.py", line 4, in 217s import inspect 217s File "/usr/lib/python3.13/inspect.py", line 145, in 217s import ast 217s File "/usr/lib/python3.13/ast.py", line 703, in 217s @_simple_enum(IntEnum) 217s ~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.13/enum.py", line 1909, in convert_class 217s setattr(enum_class, name, member) 217s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3.13/enum.py", line 837, in __setattr__ 217s member_map = cls.__dict__.get('_member_map_', {}) 217s KeyboardInterrupt 217s ------------------------------ Captured log call ------------------------------- 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5560hb2n/runtime/kernel-3f1face0-8c63-4008-a0d2-17787ad5a612.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55809 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33107 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3f1face0-8c63-4008-a0d2-17787ad5a612, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.120000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.290000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5560hb2n/runtime/kernel-76013a29-1d25-4d6a-9716-7f98f3957d6f.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54951 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38057 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: 76013a29-1d25-4d6a-9716-7f98f3957d6f, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.940000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.430000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 76013a29-1d25-4d6a-9716-7f98f3957d6f 217s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/76013a29-1d25-4d6a-9716-7f98f3957d6f/interrupt (::1) 1.470000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 217s yield maybe_future(km.restart_kernel(kernel_id)) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 217s raise self._exception.with_traceback(self._exception_tb) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 217s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 217s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 217s return _runner_map[name].run(inner) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 217s return fut.result(None) 217s ~~~~~~~~~~^^^^^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 217s return self.__get_result() 217s ~~~~~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 217s raise self._exception 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 217s await ensure_async(kernel.restart_kernel(now=now)) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 217s return _runner_map[name].run(inner) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 217s return fut.result(None) 217s ~~~~~~~~~~^^^^^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 217s return self.__get_result() 217s ~~~~~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 217s raise self._exception 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 217s await self._async_shutdown_kernel(now=now, restart=True) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:log.py:55 { 217s "Host": "localhost:12341", 217s "Accept": "*/*", 217s "User-Agent": "python-requests/2.32.5" 217s } 217s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/76013a29-1d25-4d6a-9716-7f98f3957d6f/restart (::1) 7.460000ms referer=None 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.410000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3f1face0-8c63-4008-a0d2-17787ad5a612 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3f1face0-8c63-4008-a0d2-17787ad5a612 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/3f1face0-8c63-4008-a0d2-17787ad5a612 (::1) 217s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/3f1face0-8c63-4008-a0d2-17787ad5a612', version='HTTP/1.1', remote_ip='::1') 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 217s result = await result 217s ^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 217s yielded = ctx_run(next, result) 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 217s yield maybe_future(km.shutdown_kernel(kernel_id)) 217s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 217s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 217s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 217s return _runner_map[name].run(inner) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 217s return fut.result(None) 217s ~~~~~~~~~~^^^^^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 217s return self.__get_result() 217s ~~~~~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 217s raise self._exception 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 217s stopper = ensure_async(km.shutdown_kernel(now, restart)) 217s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 217s return _runner_map[name].run(inner) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 217s return fut.result(None) 217s ~~~~~~~~~~^^^^^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 217s return self.__get_result() 217s ~~~~~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 217s raise self._exception 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s WARNING NotebookApp:handlers.py:612 Unhandled error 217s ERROR NotebookApp:log.py:55 { 217s "Host": "localhost:12341", 217s "Accept": "*/*", 217s "User-Agent": "python-requests/2.32.5" 217s } 217s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/3f1face0-8c63-4008-a0d2-17787ad5a612 (::1) 5.760000ms referer=None 217s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 217s 217s self = 217s 217s def tearDown(self): 217s for k in self.kern_api.list().json(): 217s > self.kern_api.shutdown(k['id']) 217s 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 217s return self._req('DELETE', id) 217s ^^^^^^^^^^^^^^^^^^^^^^^ 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 217s response.raise_for_status() 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s 217s self = 217s 217s def raise_for_status(self): 217s """Raises :class:`HTTPError`, if one occurred.""" 217s 217s http_error_msg = "" 217s if isinstance(self.reason, bytes): 217s # We attempt to decode utf-8 first because some servers 217s # choose to localize their reason strings. If the string 217s # isn't utf-8, we fall back to iso-8859-1 for all other 217s # encodings. (See PR #3538) 217s try: 217s reason = self.reason.decode("utf-8") 217s except UnicodeDecodeError: 217s reason = self.reason.decode("iso-8859-1") 217s else: 217s reason = self.reason 217s 217s if 400 <= self.status_code < 500: 217s http_error_msg = ( 217s f"{self.status_code} Client Error: {reason} for url: {self.url}" 217s ) 217s 217s elif 500 <= self.status_code < 600: 217s http_error_msg = ( 217s f"{self.status_code} Server Error: {reason} for url: {self.url}" 217s ) 217s 217s if http_error_msg: 217s > raise HTTPError(http_error_msg, response=self) 217s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/8a48132d-00b2-4cbf-89f2-78e1d183e6ca 217s 217s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 217s ----------------------------- Captured stderr call ----------------------------- 217s Traceback (most recent call last): 217s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 217s return _run_code(code, main_globals, None, 217s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 217s exec(code, run_globals) 217s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 217s from pathlib import Path 217s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 217s from ._abc import * 217s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 217s from glob import _Globber, _no_recurse_symlinks 217s File "/usr/lib/python3.13/glob.py", line 3, in 217s import contextlib 217s File "", line 1360, in _find_and_load 217s File "", line 1331, in _find_and_load_unlocked 217s File "", line 935, in _load_unlocked 217s File "", line 1019, in exec_module 217s File "", line 1152, in get_code 217s File "", line 781, in _compile_bytecode 217s KeyboardInterrupt 217s Traceback (most recent call last): 217s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 217s return _run_code(code, main_globals, None, 217s "__main__", mod_spec) 217s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 217s exec(code, run_globals) 217s ~~~~^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 217s from ipykernel import kernelapp as app 217s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 217s from .connect import * # noqa: F403 217s ^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 217s import jupyter_client 217s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 217s from .asynchronous import AsyncKernelClient 217s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 217s from .client import AsyncKernelClient # noqa 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 217s import zmq.asyncio 217s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 217s import asyncio 217s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 217s from .base_events import * 217s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 217s import ssl 217s File "/usr/lib/python3.13/ssl.py", line 227, in 217s @_simple_enum(_IntEnum) 217s ~~~~~~~~~~~~^^^^^^^^^^ 217s File "/usr/lib/python3.13/enum.py", line 1809, in convert_class 217s enum_method = getattr(etype, name) 217s KeyboardInterrupt 217s ------------------------------ Captured log call ------------------------------- 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjd3m0ckk/runtime/kernel-8a48132d-00b2-4cbf-89f2-78e1d183e6ca.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54123 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49263 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8a48132d-00b2-4cbf-89f2-78e1d183e6ca, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.860000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.420000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjd3m0ckk/runtime/kernel-e7067647-2236-4bff-9d47-aec5851a58a1.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60833 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59189 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: e7067647-2236-4bff-9d47-aec5851a58a1, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.060000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.300000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: e7067647-2236-4bff-9d47-aec5851a58a1 217s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/e7067647-2236-4bff-9d47-aec5851a58a1/interrupt (::1) 2.880000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 217s yield maybe_future(km.restart_kernel(kernel_id)) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 217s raise self._exception.with_traceback(self._exception_tb) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 217s result = coro.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 217s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 217s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 217s yield self # This tells Task to wait for completion. 217s ^^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 217s future.result() 217s ~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 217s raise self._exception.with_traceback(self._exception_tb) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 217s await ensure_async(kernel.restart_kernel(now=now)) 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 217s result = await obj 217s ^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 217s await self._async_shutdown_kernel(now=now, restart=True) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:log.py:55 { 217s "Host": "localhost:12341", 217s "Accept": "*/*", 217s "User-Agent": "python-requests/2.32.5" 217s } 217s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/e7067647-2236-4bff-9d47-aec5851a58a1/restart (::1) 4.120000ms referer=None 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.390000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8a48132d-00b2-4cbf-89f2-78e1d183e6ca 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8a48132d-00b2-4cbf-89f2-78e1d183e6ca 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 217s await kernel_awaitable 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 217s result = await obj 217s ^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/8a48132d-00b2-4cbf-89f2-78e1d183e6ca (::1) 217s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/8a48132d-00b2-4cbf-89f2-78e1d183e6ca', version='HTTP/1.1', remote_ip='::1') 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 217s result = await result 217s ^^^^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 217s future.result() 217s ~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 217s yield maybe_future(km.shutdown_kernel(kernel_id)) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 217s raise self._exception.with_traceback(self._exception_tb) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 217s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 217s raise km.ready.exception() # type: ignore[misc] 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 217s await kernel_awaitable 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 217s result = await obj 217s ^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s WARNING NotebookApp:handlers.py:612 Unhandled error 217s ERROR NotebookApp:log.py:55 { 217s "Host": "localhost:12341", 217s "Accept": "*/*", 217s "User-Agent": "python-requests/2.32.5" 217s } 217s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/8a48132d-00b2-4cbf-89f2-78e1d183e6ca (::1) 3.690000ms referer=None 217s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 217s 217s @self.addCleanup 217s def cleanup_sessions(): 217s for session in self.sess_api.list().json(): 217s > self.sess_api.delete(session['id']) 217s 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 217s return self._req('DELETE', id) 217s ^^^^^^^^^^^^^^^^^^^^^^^ 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 217s response.raise_for_status() 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s 217s self = 217s 217s def raise_for_status(self): 217s """Raises :class:`HTTPError`, if one occurred.""" 217s 217s http_error_msg = "" 217s if isinstance(self.reason, bytes): 217s # We attempt to decode utf-8 first because some servers 217s # choose to localize their reason strings. If the string 217s # isn't utf-8, we fall back to iso-8859-1 for all other 217s # encodings. (See PR #3538) 217s try: 217s reason = self.reason.decode("utf-8") 217s except UnicodeDecodeError: 217s reason = self.reason.decode("iso-8859-1") 217s else: 217s reason = self.reason 217s 217s if 400 <= self.status_code < 500: 217s http_error_msg = ( 217s f"{self.status_code} Client Error: {reason} for url: {self.url}" 217s ) 217s 217s elif 500 <= self.status_code < 600: 217s http_error_msg = ( 217s f"{self.status_code} Server Error: {reason} for url: {self.url}" 217s ) 217s 217s if http_error_msg: 217s > raise HTTPError(http_error_msg, response=self) 217s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/37023bde-11df-4233-a591-a2ca720a5efd 217s 217s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 217s ----------------------------- Captured stderr call ----------------------------- 217s Traceback (most recent call last): 217s ------------------------------ Captured log call ------------------------------- 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwrjfi5bn/runtime/kernel-32025311-0b86-434d-857b-59d23c374fb5.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57989 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53891 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: 32025311-0b86-434d-857b-59d23c374fb5, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.120000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.520000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.710000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.430000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e6a9510e-bcfa-4202-92eb-ab194256bf9b 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e6a9510e-bcfa-4202-92eb-ab194256bf9b 217s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/70644599-d4c6-4447-8abc-44c51caa943d (::1) 1.350000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 32025311-0b86-434d-857b-59d23c374fb5 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 32025311-0b86-434d-857b-59d23c374fb5 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/37023bde-11df-4233-a591-a2ca720a5efd (::1) 217s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/37023bde-11df-4233-a591-a2ca720a5efd', version='HTTP/1.1', remote_ip='::1') 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 217s result = await result 217s ^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 217s yield maybe_future(sm.delete_session(session_id)) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 217s yielded = self.gen.send(value) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 217s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 217s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 217s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 217s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 217s return _runner_map[name].run(inner) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 217s return fut.result(None) 217s ~~~~~~~~~~^^^^^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 217s return self.__get_result() 217s ~~~~~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 217s raise self._exception 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 217s stopper = ensure_async(km.shutdown_kernel(now, restart)) 217s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 217s return _runner_map[name].run(inner) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 217s return fut.result(None) 217s ~~~~~~~~~~^^^^^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 217s return self.__get_result() 217s ~~~~~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 217s raise self._exception 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s WARNING NotebookApp:handlers.py:612 Unhandled error 217s ERROR NotebookApp:log.py:55 { 217s "Host": "localhost:12341", 217s "Accept": "*/*", 217s "User-Agent": "python-requests/2.32.5" 217s } 217s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/37023bde-11df-4233-a591-a2ca720a5efd (::1) 3.980000ms referer=None 217s --------------------------- Captured stderr teardown --------------------------- 217s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 217s return _run_code(code, main_globals, None, 217s "__main__", mod_spec) 217s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 217s exec(code, run_globals) 217s ~~~~^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 217s from ipykernel import kernelapp as app 217s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 217s from .connect import * # noqa: F403 217s ^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 217s from typing import TYPE_CHECKING, Any 217s File "/usr/lib/python3.13/typing.py", line 1726, in 217s class _CallableType(_SpecialGenericAlias, _root=True): 217s ...<29 lines>... 217s return self.copy_with(params) 217s File "/usr/lib/python3.13/typing.py", line 1745, in _CallableType 217s @_tp_cache 217s ^^^^^^^^^ 217s File "/usr/lib/python3.13/typing.py", line 436, in _tp_cache 217s return decorator(func) 217s File "/usr/lib/python3.13/typing.py", line 415, in decorator 217s def decorator(func): 217s 217s KeyboardInterrupt 217s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 217s 217s @self.addCleanup 217s def cleanup_sessions(): 217s for session in self.sess_api.list().json(): 217s > self.sess_api.delete(session['id']) 217s 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 217s return self._req('DELETE', id) 217s ^^^^^^^^^^^^^^^^^^^^^^^ 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 217s response.raise_for_status() 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s 217s self = 217s 217s def raise_for_status(self): 217s """Raises :class:`HTTPError`, if one occurred.""" 217s 217s http_error_msg = "" 217s if isinstance(self.reason, bytes): 217s # We attempt to decode utf-8 first because some servers 217s # choose to localize their reason strings. If the string 217s # isn't utf-8, we fall back to iso-8859-1 for all other 217s # encodings. (See PR #3538) 217s try: 217s reason = self.reason.decode("utf-8") 217s except UnicodeDecodeError: 217s reason = self.reason.decode("iso-8859-1") 217s else: 217s reason = self.reason 217s 217s if 400 <= self.status_code < 500: 217s http_error_msg = ( 217s f"{self.status_code} Client Error: {reason} for url: {self.url}" 217s ) 217s 217s elif 500 <= self.status_code < 600: 217s http_error_msg = ( 217s f"{self.status_code} Server Error: {reason} for url: {self.url}" 217s ) 217s 217s if http_error_msg: 217s > raise HTTPError(http_error_msg, response=self) 217s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5101daab-8446-4c64-9431-6463209b84fa 217s 217s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 217s ----------------------------- Captured stderr call ----------------------------- 217s Traceback (most recent call last): 217s ------------------------------ Captured log call ------------------------------- 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjwjss37h/runtime/kernel-391e9082-3413-453f-b776-c4798bfdae44.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48223 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60943 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: 391e9082-3413-453f-b776-c4798bfdae44, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.990000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.560000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.770000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.380000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fcb71afa-0a25-4357-9204-d426559c6b11 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fcb71afa-0a25-4357-9204-d426559c6b11 217s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/1cfef554-66ce-455f-abd0-98a6943b6d3f (::1) 0.500000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 391e9082-3413-453f-b776-c4798bfdae44 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 391e9082-3413-453f-b776-c4798bfdae44 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 217s await kernel_awaitable 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 217s result = await obj 217s ^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5101daab-8446-4c64-9431-6463209b84fa (::1) 217s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5101daab-8446-4c64-9431-6463209b84fa', version='HTTP/1.1', remote_ip='::1') 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 217s result = await result 217s ^^^^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 217s future.result() 217s ~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 217s yield maybe_future(sm.delete_session(session_id)) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 217s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 217s raise self._exception.with_traceback(self._exception_tb) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 217s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 217s raise km.ready.exception() # type: ignore[misc] 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 217s await kernel_awaitable 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 217s result = await obj 217s ^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s WARNING NotebookApp:handlers.py:612 Unhandled error 217s ERROR NotebookApp:log.py:55 { 217s "Host": "localhost:12341", 217s "Accept": "*/*", 217s "User-Agent": "python-requests/2.32.5" 217s } 217s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/5101daab-8446-4c64-9431-6463209b84fa (::1) 3.660000ms referer=None 217s =================================== FAILURES =================================== 217s ______________________ KernelAPITest.test_default_kernel _______________________ 217s 217s self = 217s 217s def tearDown(self): 217s for k in self.kern_api.list().json(): 217s > self.kern_api.shutdown(k['id']) 217s 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 217s return self._req('DELETE', id) 217s ^^^^^^^^^^^^^^^^^^^^^^^ 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 217s response.raise_for_status() 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s 217s self = 217s 217s def raise_for_status(self): 217s """Raises :class:`HTTPError`, if one occurred.""" 217s 217s http_error_msg = "" 217s if isinstance(self.reason, bytes): 217s # We attempt to decode utf-8 first because some servers 217s # choose to localize their reason strings. If the string 217s # isn't utf-8, we fall back to iso-8859-1 for all other 217s # encodings. (See PR #3538) 217s try: 217s reason = self.reason.decode("utf-8") 217s except UnicodeDecodeError: 217s reason = self.reason.decode("iso-8859-1") 217s else: 217s reason = self.reason 217s 217s if 400 <= self.status_code < 500: 217s http_error_msg = ( 217s f"{self.status_code} Client Error: {reason} for url: {self.url}" 217s ) 217s 217s elif 500 <= self.status_code < 600: 217s http_error_msg = ( 217s f"{self.status_code} Server Error: {reason} for url: {self.url}" 217s ) 217s 217s if http_error_msg: 217s > raise HTTPError(http_error_msg, response=self) 217s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/96166705-0236-428a-b116-6028ea4011f2 217s 217s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 217s ------------------------------ Captured log setup ------------------------------ 217s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp5560hb2n/config', '/tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp5560hb2n/etc/jupyter'] for config files 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp5560hb2n/etc/jupyter 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp5560hb2n/config 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp5560hb2n/etc/jupyter 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp5560hb2n/config 217s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp5560hb2n/notebooks 217s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 217s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 217s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 217s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 217s WARNING NotebookApp:handlers.py:612 Forbidden 217s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.520000ms referer=None 217s ----------------------------- Captured stderr call ----------------------------- 217s Traceback (most recent call last): 217s ------------------------------ Captured log call ------------------------------- 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5560hb2n/runtime/kernel-96166705-0236-428a-b116-6028ea4011f2.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54289 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56465 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: 96166705-0236-428a-b116-6028ea4011f2, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 32.600000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.560000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 96166705-0236-428a-b116-6028ea4011f2 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 96166705-0236-428a-b116-6028ea4011f2 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/96166705-0236-428a-b116-6028ea4011f2 (::1) 217s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/96166705-0236-428a-b116-6028ea4011f2', version='HTTP/1.1', remote_ip='::1') 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 217s result = await result 217s ^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 217s yielded = ctx_run(next, result) 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 217s yield maybe_future(km.shutdown_kernel(kernel_id)) 217s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 217s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 217s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 217s return _runner_map[name].run(inner) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 217s return fut.result(None) 217s ~~~~~~~~~~^^^^^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 217s return self.__get_result() 217s ~~~~~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 217s raise self._exception 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 217s stopper = ensure_async(km.shutdown_kernel(now, restart)) 217s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 217s return _runner_map[name].run(inner) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 217s return fut.result(None) 217s ~~~~~~~~~~^^^^^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 217s return self.__get_result() 217s ~~~~~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 217s raise self._exception 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s WARNING NotebookApp:handlers.py:612 Unhandled error 217s ERROR NotebookApp:log.py:55 { 217s "Host": "localhost:12341", 217s "Accept": "*/*", 217s "User-Agent": "python-requests/2.32.5" 217s } 217s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/96166705-0236-428a-b116-6028ea4011f2 (::1) 5.200000ms referer=None 217s --------------------------- Captured stderr teardown --------------------------- 217s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 217s return _run_code(code, main_globals, None, 217s "__main__", mod_spec) 217s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 217s exec(code, run_globals) 217s ~~~~^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 217s from ipykernel import kernelapp as app 217s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 217s from .connect import * # noqa: F403 217s ^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 217s import json 217s File "/usr/lib/python3.13/json/__init__.py", line 107, in 217s from .encoder import JSONEncoder 217s File "/usr/lib/python3.13/json/encoder.py", line 74, in 217s class JSONEncoder(object): 217s ...<188 lines>... 217s return _iterencode(o, 0) 217s KeyboardInterrupt 217s ______________________ KernelAPITest.test_kernel_handler _______________________ 217s 217s self = 217s 217s def test_kernel_handler(self): 217s # GET kernel with given id 217s kid = self.kern_api.start().json()['id'] 217s r = self.kern_api.get(kid) 217s kern1 = r.json() 217s self.assertEqual(r.status_code, 200) 217s assert isinstance(kern1, dict) 217s self.assertIn('id', kern1) 217s self.assertEqual(kern1['id'], kid) 217s 217s # Request a bad kernel id and check that a JSON 217s # message is returned! 217s bad_id = '111-111-111-111-111' 217s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 217s self.kern_api.get(bad_id) 217s 217s # DELETE kernel with id 217s > r = self.kern_api.shutdown(kid) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 217s return self._req('DELETE', id) 217s ^^^^^^^^^^^^^^^^^^^^^^^ 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 217s response.raise_for_status() 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s 217s self = 217s 217s def raise_for_status(self): 217s """Raises :class:`HTTPError`, if one occurred.""" 217s 217s http_error_msg = "" 217s if isinstance(self.reason, bytes): 217s # We attempt to decode utf-8 first because some servers 217s # choose to localize their reason strings. If the string 217s # isn't utf-8, we fall back to iso-8859-1 for all other 217s # encodings. (See PR #3538) 217s try: 217s reason = self.reason.decode("utf-8") 217s except UnicodeDecodeError: 217s reason = self.reason.decode("iso-8859-1") 217s else: 217s reason = self.reason 217s 217s if 400 <= self.status_code < 500: 217s http_error_msg = ( 217s f"{self.status_code} Client Error: {reason} for url: {self.url}" 217s ) 217s 217s elif 500 <= self.status_code < 600: 217s http_error_msg = ( 217s f"{self.status_code} Server Error: {reason} for url: {self.url}" 217s ) 217s 217s if http_error_msg: 217s > raise HTTPError(http_error_msg, response=self) 217s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/e147d7d8-3db0-4054-bc6e-181106b34ec8 217s 217s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 217s ----------------------------- Captured stderr call ----------------------------- 217s Traceback (most recent call last): 217s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 217s return _run_code(code, main_globals, None, 217s "__main__", mod_spec) 217s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 217s exec(code, run_globals) 217s ~~~~^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 217s from ipykernel import kernelapp as app 217s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 217s from .connect import * # noqa: F403 217s ^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 5, in 217s from __future__ import annotations 217s File "", line 1357, in _find_and_load 217s File "", line 418, in __enter__ 217s File "", line 311, in acquire 217s KeyboardInterrupt 217s ------------------------------ Captured log call ------------------------------- 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5560hb2n/runtime/kernel-e147d7d8-3db0-4054-bc6e-181106b34ec8.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34749 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47521 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: e147d7d8-3db0-4054-bc6e-181106b34ec8, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.690000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/e147d7d8-3db0-4054-bc6e-181106b34ec8 (::1) 0.510000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s 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 217s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 217s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.430000ms referer=None 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e147d7d8-3db0-4054-bc6e-181106b34ec8 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e147d7d8-3db0-4054-bc6e-181106b34ec8 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/e147d7d8-3db0-4054-bc6e-181106b34ec8 (::1) 217s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/e147d7d8-3db0-4054-bc6e-181106b34ec8', version='HTTP/1.1', remote_ip='::1') 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 217s result = await result 217s ^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 217s yielded = ctx_run(next, result) 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 217s yield maybe_future(km.shutdown_kernel(kernel_id)) 217s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 217s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 217s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 217s return _runner_map[name].run(inner) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 217s return fut.result(None) 217s ~~~~~~~~~~^^^^^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 217s return self.__get_result() 217s ~~~~~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 217s raise self._exception 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 217s stopper = ensure_async(km.shutdown_kernel(now, restart)) 217s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 217s return _runner_map[name].run(inner) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 217s return fut.result(None) 217s ~~~~~~~~~~^^^^^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 217s return self.__get_result() 217s ~~~~~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 217s raise self._exception 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s WARNING NotebookApp:handlers.py:612 Unhandled error 217s ERROR NotebookApp:log.py:55 { 217s "Host": "localhost:12341", 217s "Accept": "*/*", 217s "User-Agent": "python-requests/2.32.5" 217s } 217s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/e147d7d8-3db0-4054-bc6e-181106b34ec8 (::1) 4.630000ms referer=None 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.250000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 96166705-0236-428a-b116-6028ea4011f2 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 96166705-0236-428a-b116-6028ea4011f2 217s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/96166705-0236-428a-b116-6028ea4011f2 (::1) 0.450000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e147d7d8-3db0-4054-bc6e-181106b34ec8 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e147d7d8-3db0-4054-bc6e-181106b34ec8 217s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 217s 217s self = 217s 217s def test_main_kernel_handler(self): 217s # POST request 217s r = self.kern_api.start() 217s kern1 = r.json() 217s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 217s self.assertEqual(r.status_code, 201) 217s self.assertIsInstance(kern1, dict) 217s 217s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 217s expected_csp = '; '.join([ 217s "frame-ancestors 'self'", 217s 'report-uri ' + report_uri, 217s "default-src 'none'" 217s ]) 217s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 217s 217s # GET request 217s r = self.kern_api.list() 217s self.assertEqual(r.status_code, 200) 217s assert isinstance(r.json(), list) 217s self.assertEqual(r.json()[0]['id'], kern1['id']) 217s self.assertEqual(r.json()[0]['name'], kern1['name']) 217s 217s # create another kernel and check that they both are added to the 217s # list of kernels from a GET request 217s kern2 = self.kern_api.start().json() 217s assert isinstance(kern2, dict) 217s r = self.kern_api.list() 217s kernels = r.json() 217s self.assertEqual(r.status_code, 200) 217s assert isinstance(kernels, list) 217s self.assertEqual(len(kernels), 2) 217s 217s # Interrupt a kernel 217s r = self.kern_api.interrupt(kern2['id']) 217s self.assertEqual(r.status_code, 204) 217s 217s # Restart a kernel 217s > r = self.kern_api.restart(kern2['id']) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 217s return self._req('POST', url_path_join(id, 'restart')) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 217s response.raise_for_status() 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s 217s self = 217s 217s def raise_for_status(self): 217s """Raises :class:`HTTPError`, if one occurred.""" 217s 217s http_error_msg = "" 217s if isinstance(self.reason, bytes): 217s # We attempt to decode utf-8 first because some servers 217s # choose to localize their reason strings. If the string 217s # isn't utf-8, we fall back to iso-8859-1 for all other 217s # encodings. (See PR #3538) 217s try: 217s reason = self.reason.decode("utf-8") 217s except UnicodeDecodeError: 217s reason = self.reason.decode("iso-8859-1") 217s else: 217s reason = self.reason 217s 217s if 400 <= self.status_code < 500: 217s http_error_msg = ( 217s f"{self.status_code} Client Error: {reason} for url: {self.url}" 217s ) 217s 217s elif 500 <= self.status_code < 600: 217s http_error_msg = ( 217s f"{self.status_code} Server Error: {reason} for url: {self.url}" 217s ) 217s 217s if http_error_msg: 217s > raise HTTPError(http_error_msg, response=self) 217s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/76013a29-1d25-4d6a-9716-7f98f3957d6f/restart 217s 217s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 217s ----------------------------- Captured stderr call ----------------------------- 217s Traceback (most recent call last): 217s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 217s return _run_code(code, main_globals, None, 217s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 217s exec(code, run_globals) 217s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 217s from pathlib import Path 217s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 217s from ._local import * 217s File "/usr/lib/python3.13/pathlib/_local.py", line 6, in 217s import warnings 217s File "", line 1360, in _find_and_load 217s File "", line 1331, in _find_and_load_unlocked 217s File "", line 935, in _load_unlocked 217s File "", line 1019, in exec_module 217s File "", line 1152, in get_code 217s File "", line 781, in _compile_bytecode 217s KeyboardInterrupt 217s Traceback (most recent call last): 217s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 217s return _run_code(code, main_globals, None, 217s "__main__", mod_spec) 217s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 217s exec(code, run_globals) 217s ~~~~^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 217s from ipykernel import kernelapp as app 217s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 217s from .connect import * # noqa: F403 217s ^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 217s import jupyter_client 217s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 217s from .asynchronous import AsyncKernelClient 217s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 217s from .client import AsyncKernelClient # noqa 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 217s import zmq.asyncio 217s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 217s import asyncio 217s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 217s from .base_events import * 217s File "/usr/lib/python3.13/asyncio/base_events.py", line 39, in 217s from . import coroutines 217s File "/usr/lib/python3.13/asyncio/coroutines.py", line 4, in 217s import inspect 217s File "/usr/lib/python3.13/inspect.py", line 145, in 217s import ast 217s File "/usr/lib/python3.13/ast.py", line 703, in 217s @_simple_enum(IntEnum) 217s ~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.13/enum.py", line 1909, in convert_class 217s setattr(enum_class, name, member) 217s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3.13/enum.py", line 837, in __setattr__ 217s member_map = cls.__dict__.get('_member_map_', {}) 217s KeyboardInterrupt 217s ------------------------------ Captured log call ------------------------------- 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5560hb2n/runtime/kernel-3f1face0-8c63-4008-a0d2-17787ad5a612.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55809 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33107 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3f1face0-8c63-4008-a0d2-17787ad5a612, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.120000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.290000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5560hb2n/runtime/kernel-76013a29-1d25-4d6a-9716-7f98f3957d6f.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54951 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38057 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: 76013a29-1d25-4d6a-9716-7f98f3957d6f, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.940000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.430000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 76013a29-1d25-4d6a-9716-7f98f3957d6f 217s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/76013a29-1d25-4d6a-9716-7f98f3957d6f/interrupt (::1) 1.470000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 217s yield maybe_future(km.restart_kernel(kernel_id)) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 217s raise self._exception.with_traceback(self._exception_tb) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 217s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 217s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 217s return _runner_map[name].run(inner) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 217s return fut.result(None) 217s ~~~~~~~~~~^^^^^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 217s return self.__get_result() 217s ~~~~~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 217s raise self._exception 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 217s await ensure_async(kernel.restart_kernel(now=now)) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 217s return _runner_map[name].run(inner) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 217s return fut.result(None) 217s ~~~~~~~~~~^^^^^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 217s return self.__get_result() 217s ~~~~~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 217s raise self._exception 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 217s await self._async_shutdown_kernel(now=now, restart=True) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:log.py:55 { 217s "Host": "localhost:12341", 217s "Accept": "*/*", 217s "User-Agent": "python-requests/2.32.5" 217s } 217s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/76013a29-1d25-4d6a-9716-7f98f3957d6f/restart (::1) 7.460000ms referer=None 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.410000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3f1face0-8c63-4008-a0d2-17787ad5a612 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3f1face0-8c63-4008-a0d2-17787ad5a612 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/3f1face0-8c63-4008-a0d2-17787ad5a612 (::1) 217s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/3f1face0-8c63-4008-a0d2-17787ad5a612', version='HTTP/1.1', remote_ip='::1') 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 217s result = await result 217s ^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 217s yielded = ctx_run(next, result) 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 217s yield maybe_future(km.shutdown_kernel(kernel_id)) 217s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 217s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 217s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 217s return _runner_map[name].run(inner) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 217s return fut.result(None) 217s ~~~~~~~~~~^^^^^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 217s return self.__get_result() 217s ~~~~~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 217s raise self._exception 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 217s stopper = ensure_async(km.shutdown_kernel(now, restart)) 217s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 217s return _runner_map[name].run(inner) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 217s return fut.result(None) 217s ~~~~~~~~~~^^^^^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 217s return self.__get_result() 217s ~~~~~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 217s raise self._exception 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s WARNING NotebookApp:handlers.py:612 Unhandled error 217s ERROR NotebookApp:log.py:55 { 217s "Host": "localhost:12341", 217s "Accept": "*/*", 217s "User-Agent": "python-requests/2.32.5" 217s } 217s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/3f1face0-8c63-4008-a0d2-17787ad5a612 (::1) 5.760000ms referer=None 217s ________________________ KernelAPITest.test_no_kernels _________________________ 217s 217s self = 217s 217s def test_no_kernels(self): 217s """Make sure there are no kernels running at the start""" 217s kernels = self.kern_api.list().json() 217s > self.assertEqual(kernels, []) 217s E AssertionError: Lists differ: [{'id': '3f1face0-8c63-4008-a0d2-17787ad5a[281 chars]: 0}] != [] 217s E 217s E First list contains 2 additional elements. 217s E First extra element 0: 217s E {'id': '3f1face0-8c63-4008-a0d2-17787ad5a612', 'name': 'python3', 'last_activity': '2026-02-06T10:25:29.351937Z', 'execution_state': 'starting', 'connections': 0} 217s E 217s E + [] 217s E - [{'connections': 0, 217s E - 'execution_state': 'starting', 217s E - 'id': '3f1face0-8c63-4008-a0d2-17787ad5a612', 217s E - 'last_activity': '2026-02-06T10:25:29.351937Z', 217s E - 'name': 'python3'}, 217s E - {'connections': 0, 217s E - 'execution_state': 'starting', 217s E - 'id': '76013a29-1d25-4d6a-9716-7f98f3957d6f', 217s E - 'last_activity': '2026-02-06T10:25:29.371207Z', 217s E - 'name': 'python3'}] 217s 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 217s ------------------------------ Captured log call ------------------------------- 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.690000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.150000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3f1face0-8c63-4008-a0d2-17787ad5a612 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3f1face0-8c63-4008-a0d2-17787ad5a612 217s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/3f1face0-8c63-4008-a0d2-17787ad5a612 (::1) 1.400000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 76013a29-1d25-4d6a-9716-7f98f3957d6f 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 76013a29-1d25-4d6a-9716-7f98f3957d6f 217s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/76013a29-1d25-4d6a-9716-7f98f3957d6f (::1) 0.580000ms 217s ---------------------------- Captured log teardown ----------------------------- 217s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 217s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 217s _____________________ AsyncKernelAPITest.test_connections ______________________ 217s 217s self = 217s 217s def tearDown(self): 217s for k in self.kern_api.list().json(): 217s > self.kern_api.shutdown(k['id']) 217s 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 217s return self._req('DELETE', id) 217s ^^^^^^^^^^^^^^^^^^^^^^^ 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 217s response.raise_for_status() 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s 217s self = 217s 217s def raise_for_status(self): 217s """Raises :class:`HTTPError`, if one occurred.""" 217s 217s http_error_msg = "" 217s if isinstance(self.reason, bytes): 217s # We attempt to decode utf-8 first because some servers 217s # choose to localize their reason strings. If the string 217s # isn't utf-8, we fall back to iso-8859-1 for all other 217s # encodings. (See PR #3538) 217s try: 217s reason = self.reason.decode("utf-8") 217s except UnicodeDecodeError: 217s reason = self.reason.decode("iso-8859-1") 217s else: 217s reason = self.reason 217s 217s if 400 <= self.status_code < 500: 217s http_error_msg = ( 217s f"{self.status_code} Client Error: {reason} for url: {self.url}" 217s ) 217s 217s elif 500 <= self.status_code < 600: 217s http_error_msg = ( 217s f"{self.status_code} Server Error: {reason} for url: {self.url}" 217s ) 217s 217s if http_error_msg: 217s > raise HTTPError(http_error_msg, response=self) 217s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/14e3b630-9ca5-45ae-a085-3ac8ee1dc12f 217s 217s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 217s ------------------------------ Captured log setup ------------------------------ 217s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpjd3m0ckk/config', '/tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpjd3m0ckk/etc/jupyter'] for config files 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpjd3m0ckk/etc/jupyter 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpjd3m0ckk/config 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpjd3m0ckk/etc/jupyter 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpjd3m0ckk/config 217s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpjd3m0ckk/notebooks 217s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 217s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 217s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 217s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 217s WARNING NotebookApp:handlers.py:612 Forbidden 217s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.310000ms referer=None 217s ------------------------------ Captured log call ------------------------------- 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjd3m0ckk/runtime/kernel-14e3b630-9ca5-45ae-a085-3ac8ee1dc12f.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36935 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54101 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: 14e3b630-9ca5-45ae-a085-3ac8ee1dc12f, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.080000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/14e3b630-9ca5-45ae-a085-3ac8ee1dc12f (::1) 1.180000ms 217s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/14e3b630-9ca5-45ae-a085-3ac8ee1dc12f/channels 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 217s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 14e3b630-9ca5-45ae-a085-3ac8ee1dc12f 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38543 217s 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/'}]} 217s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 14e3b630-9ca5-45ae-a085-3ac8ee1dc12f) to 5.4 (client). 217s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/14e3b630-9ca5-45ae-a085-3ac8ee1dc12f/channels (::1) 294.060000ms 217s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/14e3b630-9ca5-45ae-a085-3ac8ee1dc12f/channels 217s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 14e3b630-9ca5-45ae-a085-3ac8ee1dc12f 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54101 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38543 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36935 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48195 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38543 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36935 217s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 217s Setting websocket_ping_timeout=30000 217s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 14e3b630-9ca5-45ae-a085-3ac8ee1dc12f 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/14e3b630-9ca5-45ae-a085-3ac8ee1dc12f (::1) 0.510000ms 217s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 14e3b630-9ca5-45ae-a085-3ac8ee1dc12f 217s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 14e3b630-9ca5-45ae-a085-3ac8ee1dc12f 217s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 14e3b630-9ca5-45ae-a085-3ac8ee1dc12f 217s DEBUG NotebookApp:handlers.py:203 Nudge: resolving control future: 14e3b630-9ca5-45ae-a085-3ac8ee1dc12f 217s DEBUG NotebookApp:handlers.py:579 Websocket closed 14e3b630-9ca5-45ae-a085-3ac8ee1dc12f:6ec17773-16de8b8f70ffbfdc74860b8c 217s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 14e3b630-9ca5-45ae-a085-3ac8ee1dc12f:6ec17773-16de8b8f70ffbfdc74860b8c 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 14e3b630-9ca5-45ae-a085-3ac8ee1dc12f 217s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 14e3b630-9ca5-45ae-a085-3ac8ee1dc12f:iopub 217s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 14e3b630-9ca5-45ae-a085-3ac8ee1dc12f:iopub 217s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 14e3b630-9ca5-45ae-a085-3ac8ee1dc12f:iopub 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/14e3b630-9ca5-45ae-a085-3ac8ee1dc12f (::1) 0.470000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/14e3b630-9ca5-45ae-a085-3ac8ee1dc12f (::1) 0.360000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.380000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 14e3b630-9ca5-45ae-a085-3ac8ee1dc12f 217s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for 14e3b630-9ca5-45ae-a085-3ac8ee1dc12f:6ec17773-16de8b8f70ffbfdc74860b8c 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 14e3b630-9ca5-45ae-a085-3ac8ee1dc12f 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 217s await kernel_awaitable 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 217s result = await obj 217s ^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/14e3b630-9ca5-45ae-a085-3ac8ee1dc12f (::1) 217s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/14e3b630-9ca5-45ae-a085-3ac8ee1dc12f', version='HTTP/1.1', remote_ip='::1') 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 217s result = await result 217s ^^^^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 217s future.result() 217s ~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 217s yield maybe_future(km.shutdown_kernel(kernel_id)) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 217s raise self._exception.with_traceback(self._exception_tb) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 217s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 217s raise km.ready.exception() # type: ignore[misc] 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 217s await kernel_awaitable 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 217s result = await obj 217s ^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s WARNING NotebookApp:handlers.py:612 Unhandled error 217s ERROR NotebookApp:log.py:55 { 217s "Host": "localhost:12341", 217s "Accept": "*/*", 217s "User-Agent": "python-requests/2.32.5" 217s } 217s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/14e3b630-9ca5-45ae-a085-3ac8ee1dc12f (::1) 6.750000ms referer=None 217s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 217s 217s self = 217s 217s def tearDown(self): 217s for k in self.kern_api.list().json(): 217s > self.kern_api.shutdown(k['id']) 217s 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 217s return self._req('DELETE', id) 217s ^^^^^^^^^^^^^^^^^^^^^^^ 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 217s response.raise_for_status() 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s 217s self = 217s 217s def raise_for_status(self): 217s """Raises :class:`HTTPError`, if one occurred.""" 217s 217s http_error_msg = "" 217s if isinstance(self.reason, bytes): 217s # We attempt to decode utf-8 first because some servers 217s # choose to localize their reason strings. If the string 217s # isn't utf-8, we fall back to iso-8859-1 for all other 217s # encodings. (See PR #3538) 217s try: 217s reason = self.reason.decode("utf-8") 217s except UnicodeDecodeError: 217s reason = self.reason.decode("iso-8859-1") 217s else: 217s reason = self.reason 217s 217s if 400 <= self.status_code < 500: 217s http_error_msg = ( 217s f"{self.status_code} Client Error: {reason} for url: {self.url}" 217s ) 217s 217s elif 500 <= self.status_code < 600: 217s http_error_msg = ( 217s f"{self.status_code} Server Error: {reason} for url: {self.url}" 217s ) 217s 217s if http_error_msg: 217s > raise HTTPError(http_error_msg, response=self) 217s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/051d3560-2de1-4c5d-9b00-77af1d55b7ed 217s 217s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 217s ----------------------------- Captured stderr call ----------------------------- 217s Traceback (most recent call last): 217s ------------------------------ Captured log call ------------------------------- 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjd3m0ckk/runtime/kernel-051d3560-2de1-4c5d-9b00-77af1d55b7ed.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49899 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41501 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: 051d3560-2de1-4c5d-9b00-77af1d55b7ed, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.510000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.320000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 14e3b630-9ca5-45ae-a085-3ac8ee1dc12f 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 14e3b630-9ca5-45ae-a085-3ac8ee1dc12f 217s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/14e3b630-9ca5-45ae-a085-3ac8ee1dc12f (::1) 3.170000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 051d3560-2de1-4c5d-9b00-77af1d55b7ed 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 051d3560-2de1-4c5d-9b00-77af1d55b7ed 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 217s await kernel_awaitable 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 217s result = await obj 217s ^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/051d3560-2de1-4c5d-9b00-77af1d55b7ed (::1) 217s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/051d3560-2de1-4c5d-9b00-77af1d55b7ed', version='HTTP/1.1', remote_ip='::1') 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 217s result = await result 217s ^^^^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 217s future.result() 217s ~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 217s yield maybe_future(km.shutdown_kernel(kernel_id)) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 217s raise self._exception.with_traceback(self._exception_tb) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 217s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 217s raise km.ready.exception() # type: ignore[misc] 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 217s await kernel_awaitable 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 217s result = await obj 217s ^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s WARNING NotebookApp:handlers.py:612 Unhandled error 217s ERROR NotebookApp:log.py:55 { 217s "Host": "localhost:12341", 217s "Accept": "*/*", 217s "User-Agent": "python-requests/2.32.5" 217s } 217s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/051d3560-2de1-4c5d-9b00-77af1d55b7ed (::1) 7.010000ms referer=None 217s --------------------------- Captured stderr teardown --------------------------- 217s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 217s return _run_code(code, main_globals, None, 217s "__main__", mod_spec) 217s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 217s exec(code, run_globals) 217s ~~~~^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 217s from pathlib import Path 217s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 217s from ._local import * 217s File "/usr/lib/python3.13/pathlib/_local.py", line 6, in 217s import warnings 217s File "", line 1360, in _find_and_load 217s File "", line 1331, in _find_and_load_unlocked 217s File "", line 935, in _load_unlocked 217s File "", line 1019, in exec_module 217s File "", line 1097, in get_code 217s File "", line 671, in _check_name_wrapper 217s KeyboardInterrupt 217s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 217s 217s self = 217s 217s def test_kernel_handler(self): 217s # GET kernel with given id 217s kid = self.kern_api.start().json()['id'] 217s r = self.kern_api.get(kid) 217s kern1 = r.json() 217s self.assertEqual(r.status_code, 200) 217s assert isinstance(kern1, dict) 217s self.assertIn('id', kern1) 217s self.assertEqual(kern1['id'], kid) 217s 217s # Request a bad kernel id and check that a JSON 217s # message is returned! 217s bad_id = '111-111-111-111-111' 217s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 217s self.kern_api.get(bad_id) 217s 217s # DELETE kernel with id 217s > r = self.kern_api.shutdown(kid) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 217s return self._req('DELETE', id) 217s ^^^^^^^^^^^^^^^^^^^^^^^ 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 217s response.raise_for_status() 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s 217s self = 217s 217s def raise_for_status(self): 217s """Raises :class:`HTTPError`, if one occurred.""" 217s 217s http_error_msg = "" 217s if isinstance(self.reason, bytes): 217s # We attempt to decode utf-8 first because some servers 217s # choose to localize their reason strings. If the string 217s # isn't utf-8, we fall back to iso-8859-1 for all other 217s # encodings. (See PR #3538) 217s try: 217s reason = self.reason.decode("utf-8") 217s except UnicodeDecodeError: 217s reason = self.reason.decode("iso-8859-1") 217s else: 217s reason = self.reason 217s 217s if 400 <= self.status_code < 500: 217s http_error_msg = ( 217s f"{self.status_code} Client Error: {reason} for url: {self.url}" 217s ) 217s 217s elif 500 <= self.status_code < 600: 217s http_error_msg = ( 217s f"{self.status_code} Server Error: {reason} for url: {self.url}" 217s ) 217s 217s if http_error_msg: 217s > raise HTTPError(http_error_msg, response=self) 217s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/7d4abe24-acb8-47db-a5bf-c72fb4c7a0e4 217s 217s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 217s ----------------------------- Captured stderr call ----------------------------- 217s Traceback (most recent call last): 217s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 217s return _run_code(code, main_globals, None, 217s "__main__", mod_spec) 217s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 217s exec(code, run_globals) 217s ~~~~^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 217s from ipykernel import kernelapp as app 217s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 217s from .connect import * # noqa: F403 217s ^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 217s import json 217s File "/usr/lib/python3.13/json/__init__.py", line 107, in 217s from .encoder import JSONEncoder 217s File "", line 1360, in _find_and_load 217s File "", line 1331, in _find_and_load_unlocked 217s File "", line 935, in _load_unlocked 217s File "", line 1019, in exec_module 217s File "", line 1152, in get_code 217s File "", line 781, in _compile_bytecode 217s KeyboardInterrupt 217s ------------------------------ Captured log call ------------------------------- 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjd3m0ckk/runtime/kernel-7d4abe24-acb8-47db-a5bf-c72fb4c7a0e4.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53241 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55099 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7d4abe24-acb8-47db-a5bf-c72fb4c7a0e4, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.070000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/7d4abe24-acb8-47db-a5bf-c72fb4c7a0e4 (::1) 0.490000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s 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 217s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 217s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.420000ms referer=None 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7d4abe24-acb8-47db-a5bf-c72fb4c7a0e4 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7d4abe24-acb8-47db-a5bf-c72fb4c7a0e4 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 217s await kernel_awaitable 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 217s result = await obj 217s ^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/7d4abe24-acb8-47db-a5bf-c72fb4c7a0e4 (::1) 217s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/7d4abe24-acb8-47db-a5bf-c72fb4c7a0e4', version='HTTP/1.1', remote_ip='::1') 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 217s result = await result 217s ^^^^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 217s future.result() 217s ~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 217s yield maybe_future(km.shutdown_kernel(kernel_id)) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 217s raise self._exception.with_traceback(self._exception_tb) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 217s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 217s raise km.ready.exception() # type: ignore[misc] 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 217s await kernel_awaitable 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 217s result = await obj 217s ^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s WARNING NotebookApp:handlers.py:612 Unhandled error 217s ERROR NotebookApp:log.py:55 { 217s "Host": "localhost:12341", 217s "Accept": "*/*", 217s "User-Agent": "python-requests/2.32.5" 217s } 217s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/7d4abe24-acb8-47db-a5bf-c72fb4c7a0e4 (::1) 4.280000ms referer=None 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.380000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 051d3560-2de1-4c5d-9b00-77af1d55b7ed 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 051d3560-2de1-4c5d-9b00-77af1d55b7ed 217s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/051d3560-2de1-4c5d-9b00-77af1d55b7ed (::1) 1.170000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7d4abe24-acb8-47db-a5bf-c72fb4c7a0e4 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7d4abe24-acb8-47db-a5bf-c72fb4c7a0e4 217s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 217s 217s self = 217s 217s def test_main_kernel_handler(self): 217s # POST request 217s r = self.kern_api.start() 217s kern1 = r.json() 217s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 217s self.assertEqual(r.status_code, 201) 217s self.assertIsInstance(kern1, dict) 217s 217s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 217s expected_csp = '; '.join([ 217s "frame-ancestors 'self'", 217s 'report-uri ' + report_uri, 217s "default-src 'none'" 217s ]) 217s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 217s 217s # GET request 217s r = self.kern_api.list() 217s self.assertEqual(r.status_code, 200) 217s assert isinstance(r.json(), list) 217s self.assertEqual(r.json()[0]['id'], kern1['id']) 217s self.assertEqual(r.json()[0]['name'], kern1['name']) 217s 217s # create another kernel and check that they both are added to the 217s # list of kernels from a GET request 217s kern2 = self.kern_api.start().json() 217s assert isinstance(kern2, dict) 217s r = self.kern_api.list() 217s kernels = r.json() 217s self.assertEqual(r.status_code, 200) 217s assert isinstance(kernels, list) 217s self.assertEqual(len(kernels), 2) 217s 217s # Interrupt a kernel 217s r = self.kern_api.interrupt(kern2['id']) 217s self.assertEqual(r.status_code, 204) 217s 217s # Restart a kernel 217s > r = self.kern_api.restart(kern2['id']) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 217s return self._req('POST', url_path_join(id, 'restart')) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 217s response.raise_for_status() 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s 217s self = 217s 217s def raise_for_status(self): 217s """Raises :class:`HTTPError`, if one occurred.""" 217s 217s http_error_msg = "" 217s if isinstance(self.reason, bytes): 217s # We attempt to decode utf-8 first because some servers 217s # choose to localize their reason strings. If the string 217s # isn't utf-8, we fall back to iso-8859-1 for all other 217s # encodings. (See PR #3538) 217s try: 217s reason = self.reason.decode("utf-8") 217s except UnicodeDecodeError: 217s reason = self.reason.decode("iso-8859-1") 217s else: 217s reason = self.reason 217s 217s if 400 <= self.status_code < 500: 217s http_error_msg = ( 217s f"{self.status_code} Client Error: {reason} for url: {self.url}" 217s ) 217s 217s elif 500 <= self.status_code < 600: 217s http_error_msg = ( 217s f"{self.status_code} Server Error: {reason} for url: {self.url}" 217s ) 217s 217s if http_error_msg: 217s > raise HTTPError(http_error_msg, response=self) 217s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/e7067647-2236-4bff-9d47-aec5851a58a1/restart 217s 217s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 217s ----------------------------- Captured stderr call ----------------------------- 217s Traceback (most recent call last): 217s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 217s return _run_code(code, main_globals, None, 217s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 217s exec(code, run_globals) 217s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 217s from pathlib import Path 217s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 217s from ._abc import * 217s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 217s from glob import _Globber, _no_recurse_symlinks 217s File "/usr/lib/python3.13/glob.py", line 3, in 217s import contextlib 217s File "", line 1360, in _find_and_load 217s File "", line 1331, in _find_and_load_unlocked 217s File "", line 935, in _load_unlocked 217s File "", line 1019, in exec_module 217s File "", line 1152, in get_code 217s File "", line 781, in _compile_bytecode 217s KeyboardInterrupt 217s Traceback (most recent call last): 217s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 217s return _run_code(code, main_globals, None, 217s "__main__", mod_spec) 217s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 217s exec(code, run_globals) 217s ~~~~^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 217s from ipykernel import kernelapp as app 217s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 217s from .connect import * # noqa: F403 217s ^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 217s import jupyter_client 217s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 217s from .asynchronous import AsyncKernelClient 217s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 217s from .client import AsyncKernelClient # noqa 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 217s import zmq.asyncio 217s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 217s import asyncio 217s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 217s from .base_events import * 217s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 217s import ssl 217s File "/usr/lib/python3.13/ssl.py", line 227, in 217s @_simple_enum(_IntEnum) 217s ~~~~~~~~~~~~^^^^^^^^^^ 217s File "/usr/lib/python3.13/enum.py", line 1809, in convert_class 217s enum_method = getattr(etype, name) 217s KeyboardInterrupt 217s ------------------------------ Captured log call ------------------------------- 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjd3m0ckk/runtime/kernel-8a48132d-00b2-4cbf-89f2-78e1d183e6ca.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54123 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49263 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8a48132d-00b2-4cbf-89f2-78e1d183e6ca, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.860000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.420000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjd3m0ckk/runtime/kernel-e7067647-2236-4bff-9d47-aec5851a58a1.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60833 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59189 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: e7067647-2236-4bff-9d47-aec5851a58a1, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.060000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.300000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: e7067647-2236-4bff-9d47-aec5851a58a1 217s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/e7067647-2236-4bff-9d47-aec5851a58a1/interrupt (::1) 2.880000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 217s yield maybe_future(km.restart_kernel(kernel_id)) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 217s raise self._exception.with_traceback(self._exception_tb) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 217s result = coro.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 217s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 217s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 217s yield self # This tells Task to wait for completion. 217s ^^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 217s future.result() 217s ~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 217s raise self._exception.with_traceback(self._exception_tb) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 217s await ensure_async(kernel.restart_kernel(now=now)) 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 217s result = await obj 217s ^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 217s await self._async_shutdown_kernel(now=now, restart=True) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:log.py:55 { 217s "Host": "localhost:12341", 217s "Accept": "*/*", 217s "User-Agent": "python-requests/2.32.5" 217s } 217s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/e7067647-2236-4bff-9d47-aec5851a58a1/restart (::1) 4.120000ms referer=None 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.390000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8a48132d-00b2-4cbf-89f2-78e1d183e6ca 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8a48132d-00b2-4cbf-89f2-78e1d183e6ca 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 217s await kernel_awaitable 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 217s result = await obj 217s ^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/8a48132d-00b2-4cbf-89f2-78e1d183e6ca (::1) 217s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/8a48132d-00b2-4cbf-89f2-78e1d183e6ca', version='HTTP/1.1', remote_ip='::1') 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 217s result = await result 217s ^^^^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 217s future.result() 217s ~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 217s yield maybe_future(km.shutdown_kernel(kernel_id)) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 217s raise self._exception.with_traceback(self._exception_tb) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 217s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 217s raise km.ready.exception() # type: ignore[misc] 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 217s await kernel_awaitable 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 217s result = await obj 217s ^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s WARNING NotebookApp:handlers.py:612 Unhandled error 217s ERROR NotebookApp:log.py:55 { 217s "Host": "localhost:12341", 217s "Accept": "*/*", 217s "User-Agent": "python-requests/2.32.5" 217s } 217s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/8a48132d-00b2-4cbf-89f2-78e1d183e6ca (::1) 3.690000ms referer=None 217s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 217s 217s self = 217s 217s def test_no_kernels(self): 217s """Make sure there are no kernels running at the start""" 217s kernels = self.kern_api.list().json() 217s > self.assertEqual(kernels, []) 217s E AssertionError: Lists differ: [{'id': '8a48132d-00b2-4cbf-89f2-78e1d183e[281 chars]: 0}] != [] 217s E 217s E First list contains 2 additional elements. 217s E First extra element 0: 217s E {'id': '8a48132d-00b2-4cbf-89f2-78e1d183e6ca', 'name': 'python3', 'last_activity': '2026-02-06T10:25:29.919280Z', 'execution_state': 'starting', 'connections': 0} 217s E 217s E + [] 217s E - [{'connections': 0, 217s E - 'execution_state': 'starting', 217s E - 'id': '8a48132d-00b2-4cbf-89f2-78e1d183e6ca', 217s E - 'last_activity': '2026-02-06T10:25:29.919280Z', 217s E - 'name': 'python3'}, 217s E - {'connections': 0, 217s E - 'execution_state': 'starting', 217s E - 'id': 'e7067647-2236-4bff-9d47-aec5851a58a1', 217s E - 'last_activity': '2026-02-06T10:25:29.935248Z', 217s E - 'name': 'python3'}] 217s 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 217s ------------------------------ Captured log call ------------------------------- 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.690000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.430000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8a48132d-00b2-4cbf-89f2-78e1d183e6ca 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8a48132d-00b2-4cbf-89f2-78e1d183e6ca 217s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/8a48132d-00b2-4cbf-89f2-78e1d183e6ca (::1) 0.410000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e7067647-2236-4bff-9d47-aec5851a58a1 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e7067647-2236-4bff-9d47-aec5851a58a1 217s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/e7067647-2236-4bff-9d47-aec5851a58a1 (::1) 0.510000ms 217s ---------------------------- Captured log teardown ----------------------------- 217s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 14e3b630-9ca5-45ae-a085-3ac8ee1dc12f 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8a48132d-00b2-4cbf-89f2-78e1d183e6ca 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7d4abe24-acb8-47db-a5bf-c72fb4c7a0e4 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 051d3560-2de1-4c5d-9b00-77af1d55b7ed 217s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 217s __________________________ SessionAPITest.test_create __________________________ 217s 217s @self.addCleanup 217s def cleanup_sessions(): 217s for session in self.sess_api.list().json(): 217s > self.sess_api.delete(session['id']) 217s 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 217s return self._req('DELETE', id) 217s ^^^^^^^^^^^^^^^^^^^^^^^ 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 217s response.raise_for_status() 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s 217s self = 217s 217s def raise_for_status(self): 217s """Raises :class:`HTTPError`, if one occurred.""" 217s 217s http_error_msg = "" 217s if isinstance(self.reason, bytes): 217s # We attempt to decode utf-8 first because some servers 217s # choose to localize their reason strings. If the string 217s # isn't utf-8, we fall back to iso-8859-1 for all other 217s # encodings. (See PR #3538) 217s try: 217s reason = self.reason.decode("utf-8") 217s except UnicodeDecodeError: 217s reason = self.reason.decode("iso-8859-1") 217s else: 217s reason = self.reason 217s 217s if 400 <= self.status_code < 500: 217s http_error_msg = ( 217s f"{self.status_code} Client Error: {reason} for url: {self.url}" 217s ) 217s 217s elif 500 <= self.status_code < 600: 217s http_error_msg = ( 217s f"{self.status_code} Server Error: {reason} for url: {self.url}" 217s ) 217s 217s if http_error_msg: 217s > raise HTTPError(http_error_msg, response=self) 217s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c3ee9b9a-3a6c-4d1c-bac9-99ab09c64b7c 217s 217s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 217s ------------------------------ Captured log setup ------------------------------ 217s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpwrjfi5bn/config', '/tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpwrjfi5bn/etc/jupyter'] for config files 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpwrjfi5bn/etc/jupyter 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpwrjfi5bn/config 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpwrjfi5bn/etc/jupyter 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpwrjfi5bn/config 217s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpwrjfi5bn/notebooks 217s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 217s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 217s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 217s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 217s WARNING NotebookApp:handlers.py:612 Forbidden 217s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.340000ms referer=None 217s ----------------------------- Captured stderr call ----------------------------- 217s Traceback (most recent call last): 217s ------------------------------ Captured log call ------------------------------- 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.810000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwrjfi5bn/runtime/kernel-8d66bb09-83f8-44e6-9a99-732f5e934c6f.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51373 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60133 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8d66bb09-83f8-44e6-9a99-732f5e934c6f, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpwrjfi5bn/notebooks/foo'} 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.990000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.450000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/c3ee9b9a-3a6c-4d1c-bac9-99ab09c64b7c (::1) 0.450000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.390000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8d66bb09-83f8-44e6-9a99-732f5e934c6f 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8d66bb09-83f8-44e6-9a99-732f5e934c6f 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c3ee9b9a-3a6c-4d1c-bac9-99ab09c64b7c (::1) 217s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c3ee9b9a-3a6c-4d1c-bac9-99ab09c64b7c', version='HTTP/1.1', remote_ip='::1') 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 217s result = await result 217s ^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 217s yield maybe_future(sm.delete_session(session_id)) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 217s yielded = self.gen.send(value) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 217s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 217s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 217s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 217s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 217s return _runner_map[name].run(inner) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 217s return fut.result(None) 217s ~~~~~~~~~~^^^^^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 217s return self.__get_result() 217s ~~~~~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 217s raise self._exception 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 217s stopper = ensure_async(km.shutdown_kernel(now, restart)) 217s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 217s return _runner_map[name].run(inner) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 217s return fut.result(None) 217s ~~~~~~~~~~^^^^^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 217s return self.__get_result() 217s ~~~~~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 217s raise self._exception 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s WARNING NotebookApp:handlers.py:612 Unhandled error 217s ERROR NotebookApp:log.py:55 { 217s "Host": "localhost:12341", 217s "Accept": "*/*", 217s "User-Agent": "python-requests/2.32.5" 217s } 217s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c3ee9b9a-3a6c-4d1c-bac9-99ab09c64b7c (::1) 5.580000ms referer=None 217s --------------------------- Captured stderr teardown --------------------------- 217s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 217s return _run_code(code, main_globals, None, 217s "__main__", mod_spec) 217s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 217s exec(code, run_globals) 217s ~~~~^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 217s from ipykernel import kernelapp as app 217s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 217s from .connect import * # noqa: F403 217s ^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 217s from typing import TYPE_CHECKING, Any 217s File "/usr/lib/python3.13/typing.py", line 2705, in 217s _overload_registry = defaultdict(functools.partial(defaultdict, dict)) 217s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ 217s KeyboardInterrupt 217s __________________ SessionAPITest.test_create_console_session __________________ 217s 217s @self.addCleanup 217s def cleanup_sessions(): 217s for session in self.sess_api.list().json(): 217s > self.sess_api.delete(session['id']) 217s 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 217s return self._req('DELETE', id) 217s ^^^^^^^^^^^^^^^^^^^^^^^ 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 217s response.raise_for_status() 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s 217s self = 217s 217s def raise_for_status(self): 217s """Raises :class:`HTTPError`, if one occurred.""" 217s 217s http_error_msg = "" 217s if isinstance(self.reason, bytes): 217s # We attempt to decode utf-8 first because some servers 217s # choose to localize their reason strings. If the string 217s # isn't utf-8, we fall back to iso-8859-1 for all other 217s # encodings. (See PR #3538) 217s try: 217s reason = self.reason.decode("utf-8") 217s except UnicodeDecodeError: 217s reason = self.reason.decode("iso-8859-1") 217s else: 217s reason = self.reason 217s 217s if 400 <= self.status_code < 500: 217s http_error_msg = ( 217s f"{self.status_code} Client Error: {reason} for url: {self.url}" 217s ) 217s 217s elif 500 <= self.status_code < 600: 217s http_error_msg = ( 217s f"{self.status_code} Server Error: {reason} for url: {self.url}" 217s ) 217s 217s if http_error_msg: 217s > raise HTTPError(http_error_msg, response=self) 217s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/89f0e25c-4b67-4e58-af5d-afc3ab7c406c 217s 217s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 217s ----------------------------- Captured stderr call ----------------------------- 217s Traceback (most recent call last): 217s ------------------------------ Captured log call ------------------------------- 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwrjfi5bn/runtime/kernel-06576ba5-9b22-4206-b525-4e9be782b7c1.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48033 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36661 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: 06576ba5-9b22-4206-b525-4e9be782b7c1, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpwrjfi5bn/notebooks/foo'} 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.700000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.380000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8d66bb09-83f8-44e6-9a99-732f5e934c6f 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8d66bb09-83f8-44e6-9a99-732f5e934c6f 217s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c3ee9b9a-3a6c-4d1c-bac9-99ab09c64b7c (::1) 0.670000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 06576ba5-9b22-4206-b525-4e9be782b7c1 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 06576ba5-9b22-4206-b525-4e9be782b7c1 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/89f0e25c-4b67-4e58-af5d-afc3ab7c406c (::1) 217s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/89f0e25c-4b67-4e58-af5d-afc3ab7c406c', version='HTTP/1.1', remote_ip='::1') 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 217s result = await result 217s ^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 217s yield maybe_future(sm.delete_session(session_id)) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 217s yielded = self.gen.send(value) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 217s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 217s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 217s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 217s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 217s return _runner_map[name].run(inner) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 217s return fut.result(None) 217s ~~~~~~~~~~^^^^^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 217s return self.__get_result() 217s ~~~~~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 217s raise self._exception 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 217s stopper = ensure_async(km.shutdown_kernel(now, restart)) 217s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 217s return _runner_map[name].run(inner) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 217s return fut.result(None) 217s ~~~~~~~~~~^^^^^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 217s return self.__get_result() 217s ~~~~~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 217s raise self._exception 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s WARNING NotebookApp:handlers.py:612 Unhandled error 217s --------------------------- Captured stderr teardown --------------------------- 217s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 217s return _run_code(code, main_globals, None, 217s "__main__", mod_spec) 217s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 217s exec(code, run_globals) 217s ~~~~^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 217s from ipykernel import kernelapp as app 217s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 217s from .connect import * # noqa: F403 217s ^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 217s from subprocess import PIPE, Popen 217s File "/usr/lib/python3.13/subprocess.py", line 46, in 217s import locale 217s File "/usr/lib/python3.13/locale.py", line 47, in 217s from _locale import * 217s KeyboardInterrupt 217s ____________________ SessionAPITest.test_create_deprecated _____________________ 217s 217s @self.addCleanup 217s def cleanup_sessions(): 217s for session in self.sess_api.list().json(): 217s > self.sess_api.delete(session['id']) 217s 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 217s return self._req('DELETE', id) 217s ^^^^^^^^^^^^^^^^^^^^^^^ 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 217s response.raise_for_status() 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s 217s self = 217s 217s def raise_for_status(self): 217s """Raises :class:`HTTPError`, if one occurred.""" 217s 217s http_error_msg = "" 217s if isinstance(self.reason, bytes): 217s # We attempt to decode utf-8 first because some servers 217s # choose to localize their reason strings. If the string 217s # isn't utf-8, we fall back to iso-8859-1 for all other 217s # encodings. (See PR #3538) 217s try: 217s reason = self.reason.decode("utf-8") 217s except UnicodeDecodeError: 217s reason = self.reason.decode("iso-8859-1") 217s else: 217s reason = self.reason 217s 217s if 400 <= self.status_code < 500: 217s http_error_msg = ( 217s f"{self.status_code} Client Error: {reason} for url: {self.url}" 217s ) 217s 217s elif 500 <= self.status_code < 600: 217s http_error_msg = ( 217s f"{self.status_code} Server Error: {reason} for url: {self.url}" 217s ) 217s 217s if http_error_msg: 217s > raise HTTPError(http_error_msg, response=self) 217s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/956f47a1-ab15-4986-9bd1-43fe2995474b 217s 217s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 217s ----------------------------- Captured stderr call ----------------------------- 217s Traceback (most recent call last): 217s ------------------------------ Captured log call ------------------------------- 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwrjfi5bn/runtime/kernel-31bd0093-712c-4aa5-ba75-75d4f7693b23.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50547 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42761 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: 31bd0093-712c-4aa5-ba75-75d4f7693b23, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpwrjfi5bn/notebooks/foo'} 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.510000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.310000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 06576ba5-9b22-4206-b525-4e9be782b7c1 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 06576ba5-9b22-4206-b525-4e9be782b7c1 217s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/89f0e25c-4b67-4e58-af5d-afc3ab7c406c (::1) 0.530000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 31bd0093-712c-4aa5-ba75-75d4f7693b23 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 31bd0093-712c-4aa5-ba75-75d4f7693b23 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/956f47a1-ab15-4986-9bd1-43fe2995474b (::1) 217s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/956f47a1-ab15-4986-9bd1-43fe2995474b', version='HTTP/1.1', remote_ip='::1') 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 217s result = await result 217s ^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 217s yield maybe_future(sm.delete_session(session_id)) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 217s yielded = self.gen.send(value) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 217s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 217s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 217s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 217s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 217s return _runner_map[name].run(inner) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 217s return fut.result(None) 217s ~~~~~~~~~~^^^^^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 217s return self.__get_result() 217s ~~~~~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 217s raise self._exception 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 217s stopper = ensure_async(km.shutdown_kernel(now, restart)) 217s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 217s return _runner_map[name].run(inner) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 217s return fut.result(None) 217s ~~~~~~~~~~^^^^^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 217s return self.__get_result() 217s ~~~~~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 217s raise self._exception 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s WARNING NotebookApp:handlers.py:612 Unhandled error 217s --------------------------- Captured stderr teardown --------------------------- 217s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 217s return _run_code(code, main_globals, None, 217s "__main__", mod_spec) 217s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 217s exec(code, run_globals) 217s ~~~~^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 217s from ipykernel import kernelapp as app 217s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 217s from .connect import * # noqa: F403 217s ^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 5, in 217s from __future__ import annotations 217s File "/usr/lib/python3.13/__future__.py", line 113, in 217s generators = _Feature((2, 2, 0, "alpha", 1), 217s (2, 3, 0, "final", 0), 217s CO_GENERATOR_ALLOWED) 217s KeyboardInterrupt 217s ___________________ SessionAPITest.test_create_file_session ____________________ 217s 217s @self.addCleanup 217s def cleanup_sessions(): 217s for session in self.sess_api.list().json(): 217s > self.sess_api.delete(session['id']) 217s 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 217s return self._req('DELETE', id) 217s ^^^^^^^^^^^^^^^^^^^^^^^ 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 217s response.raise_for_status() 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s 217s self = 217s 217s def raise_for_status(self): 217s """Raises :class:`HTTPError`, if one occurred.""" 217s 217s http_error_msg = "" 217s if isinstance(self.reason, bytes): 217s # We attempt to decode utf-8 first because some servers 217s # choose to localize their reason strings. If the string 217s # isn't utf-8, we fall back to iso-8859-1 for all other 217s # encodings. (See PR #3538) 217s try: 217s reason = self.reason.decode("utf-8") 217s except UnicodeDecodeError: 217s reason = self.reason.decode("iso-8859-1") 217s else: 217s reason = self.reason 217s 217s if 400 <= self.status_code < 500: 217s http_error_msg = ( 217s f"{self.status_code} Client Error: {reason} for url: {self.url}" 217s ) 217s 217s elif 500 <= self.status_code < 600: 217s http_error_msg = ( 217s f"{self.status_code} Server Error: {reason} for url: {self.url}" 217s ) 217s 217s if http_error_msg: 217s > raise HTTPError(http_error_msg, response=self) 217s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/70644599-d4c6-4447-8abc-44c51caa943d 217s 217s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 217s ----------------------------- Captured stderr call ----------------------------- 217s Traceback (most recent call last): 217s ------------------------------ Captured log call ------------------------------- 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwrjfi5bn/runtime/kernel-e6a9510e-bcfa-4202-92eb-ab194256bf9b.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54229 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35285 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: e6a9510e-bcfa-4202-92eb-ab194256bf9b, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpwrjfi5bn/notebooks/foo'} 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.370000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.370000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 31bd0093-712c-4aa5-ba75-75d4f7693b23 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 31bd0093-712c-4aa5-ba75-75d4f7693b23 217s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/956f47a1-ab15-4986-9bd1-43fe2995474b (::1) 1.270000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e6a9510e-bcfa-4202-92eb-ab194256bf9b 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e6a9510e-bcfa-4202-92eb-ab194256bf9b 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/70644599-d4c6-4447-8abc-44c51caa943d (::1) 217s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/70644599-d4c6-4447-8abc-44c51caa943d', version='HTTP/1.1', remote_ip='::1') 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 217s result = await result 217s ^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 217s yield maybe_future(sm.delete_session(session_id)) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 217s yielded = self.gen.send(value) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 217s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 217s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 217s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 217s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 217s return _runner_map[name].run(inner) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 217s return fut.result(None) 217s ~~~~~~~~~~^^^^^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 217s return self.__get_result() 217s ~~~~~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 217s raise self._exception 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 217s stopper = ensure_async(km.shutdown_kernel(now, restart)) 217s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 217s return _runner_map[name].run(inner) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 217s return fut.result(None) 217s ~~~~~~~~~~^^^^^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 217s return self.__get_result() 217s ~~~~~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 217s raise self._exception 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s WARNING NotebookApp:handlers.py:612 Unhandled error 217s ERROR NotebookApp:log.py:55 { 217s "Host": "localhost:12341", 217s "Accept": "*/*", 217s "User-Agent": "python-requests/2.32.5" 217s } 217s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/70644599-d4c6-4447-8abc-44c51caa943d (::1) 4.240000ms referer=None 217s --------------------------- Captured stderr teardown --------------------------- 217s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 217s return _run_code(code, main_globals, None, 217s "__main__", mod_spec) 217s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 217s exec(code, run_globals) 217s ~~~~^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 217s from ipykernel import kernelapp as app 217s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 217s from .connect import * # noqa: F403 217s ^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 217s import json 217s File "/usr/lib/python3.13/json/__init__.py", line 107, in 217s from .encoder import JSONEncoder 217s File "", line 1360, in _find_and_load 217s File "", line 1331, in _find_and_load_unlocked 217s File "", line 935, in _load_unlocked 217s File "", line 1019, in exec_module 217s File "", line 1115, in get_code 217s File "", line 1214, in get_data 217s KeyboardInterrupt 217s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 217s 217s self = 217s 217s def test_create_with_kernel_id(self): 217s # create a new kernel 217s r = self.request('POST', 'api/kernels') 217s r.raise_for_status() 217s kernel = r.json() 217s 217s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 217s self.assertEqual(resp.status_code, 201) 217s newsession = resp.json() 217s self.assertIn('id', newsession) 217s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 217s self.assertEqual(newsession['kernel']['id'], kernel['id']) 217s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 217s 217s sessions = self.sess_api.list().json() 217s > self.assertEqual(sessions, [newsession]) 217s E AssertionError: Lists differ: [{'id': '70644599-d4c6-4447-8abc-44c51caa943d', 'p[553 chars]ne}}] != [{'id': '37023bde-11df-4233-a591-a2ca720a5efd', 'p[279 chars]ne}}] 217s E 217s E First differing element 0: 217s E {'id': '70644599-d4c6-4447-8abc-44c51caa943d', 'p[218 chars]: 0}} 217s E {'id': '37023bde-11df-4233-a591-a2ca720a5efd', 'p[278 chars]one}} 217s E 217s E First list contains 1 additional elements. 217s E First extra element 1: 217s E {'id': '37023bde-11df-4233-a591-a2ca720a5efd', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '32025311-0b86-434d-857b-59d23c374fb5', 'name': 'python3', 'last_activity': '2026-02-06T10:25:30.224955Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 217s E 217s E Diff is 830 characters long. Set self.maxDiff to None to see it. 217s 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 217s ----------------------------- Captured stderr call ----------------------------- 217s Traceback (most recent call last): 217s ------------------------------ Captured log call ------------------------------- 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwrjfi5bn/runtime/kernel-32025311-0b86-434d-857b-59d23c374fb5.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57989 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53891 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: 32025311-0b86-434d-857b-59d23c374fb5, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.120000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.520000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.710000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.430000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e6a9510e-bcfa-4202-92eb-ab194256bf9b 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e6a9510e-bcfa-4202-92eb-ab194256bf9b 217s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/70644599-d4c6-4447-8abc-44c51caa943d (::1) 1.350000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 32025311-0b86-434d-857b-59d23c374fb5 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 32025311-0b86-434d-857b-59d23c374fb5 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/37023bde-11df-4233-a591-a2ca720a5efd (::1) 217s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/37023bde-11df-4233-a591-a2ca720a5efd', version='HTTP/1.1', remote_ip='::1') 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 217s result = await result 217s ^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 217s yield maybe_future(sm.delete_session(session_id)) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 217s yielded = self.gen.send(value) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 217s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 217s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 217s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 217s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 217s return _runner_map[name].run(inner) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 217s return fut.result(None) 217s ~~~~~~~~~~^^^^^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 217s return self.__get_result() 217s ~~~~~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 217s raise self._exception 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 217s stopper = ensure_async(km.shutdown_kernel(now, restart)) 217s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 217s return _runner_map[name].run(inner) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 217s return fut.result(None) 217s ~~~~~~~~~~^^^^^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 217s return self.__get_result() 217s ~~~~~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 217s raise self._exception 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s WARNING NotebookApp:handlers.py:612 Unhandled error 217s ERROR NotebookApp:log.py:55 { 217s "Host": "localhost:12341", 217s "Accept": "*/*", 217s "User-Agent": "python-requests/2.32.5" 217s } 217s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/37023bde-11df-4233-a591-a2ca720a5efd (::1) 3.980000ms referer=None 217s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 217s 217s @self.addCleanup 217s def cleanup_sessions(): 217s for session in self.sess_api.list().json(): 217s > self.sess_api.delete(session['id']) 217s 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 217s return self._req('DELETE', id) 217s ^^^^^^^^^^^^^^^^^^^^^^^ 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 217s response.raise_for_status() 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s 217s self = 217s 217s def raise_for_status(self): 217s """Raises :class:`HTTPError`, if one occurred.""" 217s 217s http_error_msg = "" 217s if isinstance(self.reason, bytes): 217s # We attempt to decode utf-8 first because some servers 217s # choose to localize their reason strings. If the string 217s # isn't utf-8, we fall back to iso-8859-1 for all other 217s # encodings. (See PR #3538) 217s try: 217s reason = self.reason.decode("utf-8") 217s except UnicodeDecodeError: 217s reason = self.reason.decode("iso-8859-1") 217s else: 217s reason = self.reason 217s 217s if 400 <= self.status_code < 500: 217s http_error_msg = ( 217s f"{self.status_code} Client Error: {reason} for url: {self.url}" 217s ) 217s 217s elif 500 <= self.status_code < 600: 217s http_error_msg = ( 217s f"{self.status_code} Server Error: {reason} for url: {self.url}" 217s ) 217s 217s if http_error_msg: 217s > raise HTTPError(http_error_msg, response=self) 217s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/37023bde-11df-4233-a591-a2ca720a5efd 217s 217s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 217s ----------------------------- Captured stderr call ----------------------------- 217s Traceback (most recent call last): 217s ------------------------------ Captured log call ------------------------------- 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.370000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwrjfi5bn/runtime/kernel-7dc2cbd4-4009-4e8d-a4f8-323e3672d009.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43491 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38745 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7dc2cbd4-4009-4e8d-a4f8-323e3672d009, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.250000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 32025311-0b86-434d-857b-59d23c374fb5 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 32025311-0b86-434d-857b-59d23c374fb5 217s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/37023bde-11df-4233-a591-a2ca720a5efd (::1) 1.580000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.140000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.400000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7dc2cbd4-4009-4e8d-a4f8-323e3672d009 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7dc2cbd4-4009-4e8d-a4f8-323e3672d009 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/37023bde-11df-4233-a591-a2ca720a5efd (::1) 217s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/37023bde-11df-4233-a591-a2ca720a5efd', version='HTTP/1.1', remote_ip='::1') 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 217s result = await result 217s ^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 217s yield maybe_future(sm.delete_session(session_id)) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 217s yielded = self.gen.send(value) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 217s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 217s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 217s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 217s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 217s return _runner_map[name].run(inner) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 217s return fut.result(None) 217s ~~~~~~~~~~^^^^^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 217s return self.__get_result() 217s ~~~~~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 217s raise self._exception 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 217s stopper = ensure_async(km.shutdown_kernel(now, restart)) 217s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 217s return _runner_map[name].run(inner) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 217s return fut.result(None) 217s ~~~~~~~~~~^^^^^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 217s return self.__get_result() 217s ~~~~~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 217s raise self._exception 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s WARNING NotebookApp:handlers.py:612 Unhandled error 217s --------------------------- Captured stderr teardown --------------------------- 217s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 217s return _run_code(code, main_globals, None, 217s "__main__", mod_spec) 217s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 217s exec(code, run_globals) 217s ~~~~^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 217s from ipykernel import kernelapp as app 217s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 217s from .connect import * # noqa: F403 217s ^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 217s from subprocess import PIPE, Popen 217s File "/usr/lib/python3.13/subprocess.py", line 51, in 217s import threading 217s File "/usr/lib/python3.13/threading.py", line 9, in 217s from _weakrefset import WeakSet 217s File "", line 1360, in _find_and_load 217s File "", line 1331, in _find_and_load_unlocked 217s File "", line 935, in _load_unlocked 217s File "", line 1019, in exec_module 217s File "", line 1152, in get_code 217s File "", line 781, in _compile_bytecode 217s KeyboardInterrupt 217s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 217s 217s @self.addCleanup 217s def cleanup_sessions(): 217s for session in self.sess_api.list().json(): 217s > self.sess_api.delete(session['id']) 217s 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 217s return self._req('DELETE', id) 217s ^^^^^^^^^^^^^^^^^^^^^^^ 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 217s response.raise_for_status() 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s 217s self = 217s 217s def raise_for_status(self): 217s """Raises :class:`HTTPError`, if one occurred.""" 217s 217s http_error_msg = "" 217s if isinstance(self.reason, bytes): 217s # We attempt to decode utf-8 first because some servers 217s # choose to localize their reason strings. If the string 217s # isn't utf-8, we fall back to iso-8859-1 for all other 217s # encodings. (See PR #3538) 217s try: 217s reason = self.reason.decode("utf-8") 217s except UnicodeDecodeError: 217s reason = self.reason.decode("iso-8859-1") 217s else: 217s reason = self.reason 217s 217s if 400 <= self.status_code < 500: 217s http_error_msg = ( 217s f"{self.status_code} Client Error: {reason} for url: {self.url}" 217s ) 217s 217s elif 500 <= self.status_code < 600: 217s http_error_msg = ( 217s f"{self.status_code} Server Error: {reason} for url: {self.url}" 217s ) 217s 217s if http_error_msg: 217s > raise HTTPError(http_error_msg, response=self) 217s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/37023bde-11df-4233-a591-a2ca720a5efd 217s 217s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 217s ----------------------------- Captured stderr call ----------------------------- 217s Traceback (most recent call last): 217s ------------------------------ Captured log call ------------------------------- 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.640000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwrjfi5bn/runtime/kernel-3cffdce4-7c25-410a-8da4-b1035b14339e.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33739 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57423 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3cffdce4-7c25-410a-8da4-b1035b14339e, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpwrjfi5bn/notebooks/foo'} 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7dc2cbd4-4009-4e8d-a4f8-323e3672d009 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7dc2cbd4-4009-4e8d-a4f8-323e3672d009 217s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/37023bde-11df-4233-a591-a2ca720a5efd (::1) 14.380000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.360000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3cffdce4-7c25-410a-8da4-b1035b14339e 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3cffdce4-7c25-410a-8da4-b1035b14339e 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/37023bde-11df-4233-a591-a2ca720a5efd (::1) 217s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/37023bde-11df-4233-a591-a2ca720a5efd', version='HTTP/1.1', remote_ip='::1') 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 217s result = await result 217s ^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 217s yield maybe_future(sm.delete_session(session_id)) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 217s yielded = self.gen.send(value) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 217s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 217s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 217s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 217s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 217s return _runner_map[name].run(inner) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 217s return fut.result(None) 217s ~~~~~~~~~~^^^^^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 217s return self.__get_result() 217s ~~~~~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 217s raise self._exception 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 217s stopper = ensure_async(km.shutdown_kernel(now, restart)) 217s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 217s return _runner_map[name].run(inner) 217s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 217s return fut.result(None) 217s ~~~~~~~~~~^^^^^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 217s return self.__get_result() 217s ~~~~~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 217s raise self._exception 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s WARNING NotebookApp:handlers.py:612 Unhandled error 217s ERROR NotebookApp:log.py:55 { 217s "Host": "localhost:12341", 217s "Accept": "*/*", 217s "User-Agent": "python-requests/2.32.5" 217s } 217s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/37023bde-11df-4233-a591-a2ca720a5efd (::1) 4.000000ms referer=None 217s --------------------------- Captured stderr teardown --------------------------- 217s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 217s return _run_code(code, main_globals, None, 217s "__main__", mod_spec) 217s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 217s exec(code, run_globals) 217s ~~~~^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 217s from ipykernel import kernelapp as app 217s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 217s from .connect import * # noqa: F403 217s ^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 217s from subprocess import PIPE, Popen 217s File "/usr/lib/python3.13/subprocess.py", line 46, in 217s import locale 217s File "", line 1360, in _find_and_load 217s File "", line 1331, in _find_and_load_unlocked 217s File "", line 935, in _load_unlocked 217s File "", line 1019, in exec_module 217s File "", line 1152, in get_code 217s File "", line 781, in _compile_bytecode 217s KeyboardInterrupt 217s ---------------------------- Captured log teardown ----------------------------- 217s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3cffdce4-7c25-410a-8da4-b1035b14339e 217s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 217s _______________________ AsyncSessionAPITest.test_create ________________________ 217s 217s @self.addCleanup 217s def cleanup_sessions(): 217s for session in self.sess_api.list().json(): 217s > self.sess_api.delete(session['id']) 217s 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 217s return self._req('DELETE', id) 217s ^^^^^^^^^^^^^^^^^^^^^^^ 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 217s response.raise_for_status() 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s 217s self = 217s 217s def raise_for_status(self): 217s """Raises :class:`HTTPError`, if one occurred.""" 217s 217s http_error_msg = "" 217s if isinstance(self.reason, bytes): 217s # We attempt to decode utf-8 first because some servers 217s # choose to localize their reason strings. If the string 217s # isn't utf-8, we fall back to iso-8859-1 for all other 217s # encodings. (See PR #3538) 217s try: 217s reason = self.reason.decode("utf-8") 217s except UnicodeDecodeError: 217s reason = self.reason.decode("iso-8859-1") 217s else: 217s reason = self.reason 217s 217s if 400 <= self.status_code < 500: 217s http_error_msg = ( 217s f"{self.status_code} Client Error: {reason} for url: {self.url}" 217s ) 217s 217s elif 500 <= self.status_code < 600: 217s http_error_msg = ( 217s f"{self.status_code} Server Error: {reason} for url: {self.url}" 217s ) 217s 217s if http_error_msg: 217s > raise HTTPError(http_error_msg, response=self) 217s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8bc47aaf-3b28-4f5c-89de-4a4556b5f660 217s 217s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 217s ------------------------------ Captured log setup ------------------------------ 217s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpjwjss37h/config', '/tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpjwjss37h/etc/jupyter'] for config files 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpjwjss37h/etc/jupyter 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpjwjss37h/config 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpjwjss37h/etc/jupyter 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g9YpMG/autopkgtest_tmp/home/.local/etc/jupyter 217s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpjwjss37h/config 217s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpjwjss37h/notebooks 217s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 217s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 217s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 217s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 217s WARNING NotebookApp:handlers.py:612 Forbidden 217s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.350000ms referer=None 217s ----------------------------- Captured stderr call ----------------------------- 217s Traceback (most recent call last): 217s ------------------------------ Captured log call ------------------------------- 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.040000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjwjss37h/runtime/kernel-9f73c29f-b026-4175-a229-d89a4d185439.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55619 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51087 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9f73c29f-b026-4175-a229-d89a4d185439, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpjwjss37h/notebooks/foo'} 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.380000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.450000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/8bc47aaf-3b28-4f5c-89de-4a4556b5f660 (::1) 0.450000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.190000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9f73c29f-b026-4175-a229-d89a4d185439 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9f73c29f-b026-4175-a229-d89a4d185439 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 217s await kernel_awaitable 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 217s result = await obj 217s ^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8bc47aaf-3b28-4f5c-89de-4a4556b5f660 (::1) 217s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8bc47aaf-3b28-4f5c-89de-4a4556b5f660', version='HTTP/1.1', remote_ip='::1') 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 217s result = await result 217s ^^^^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 217s future.result() 217s ~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 217s yield maybe_future(sm.delete_session(session_id)) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 217s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 217s raise self._exception.with_traceback(self._exception_tb) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 217s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 217s raise km.ready.exception() # type: ignore[misc] 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 217s await kernel_awaitable 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 217s result = await obj 217s ^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s WARNING NotebookApp:handlers.py:612 Unhandled error 217s ERROR NotebookApp:log.py:55 { 217s "Host": "localhost:12341", 217s "Accept": "*/*", 217s "User-Agent": "python-requests/2.32.5" 217s } 217s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/8bc47aaf-3b28-4f5c-89de-4a4556b5f660 (::1) 3.880000ms referer=None/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 217s gc.collect() 217s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 217s 217s --------------------------- Captured stderr teardown --------------------------- 217s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 217s return _run_code(code, main_globals, None, 217s "__main__", mod_spec) 217s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 217s exec(code, run_globals) 217s ~~~~^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 217s from ipykernel import kernelapp as app 217s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 217s from .connect import * # noqa: F403 217s ^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 217s from subprocess import PIPE, Popen 217s File "/usr/lib/python3.13/subprocess.py", line 125, in 217s import selectors 217s File "", line 1360, in _find_and_load 217s File "", line 1331, in _find_and_load_unlocked 217s File "", line 935, in _load_unlocked 217s File "", line 1019, in exec_module 217s File "", line 1152, in get_code 217s File "", line 781, in _compile_bytecode 217s KeyboardInterrupt 217s _______________ AsyncSessionAPITest.test_create_console_session ________________ 217s 217s @self.addCleanup 217s def cleanup_sessions(): 217s for session in self.sess_api.list().json(): 217s > self.sess_api.delete(session['id']) 217s 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 217s return self._req('DELETE', id) 217s ^^^^^^^^^^^^^^^^^^^^^^^ 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 217s response.raise_for_status() 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s 217s self = 217s 217s def raise_for_status(self): 217s """Raises :class:`HTTPError`, if one occurred.""" 217s 217s http_error_msg = "" 217s if isinstance(self.reason, bytes): 217s # We attempt to decode utf-8 first because some servers 217s # choose to localize their reason strings. If the string 217s # isn't utf-8, we fall back to iso-8859-1 for all other 217s # encodings. (See PR #3538) 217s try: 217s reason = self.reason.decode("utf-8") 217s except UnicodeDecodeError: 217s reason = self.reason.decode("iso-8859-1") 217s else: 217s reason = self.reason 217s 217s if 400 <= self.status_code < 500: 217s http_error_msg = ( 217s f"{self.status_code} Client Error: {reason} for url: {self.url}" 217s ) 217s 217s elif 500 <= self.status_code < 600: 217s http_error_msg = ( 217s f"{self.status_code} Server Error: {reason} for url: {self.url}" 217s ) 217s 217s if http_error_msg: 217s > raise HTTPError(http_error_msg, response=self) 217s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/17267be0-115f-404a-af8b-4d9d85baa18b 217s 217s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 217s ----------------------------- Captured stderr call ----------------------------- 217s Traceback (most recent call last): 217s ------------------------------ Captured log call ------------------------------- 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjwjss37h/runtime/kernel-bff89e72-64dd-492b-b773-b5a30cd94a64.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41695 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37293 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: bff89e72-64dd-492b-b773-b5a30cd94a64, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpjwjss37h/notebooks/foo'} 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.230000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.460000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9f73c29f-b026-4175-a229-d89a4d185439 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9f73c29f-b026-4175-a229-d89a4d185439 217s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/8bc47aaf-3b28-4f5c-89de-4a4556b5f660 (::1) 0.520000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bff89e72-64dd-492b-b773-b5a30cd94a64 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bff89e72-64dd-492b-b773-b5a30cd94a64 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 217s await kernel_awaitable 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 217s result = await obj 217s ^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/17267be0-115f-404a-af8b-4d9d85baa18b (::1) 217s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/17267be0-115f-404a-af8b-4d9d85baa18b', version='HTTP/1.1', remote_ip='::1') 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 217s result = await result 217s ^^^^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 217s future.result() 217s ~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 217s yield maybe_future(sm.delete_session(session_id)) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 217s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 217s raise self._exception.with_traceback(self._exception_tb) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 217s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 217s raise km.ready.exception() # type: ignore[misc] 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 217s await kernel_awaitable 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 217s result = await obj 217s ^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s WARNING NotebookApp:handlers.py:612 Unhandled error 217s --------------------------- Captured stderr teardown --------------------------- 217s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 217s return _run_code(code, main_globals, None, 217s "__main__", mod_spec) 217s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 217s exec(code, run_globals) 217s ~~~~^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 217s from pathlib import Path 217s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 217s from ._local import * 217s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 217s class PureWindowsPath(PurePath): 217s ...<7 lines>... 217s __slots__ = () 217s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 217s import ntpath 217s File "", line 1360, in _find_and_load 217s File "", line 1331, in _find_and_load_unlocked 217s File "", line 935, in _load_unlocked 217s File "", line 1019, in exec_module 217s File "", line 1152, in get_code 217s File "", line 781, in _compile_bytecode 217s KeyboardInterrupt 217s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 217s 217s @self.addCleanup 217s def cleanup_sessions(): 217s for session in self.sess_api.list().json(): 217s > self.sess_api.delete(session['id']) 217s 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 217s return self._req('DELETE', id) 217s ^^^^^^^^^^^^^^^^^^^^^^^ 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 217s response.raise_for_status() 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s 217s self = 217s 217s def raise_for_status(self): 217s """Raises :class:`HTTPError`, if one occurred.""" 217s 217s http_error_msg = "" 217s if isinstance(self.reason, bytes): 217s # We attempt to decode utf-8 first because some servers 217s # choose to localize their reason strings. If the string 217s # isn't utf-8, we fall back to iso-8859-1 for all other 217s # encodings. (See PR #3538) 217s try: 217s reason = self.reason.decode("utf-8") 217s except UnicodeDecodeError: 217s reason = self.reason.decode("iso-8859-1") 217s else: 217s reason = self.reason 217s 217s if 400 <= self.status_code < 500: 217s http_error_msg = ( 217s f"{self.status_code} Client Error: {reason} for url: {self.url}" 217s ) 217s 217s elif 500 <= self.status_code < 600: 217s http_error_msg = ( 217s f"{self.status_code} Server Error: {reason} for url: {self.url}" 217s ) 217s 217s if http_error_msg: 217s > raise HTTPError(http_error_msg, response=self) 217s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1b3f9752-7aad-4ebb-a594-d6c4aac2ca06 217s 217s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 217s ----------------------------- Captured stderr call ----------------------------- 217s Traceback (most recent call last): 217s ------------------------------ Captured log call ------------------------------- 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjwjss37h/runtime/kernel-9d35cc90-7411-4b02-8931-1c7d039d74b1.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32973 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52523 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9d35cc90-7411-4b02-8931-1c7d039d74b1, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpjwjss37h/notebooks/foo'} 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.130000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.210000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bff89e72-64dd-492b-b773-b5a30cd94a64 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bff89e72-64dd-492b-b773-b5a30cd94a64 217s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/17267be0-115f-404a-af8b-4d9d85baa18b (::1) 1.260000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9d35cc90-7411-4b02-8931-1c7d039d74b1 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9d35cc90-7411-4b02-8931-1c7d039d74b1 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 217s await kernel_awaitable 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 217s result = await obj 217s ^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1b3f9752-7aad-4ebb-a594-d6c4aac2ca06 (::1) 217s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1b3f9752-7aad-4ebb-a594-d6c4aac2ca06', version='HTTP/1.1', remote_ip='::1') 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 217s result = await result 217s ^^^^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 217s future.result() 217s ~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 217s yield maybe_future(sm.delete_session(session_id)) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 217s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 217s raise self._exception.with_traceback(self._exception_tb) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 217s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 217s raise km.ready.exception() # type: ignore[misc] 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 217s await kernel_awaitable 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 217s result = await obj 217s ^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s WARNING NotebookApp:handlers.py:612 Unhandled error 217s --------------------------- Captured stderr teardown --------------------------- 217s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 217s return _run_code(code, main_globals, None, 217s "__main__", mod_spec) 217s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 217s exec(code, run_globals) 217s ~~~~^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 217s from ipykernel import kernelapp as app 217s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 217s from .connect import * # noqa: F403 217s ^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 217s import json 217s File "/usr/lib/python3.13/json/__init__.py", line 106, in 217s from .decoder import JSONDecoder, JSONDecodeError 217s File "/usr/lib/python3.13/json/decoder.py", line 5, in 217s from json import scanner 217s File "/usr/lib/python3.13/json/scanner.py", line 11, in 217s NUMBER_RE = re.compile( 217s r'(-?(?:0|[1-9][0-9]*))(\.[0-9]+)?([eE][-+]?[0-9]+)?', 217s (re.VERBOSE | re.MULTILINE | re.DOTALL)) 217s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 217s return _compile(pattern, flags) 217s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 217s p = _compiler.compile(pattern, flags) 217s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 217s p = _parser.parse(p, flags) 217s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 217s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 217s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 217s itemsappend(_parse(source, state, verbose, nested + 1, 217s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s not nested and not items)) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3.13/re/_parser.py", line 863, in _parse 217s p = _parse_sub(source, state, sub_verbose, nested + 1) 217s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 217s itemsappend(_parse(source, state, verbose, nested + 1, 217s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s not nested and not items)) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3.13/re/_parser.py", line 863, in _parse 217s p = _parse_sub(source, state, sub_verbose, nested + 1) 217s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 217s itemsappend(_parse(source, state, verbose, nested + 1, 217s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s not nested and not items)) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3.13/re/_parser.py", line 623, in _parse 217s set = _uniq(set) 217s File "/usr/lib/python3.13/re/_parser.py", line 449, in _uniq 217s return list(dict.fromkeys(items)) 217s ~~~~~~~~~~~~~^^^^^^^ 217s KeyboardInterrupt 217s _________________ AsyncSessionAPITest.test_create_file_session _________________ 217s 217s @self.addCleanup 217s def cleanup_sessions(): 217s for session in self.sess_api.list().json(): 217s > self.sess_api.delete(session['id']) 217s 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 217s return self._req('DELETE', id) 217s ^^^^^^^^^^^^^^^^^^^^^^^ 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 217s response.raise_for_status() 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s 217s self = 217s 217s def raise_for_status(self): 217s """Raises :class:`HTTPError`, if one occurred.""" 217s 217s http_error_msg = "" 217s if isinstance(self.reason, bytes): 217s # We attempt to decode utf-8 first because some servers 217s # choose to localize their reason strings. If the string 217s # isn't utf-8, we fall back to iso-8859-1 for all other 217s # encodings. (See PR #3538) 217s try: 217s reason = self.reason.decode("utf-8") 217s except UnicodeDecodeError: 217s reason = self.reason.decode("iso-8859-1") 217s else: 217s reason = self.reason 217s 217s if 400 <= self.status_code < 500: 217s http_error_msg = ( 217s f"{self.status_code} Client Error: {reason} for url: {self.url}" 217s ) 217s 217s elif 500 <= self.status_code < 600: 217s http_error_msg = ( 217s f"{self.status_code} Server Error: {reason} for url: {self.url}" 217s ) 217s 217s if http_error_msg: 217s > raise HTTPError(http_error_msg, response=self) 217s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1cfef554-66ce-455f-abd0-98a6943b6d3f 217s 217s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 217s ----------------------------- Captured stderr call ----------------------------- 217s Traceback (most recent call last): 217s ------------------------------ Captured log call ------------------------------- 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjwjss37h/runtime/kernel-fcb71afa-0a25-4357-9204-d426559c6b11.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36589 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55281 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: fcb71afa-0a25-4357-9204-d426559c6b11, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpjwjss37h/notebooks/foo'} 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.200000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.270000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9d35cc90-7411-4b02-8931-1c7d039d74b1 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9d35cc90-7411-4b02-8931-1c7d039d74b1 217s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/1b3f9752-7aad-4ebb-a594-d6c4aac2ca06 (::1) 1.350000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fcb71afa-0a25-4357-9204-d426559c6b11 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fcb71afa-0a25-4357-9204-d426559c6b11 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 217s await kernel_awaitable 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 217s result = await obj 217s ^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1cfef554-66ce-455f-abd0-98a6943b6d3f (::1) 217s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1cfef554-66ce-455f-abd0-98a6943b6d3f', version='HTTP/1.1', remote_ip='::1') 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 217s result = await result 217s ^^^^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 217s future.result() 217s ~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 217s yield maybe_future(sm.delete_session(session_id)) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 217s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 217s raise self._exception.with_traceback(self._exception_tb) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 217s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 217s raise km.ready.exception() # type: ignore[misc] 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 217s await kernel_awaitable 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 217s result = await obj 217s ^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s WARNING NotebookApp:handlers.py:612 Unhandled error 217s ERROR NotebookApp:log.py:55 { 217s "Host": "localhost:12341", 217s "Accept": "*/*", 217s "User-Agent": "python-requests/2.32.5" 217s } 217s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1cfef554-66ce-455f-abd0-98a6943b6d3f (::1) 3.870000ms referer=None 217s --------------------------- Captured stderr teardown --------------------------- 217s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 217s return _run_code(code, main_globals, None, 217s "__main__", mod_spec) 217s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 217s exec(code, run_globals) 217s ~~~~^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 217s from ipykernel import kernelapp as app 217s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 217s from .connect import * # noqa: F403 217s ^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 217s import json 217s File "/usr/lib/python3.13/json/__init__.py", line 107, in 217s from .encoder import JSONEncoder 217s File "", line 1360, in _find_and_load 217s File "", line 1331, in _find_and_load_unlocked 217s File "", line 935, in _load_unlocked 217s File "", line 1019, in exec_module 217s File "", line 1152, in get_code 217s File "", line 781, in _compile_bytecode 217s KeyboardInterrupt 217s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 217s 217s self = 217s 217s def test_create_with_kernel_id(self): 217s # create a new kernel 217s r = self.request('POST', 'api/kernels') 217s r.raise_for_status() 217s kernel = r.json() 217s 217s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 217s self.assertEqual(resp.status_code, 201) 217s newsession = resp.json() 217s self.assertIn('id', newsession) 217s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 217s self.assertEqual(newsession['kernel']['id'], kernel['id']) 217s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 217s 217s sessions = self.sess_api.list().json() 217s > self.assertEqual(sessions, [newsession]) 217s E AssertionError: Lists differ: [{'id': '1cfef554-66ce-455f-abd0-98a6943b6d3f', 'p[553 chars]ne}}] != [{'id': '5101daab-8446-4c64-9431-6463209b84fa', 'p[279 chars]ne}}] 217s E 217s E First differing element 0: 217s E {'id': '1cfef554-66ce-455f-abd0-98a6943b6d3f', 'p[218 chars]: 0}} 217s E {'id': '5101daab-8446-4c64-9431-6463209b84fa', 'p[278 chars]one}} 217s E 217s E First list contains 1 additional elements. 217s E First extra element 1: 217s E {'id': '5101daab-8446-4c64-9431-6463209b84fa', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '391e9082-3413-453f-b776-c4798bfdae44', 'name': 'python3', 'last_activity': '2026-02-06T10:25:30.514884Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 217s E 217s E Diff is 830 characters long. Set self.maxDiff to None to see it. 217s 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 217s ----------------------------- Captured stderr call ----------------------------- 217s Traceback (most recent call last): 217s ------------------------------ Captured log call ------------------------------- 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjwjss37h/runtime/kernel-391e9082-3413-453f-b776-c4798bfdae44.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48223 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60943 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: 391e9082-3413-453f-b776-c4798bfdae44, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.990000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.560000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.770000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.380000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fcb71afa-0a25-4357-9204-d426559c6b11 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fcb71afa-0a25-4357-9204-d426559c6b11 217s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/1cfef554-66ce-455f-abd0-98a6943b6d3f (::1) 0.500000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 391e9082-3413-453f-b776-c4798bfdae44 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 391e9082-3413-453f-b776-c4798bfdae44 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 217s await kernel_awaitable 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 217s result = await obj 217s ^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5101daab-8446-4c64-9431-6463209b84fa (::1) 217s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5101daab-8446-4c64-9431-6463209b84fa', version='HTTP/1.1', remote_ip='::1') 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 217s result = await result 217s ^^^^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 217s future.result() 217s ~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 217s yield maybe_future(sm.delete_session(session_id)) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 217s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 217s raise self._exception.with_traceback(self._exception_tb) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 217s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 217s raise km.ready.exception() # type: ignore[misc] 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 217s await kernel_awaitable 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 217s result = await obj 217s ^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s WARNING NotebookApp:handlers.py:612 Unhandled error 217s ERROR NotebookApp:log.py:55 { 217s "Host": "localhost:12341", 217s "Accept": "*/*", 217s "User-Agent": "python-requests/2.32.5" 217s } 217s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/5101daab-8446-4c64-9431-6463209b84fa (::1) 3.660000ms referer=None 217s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 217s 217s @self.addCleanup 217s def cleanup_sessions(): 217s for session in self.sess_api.list().json(): 217s > self.sess_api.delete(session['id']) 217s 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 217s return self._req('DELETE', id) 217s ^^^^^^^^^^^^^^^^^^^^^^^ 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 217s response.raise_for_status() 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s 217s self = 217s 217s def raise_for_status(self): 217s """Raises :class:`HTTPError`, if one occurred.""" 217s 217s http_error_msg = "" 217s if isinstance(self.reason, bytes): 217s # We attempt to decode utf-8 first because some servers 217s # choose to localize their reason strings. If the string 217s # isn't utf-8, we fall back to iso-8859-1 for all other 217s # encodings. (See PR #3538) 217s try: 217s reason = self.reason.decode("utf-8") 217s except UnicodeDecodeError: 217s reason = self.reason.decode("iso-8859-1") 217s else: 217s reason = self.reason 217s 217s if 400 <= self.status_code < 500: 217s http_error_msg = ( 217s f"{self.status_code} Client Error: {reason} for url: {self.url}" 217s ) 217s 217s elif 500 <= self.status_code < 600: 217s http_error_msg = ( 217s f"{self.status_code} Server Error: {reason} for url: {self.url}" 217s ) 217s 217s if http_error_msg: 217s > raise HTTPError(http_error_msg, response=self) 217s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5101daab-8446-4c64-9431-6463209b84fa 217s 217s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 217s ---------------------------- Captured stderr setup ----------------------------- 217s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 217s return _run_code(code, main_globals, None, 217s "__main__", mod_spec) 217s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 217s exec(code, run_globals) 217s ~~~~^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 217s from ipykernel import kernelapp as app 217s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 217s from .connect import * # noqa: F403 217s ^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 217s from subprocess import PIPE, Popen 217s File "/usr/lib/python3.13/subprocess.py", line 759, in 217s class Popen: 217s ...<1498 lines>... 217s self.send_signal(signal.SIGKILL) 217s KeyboardInterrupt 217s ----------------------------- Captured stderr call ----------------------------- 217s Traceback (most recent call last): 217s ------------------------------ Captured log call ------------------------------- 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.370000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjwjss37h/runtime/kernel-6f2f3bf0-4bd6-4927-8a77-f3c93ef0e71e.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42239 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40289 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6f2f3bf0-4bd6-4927-8a77-f3c93ef0e71e, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.830000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 391e9082-3413-453f-b776-c4798bfdae44 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 391e9082-3413-453f-b776-c4798bfdae44 217s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/5101daab-8446-4c64-9431-6463209b84fa (::1) 0.680000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.160000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.140000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6f2f3bf0-4bd6-4927-8a77-f3c93ef0e71e 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6f2f3bf0-4bd6-4927-8a77-f3c93ef0e71e 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 217s await kernel_awaitable 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 217s result = await obj 217s ^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5101daab-8446-4c64-9431-6463209b84fa (::1) 217s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5101daab-8446-4c64-9431-6463209b84fa', version='HTTP/1.1', remote_ip='::1') 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 217s result = await result 217s ^^^^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 217s future.result() 217s ~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 217s yield maybe_future(sm.delete_session(session_id)) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 217s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 217s raise self._exception.with_traceback(self._exception_tb) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 217s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 217s raise km.ready.exception() # type: ignore[misc] 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 217s await kernel_awaitable 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 217s result = await obj 217s ^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s WARNING NotebookApp:handlers.py:612 Unhandled error 217s ERROR NotebookApp:log.py:55 { 217s "Host": "localhost:12341", 217s "Accept": "*/*", 217s "User-Agent": "python-requests/2.32.5" 217s } 217s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/5101daab-8446-4c64-9431-6463209b84fa (::1) 3.660000ms referer=None 217s --------------------------- Captured stderr teardown --------------------------- 217s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 217s return _run_code(code, main_globals, None, 217s "__main__", mod_spec) 217s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 217s exec(code, run_globals) 217s ~~~~^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 217s from ipykernel import kernelapp as app 217s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 217s from .connect import * # noqa: F403 217s ^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 217s from subprocess import PIPE, Popen 217s File "/usr/lib/python3.13/subprocess.py", line 46, in 217s import locale 217s File "", line 1360, in _find_and_load 217s File "", line 1331, in _find_and_load_unlocked 217s File "", line 935, in _load_unlocked 217s File "", line 1019, in exec_module 217s File "", line 1152, in get_code 217s File "", line 781, in _compile_bytecode 217s KeyboardInterrupt 217s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 217s 217s @self.addCleanup 217s def cleanup_sessions(): 217s for session in self.sess_api.list().json(): 217s > self.sess_api.delete(session['id']) 217s 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 217s return self._req('DELETE', id) 217s ^^^^^^^^^^^^^^^^^^^^^^^ 217s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 217s response.raise_for_status() 217s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 217s 217s self = 217s 217s def raise_for_status(self): 217s """Raises :class:`HTTPError`, if one occurred.""" 217s 217s http_error_msg = "" 217s if isinstance(self.reason, bytes): 217s # We attempt to decode utf-8 first because some servers 217s # choose to localize their reason strings. If the string 217s # isn't utf-8, we fall back to iso-8859-1 for all other 217s # encodings. (See PR #3538) 217s try: 217s reason = self.reason.decode("utf-8") 217s except UnicodeDecodeError: 217s reason = self.reason.decode("iso-8859-1") 217s else: 217s reason = self.reason 217s 217s if 400 <= self.status_code < 500: 217s http_error_msg = ( 217s f"{self.status_code} Client Error: {reason} for url: {self.url}" 217s ) 217s 217s elif 500 <= self.status_code < 600: 217s http_error_msg = ( 217s f"{self.status_code} Server Error: {reason} for url: {self.url}" 217s ) 217s 217s if http_error_msg: 217s > raise HTTPError(http_error_msg, response=self) 217s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5101daab-8446-4c64-9431-6463209b84fa 217s 217s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 217s ----------------------------- Captured stderr call ----------------------------- 217s Traceback (most recent call last): 217s ------------------------------ Captured log call ------------------------------- 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.320000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 217s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjwjss37h/runtime/kernel-c321f4de-c0e0-4779-ad53-9a19bfcaa86b.json'] 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54155 217s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33881 217s INFO NotebookApp:kernelmanager.py:179 Kernel started: c321f4de-c0e0-4779-ad53-9a19bfcaa86b, name: python3 217s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpjwjss37h/notebooks/foo'} 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6f2f3bf0-4bd6-4927-8a77-f3c93ef0e71e 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6f2f3bf0-4bd6-4927-8a77-f3c93ef0e71e 217s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/5101daab-8446-4c64-9431-6463209b84fa (::1) 13.080000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.150000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.370000ms 217s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 217s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c321f4de-c0e0-4779-ad53-9a19bfcaa86b 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c321f4de-c0e0-4779-ad53-9a19bfcaa86b 217s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 217s await kernel_awaitable 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 217s result = await obj 217s ^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5101daab-8446-4c64-9431-6463209b84fa (::1) 217s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5101daab-8446-4c64-9431-6463209b84fa', version='HTTP/1.1', remote_ip='::1') 217s Traceback (most recent call last): 217s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 217s result = await result 217s ^^^^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 217s future.result() 217s ~~~~~~~~~~~~~^^ 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 217s yield maybe_future(sm.delete_session(session_id)) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 217s yielded = self.gen.throw(exc) 217s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 217s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 217s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 217s value = future.result() 217s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 217s raise self._exception.with_traceback(self._exception_tb) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 217s result = coro.send(None) 217s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 217s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 217s raise km.ready.exception() # type: ignore[misc] 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 217s await kernel_awaitable 217s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 217s result = await obj 217s ^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 217s raise e 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 217s out = await method(self, *args, **kwargs) 217s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 217s await self._async_finish_shutdown(restart=restart) 217s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 217s await asyncio.wait_for( 217s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 217s ) 217s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 217s async with timeouts.timeout(timeout): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^ 217s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 217s raise RuntimeError("Timeout should be used inside a task") 217s RuntimeError: Timeout should be used inside a task 217s WARNING NotebookApp:handlers.py:612 Unhandled error 217s --------------------------- Captured stderr teardown --------------------------- 217s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 217s return _run_code(code, main_globals, None, 217s "__main__", mod_spec) 217s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 217s exec(code, run_globals) 217s ~~~~^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 217s from ipykernel import kernelapp as app 217s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 217s from .connect import * # noqa: F403 217s ^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 217s from subprocess import PIPE, Popen 217s File "", line 1360, in _find_and_load 217s File "", line 1322, in _find_and_load_unlocked 217s File "", line 1262, in _find_spec 217s File "", line 1556, in find_spec 217s File "", line 1530, in _get_spec 217s File "", line 1662, in find_spec 217s File "", line 166, in _path_isfile 217s File "", line 158, in _path_is_mode_type 217s File "", line 152, in _path_stat 217s KeyboardInterrupt 217s ---------------------------- Captured log teardown ----------------------------- 217s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9f73c29f-b026-4175-a229-d89a4d185439 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 391e9082-3413-453f-b776-c4798bfdae44 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c321f4de-c0e0-4779-ad53-9a19bfcaa86b 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bff89e72-64dd-492b-b773-b5a30cd94a64 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fcb71afa-0a25-4357-9204-d426559c6b11 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6f2f3bf0-4bd6-4927-8a77-f3c93ef0e71e 217s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9d35cc90-7411-4b02-8931-1c7d039d74b1 217s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 217s =============================== warnings summary =============================== 217s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 217s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 217s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 217s return LooseVersion(v) >= LooseVersion(check) 217s 217s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 217s services/kernels/tests/test_kernels_api.py: 65 warnings 217s services/sessions/tests/test_sessions_api.py: 88 warnings 217s /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). 217s dt = unaware(*args, **kwargs) 217s 217s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 217s /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 217s pytestmark = pytest.mark.integration_tests 217s 217s services/kernels/tests/test_kernels_api.py: 6 warnings 217s services/sessions/tests/test_sessions_api.py: 6 warnings 217s /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 217s policy = events.get_event_loop_policy() 217s 217s services/kernels/tests/test_kernels_api.py: 24 warnings 217s services/sessions/tests/test_sessions_api.py: 19 warnings 217s /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 217s loop = events.get_event_loop_policy().get_event_loop() 217s 217s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 217s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 217s loop.make_current() 217s 217s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 217s =========================== short test summary info ============================ 217s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 217s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 217s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 217s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 217s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 217s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 217s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 217s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 217s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 217s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 217s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 217s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 217s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 217s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 217s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 217s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 217s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 217s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 217s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 217s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 217s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 217s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 217s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 217s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 217s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 217s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 217s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 217s ========== 23 failed, 307 deselected, 213 warnings, 4 errors in 3.25s ========== 217s *** END OF RUN 5: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 217s *** SOME TESTS FAILED/ERRORED EVERY RUN, ABORTING *** 217s autopkgtest [10:25:31]: test pytest: -----------------------] 218s autopkgtest [10:25:32]: test pytest: - - - - - - - - - - results - - - - - - - - - - 218s pytest FAIL non-zero exit status 1 218s autopkgtest [10:25:32]: @@@@@@@@@@@@@@@@@@@@ summary 218s pytest FAIL non-zero exit status 1