0s autopkgtest [06:14:39]: starting date and time: 2026-01-30 06:14:39+0000 0s autopkgtest [06:14:39]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [06:14:39]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.aei9zuk_/out --timeout-copy=6000 --needs-internet=try --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:send2trash --apt-upgrade jupyter-notebook --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=send2trash/1.8.3-1build1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-cpu2-ram4-disk20-ppc64el --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@sto01-ppc64el-1.secgroup --name adt-resolute-ppc64el-jupyter-notebook-20260130-061439-juju-7f2275-prod-proposed-migration-environment-15-6851cd55-e1ac-42aa-97fd-55d969a003a3 --image adt/ubuntu-resolute-ppc64el-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-autopkgtest-workers-ppc64el -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 3s Creating nova instance adt-resolute-ppc64el-jupyter-notebook-20260130-061439-juju-7f2275-prod-proposed-migration-environment-15-6851cd55-e1ac-42aa-97fd-55d969a003a3 from image adt/ubuntu-resolute-ppc64el-server-20260129.img (UUID 011be5ba-3d23-459d-9a9a-537803b22566)... 63s autopkgtest [06:15:42]: testbed dpkg architecture: ppc64el 63s autopkgtest [06:15:42]: testbed apt version: 3.1.14 63s autopkgtest [06:15:42]: @@@@@@@@@@@@@@@@@@@@ test bed setup 63s autopkgtest [06:15:42]: testbed release detected to be: None 64s autopkgtest [06:15:43]: updating testbed package index (apt update) 64s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 64s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 64s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 64s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 64s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [103 kB] 64s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [33.0 kB] 64s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1600 kB] 65s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [2820 B] 65s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el Packages [119 kB] 65s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe ppc64el Packages [1131 kB] 65s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse ppc64el Packages [22.2 kB] 65s Fetched 3136 kB in 1s (3737 kB/s) 66s Reading package lists... 66s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 66s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 66s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 66s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 67s Reading package lists... 67s Reading package lists... 67s Building dependency tree... 67s Reading state information... 67s Calculating upgrade... 68s The following packages will be upgraded: 68s bzip2 gcc-15-base inetutils-telnet libatomic1 libbz2-1.0 libgcc-s1 68s libsgutils2-1.48 libsqlite3-0 libstdc++6 sg3-utils sg3-utils-udev telnet 68s 12 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 68s Need to get 3302 kB of archives. 68s After this operation, 3072 B of additional disk space will be used. 68s Get:1 http://ftpmaster.internal/ubuntu resolute/main ppc64el libatomic1 ppc64el 15.2.0-12ubuntu1 [11.0 kB] 68s Get:2 http://ftpmaster.internal/ubuntu resolute/main ppc64el libstdc++6 ppc64el 15.2.0-12ubuntu1 [922 kB] 68s Get:3 http://ftpmaster.internal/ubuntu resolute/main ppc64el gcc-15-base ppc64el 15.2.0-12ubuntu1 [59.6 kB] 68s Get:4 http://ftpmaster.internal/ubuntu resolute/main ppc64el libgcc-s1 ppc64el 15.2.0-12ubuntu1 [40.2 kB] 68s Get:5 http://ftpmaster.internal/ubuntu resolute/main ppc64el bzip2 ppc64el 1.0.8-6build2 [37.6 kB] 68s Get:6 http://ftpmaster.internal/ubuntu resolute/main ppc64el libbz2-1.0 ppc64el 1.0.8-6build2 [47.7 kB] 68s Get:7 http://ftpmaster.internal/ubuntu resolute/main ppc64el libsqlite3-0 ppc64el 3.46.1-9 [825 kB] 68s Get:8 http://ftpmaster.internal/ubuntu resolute/main ppc64el inetutils-telnet ppc64el 2:2.7-2ubuntu1 [125 kB] 68s Get:9 http://ftpmaster.internal/ubuntu resolute/main ppc64el telnet all 0.17+2.7-2ubuntu1 [3636 B] 68s Get:10 http://ftpmaster.internal/ubuntu resolute/main ppc64el libsgutils2-1.48 ppc64el 1.48-3ubuntu2 [143 kB] 68s Get:11 http://ftpmaster.internal/ubuntu resolute/main ppc64el sg3-utils ppc64el 1.48-3ubuntu2 [1080 kB] 68s Get:12 http://ftpmaster.internal/ubuntu resolute/main ppc64el sg3-utils-udev all 1.48-3ubuntu2 [6610 B] 68s dpkg-preconfigure: unable to re-open stdin: No such file or directory 68s Fetched 3302 kB in 1s (6369 kB/s) 69s (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 ... 120856 files and directories currently installed.) 69s Preparing to unpack .../libatomic1_15.2.0-12ubuntu1_ppc64el.deb ... 69s Unpacking libatomic1:ppc64el (15.2.0-12ubuntu1) over (15.2.0-11ubuntu1) ... 69s Preparing to unpack .../libstdc++6_15.2.0-12ubuntu1_ppc64el.deb ... 69s Unpacking libstdc++6:ppc64el (15.2.0-12ubuntu1) over (15.2.0-11ubuntu1) ... 69s Preparing to unpack .../gcc-15-base_15.2.0-12ubuntu1_ppc64el.deb ... 69s Unpacking gcc-15-base:ppc64el (15.2.0-12ubuntu1) over (15.2.0-11ubuntu1) ... 69s Setting up gcc-15-base:ppc64el (15.2.0-12ubuntu1) ... 69s (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 ... 120856 files and directories currently installed.) 69s Preparing to unpack .../libgcc-s1_15.2.0-12ubuntu1_ppc64el.deb ... 69s Unpacking libgcc-s1:ppc64el (15.2.0-12ubuntu1) over (15.2.0-11ubuntu1) ... 69s Setting up libgcc-s1:ppc64el (15.2.0-12ubuntu1) ... 69s (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 ... 120856 files and directories currently installed.) 69s Preparing to unpack .../bzip2_1.0.8-6build2_ppc64el.deb ... 69s Unpacking bzip2 (1.0.8-6build2) over (1.0.8-6build1) ... 69s Preparing to unpack .../libbz2-1.0_1.0.8-6build2_ppc64el.deb ... 69s Unpacking libbz2-1.0:ppc64el (1.0.8-6build2) over (1.0.8-6build1) ... 69s Setting up libbz2-1.0:ppc64el (1.0.8-6build2) ... 69s (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 ... 120856 files and directories currently installed.) 69s Preparing to unpack .../0-libsqlite3-0_3.46.1-9_ppc64el.deb ... 69s Unpacking libsqlite3-0:ppc64el (3.46.1-9) over (3.46.1-8) ... 69s Preparing to unpack .../1-inetutils-telnet_2%3a2.7-2ubuntu1_ppc64el.deb ... 69s Unpacking inetutils-telnet (2:2.7-2ubuntu1) over (2:2.6-4ubuntu1) ... 70s Preparing to unpack .../2-telnet_0.17+2.7-2ubuntu1_all.deb ... 70s Unpacking telnet (0.17+2.7-2ubuntu1) over (0.17+2.6-4ubuntu1) ... 70s Preparing to unpack .../3-libsgutils2-1.48_1.48-3ubuntu2_ppc64el.deb ... 70s Unpacking libsgutils2-1.48:ppc64el (1.48-3ubuntu2) over (1.48-3ubuntu1) ... 70s Preparing to unpack .../4-sg3-utils_1.48-3ubuntu2_ppc64el.deb ... 70s Unpacking sg3-utils (1.48-3ubuntu2) over (1.48-3ubuntu1) ... 70s Preparing to unpack .../5-sg3-utils-udev_1.48-3ubuntu2_all.deb ... 70s Unpacking sg3-utils-udev (1.48-3ubuntu2) over (1.48-3ubuntu1) ... 70s Setting up libsqlite3-0:ppc64el (3.46.1-9) ... 70s Setting up inetutils-telnet (2:2.7-2ubuntu1) ... 70s Setting up libsgutils2-1.48:ppc64el (1.48-3ubuntu2) ... 70s Setting up bzip2 (1.0.8-6build2) ... 70s Setting up libatomic1:ppc64el (15.2.0-12ubuntu1) ... 70s Setting up libstdc++6:ppc64el (15.2.0-12ubuntu1) ... 70s Setting up sg3-utils (1.48-3ubuntu2) ... 70s Setting up telnet (0.17+2.7-2ubuntu1) ... 70s Setting up sg3-utils-udev (1.48-3ubuntu2) ... 70s update-initramfs: deferring update (trigger activated) 70s Processing triggers for libc-bin (2.42-2ubuntu4) ... 70s Processing triggers for man-db (2.13.1-1) ... 71s Processing triggers for initramfs-tools (0.150ubuntu7) ... 71s update-initramfs: Generating /boot/initrd.img-6.18.0-9-generic 79s autopkgtest [06:15:58]: upgrading testbed (apt dist-upgrade and autopurge) 79s Reading package lists... 79s Building dependency tree... 79s Reading state information... 79s Calculating upgrade... 79s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 79s Reading package lists... 79s Building dependency tree... 79s Reading state information... 80s Solving dependencies... 80s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 80s autopkgtest [06:15:59]: rebooting testbed after setup commands that affected boot 118s autopkgtest [06:16:37]: testbed running kernel: Linux 6.18.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 12 16:45:54 UTC 2026 120s autopkgtest [06:16:39]: @@@@@@@@@@@@@@@@@@@@ apt-source jupyter-notebook 123s Get:1 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (dsc) [3737 B] 123s Get:2 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (tar) [8501 kB] 123s Get:3 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (diff) [52.5 kB] 123s gpgv: Signature made Tue Apr 22 01:32:11 2025 UTC 123s gpgv: using RSA key 00F6164E9C2D21BAFBC47E0E58DAD120A6939167 123s gpgv: Can't check signature: No public key 123s dpkg-source: warning: cannot verify inline signature for ./jupyter-notebook_6.4.13-5ubuntu0.1.dsc: no acceptable signature found 123s autopkgtest [06:16:42]: testing package jupyter-notebook version 6.4.13-5ubuntu0.1 123s autopkgtest [06:16:42]: build not needed 124s autopkgtest [06:16:43]: test pytest: preparing testbed 124s Reading package lists... 125s Building dependency tree... 125s Reading state information... 125s Solving dependencies... 125s The following NEW packages will be installed: 125s fonts-font-awesome fonts-glyphicons-halflings fonts-lato fonts-mathjax gdb 125s jupyter-core jupyter-notebook libargon2-1 libbabeltrace1 libjs-backbone 125s libjs-bootstrap libjs-bootstrap-tour libjs-codemirror libjs-es6-promise 125s libjs-jed libjs-jquery libjs-jquery-typeahead libjs-jquery-ui libjs-marked 125s libjs-mathjax libjs-moment libjs-requirejs libjs-requirejs-text 125s libjs-text-encoding libjs-underscore libjs-xterm libnorm1t64 libpgm-5.3-0t64 125s libpython3.14 libpython3.14-minimal libpython3.14-stdlib libsodium23 125s libsource-highlight-common libsource-highlight4t64 libzmq5 node-jed 125s python-notebook-doc python-tinycss2-common python3-all python3-argon2 125s python3-argon2-cffi-bindings python3-astroid python3-asttokens 125s python3-bleach python3-bs4 python3-cffi python3-comm python3-coverage 125s python3-debugpy python3-decorator python3-defusedxml python3-executing 125s python3-fastjsonschema python3-html5lib python3-iniconfig python3-ipykernel 125s python3-ipython python3-ipython-genutils python3-jedi python3-jupyter-client 125s python3-jupyter-core python3-jupyterlab-pygments python3-matplotlib-inline 125s python3-mistune python3-nbclient python3-nbconvert python3-nbformat 125s python3-nest-asyncio python3-notebook python3-pandocfilters python3-parso 125s python3-platformdirs python3-pluggy python3-ply python3-prometheus-client 125s python3-prompt-toolkit python3-psutil python3-pure-eval python3-pycparser 125s python3-pytest python3-requests-unixsocket python3-send2trash 125s python3-soupsieve python3-stack-data python3-terminado python3-tinycss2 125s python3-tornado python3-traitlets python3-typeshed python3-wcwidth 125s python3-webencodings python3-zmq python3.14 python3.14-minimal 125s sphinx-rtd-theme-common 125s 0 upgraded, 95 newly installed, 0 to remove and 0 not upgraded. 125s Need to get 43.1 MB of archives. 125s After this operation, 216 MB of additional disk space will be used. 125s Get:1 http://ftpmaster.internal/ubuntu resolute/main ppc64el fonts-lato all 2.015-1build1 [2779 kB] 125s Get:2 http://ftpmaster.internal/ubuntu resolute/main ppc64el libpython3.14-minimal ppc64el 3.14.2-1 [921 kB] 125s Get:3 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3.14-minimal ppc64el 3.14.2-1 [2712 kB] 125s Get:4 http://ftpmaster.internal/ubuntu resolute/main ppc64el fonts-font-awesome all 5.0.10+really4.7.0~dfsg-4.1build1 [531 kB] 125s Get:5 http://ftpmaster.internal/ubuntu resolute/universe ppc64el fonts-glyphicons-halflings all 1.009~3.4.1+dfsg-6 [119 kB] 125s Get:6 http://ftpmaster.internal/ubuntu resolute/main ppc64el fonts-mathjax all 2.7.9+dfsg-1build1 [2283 kB] 125s Get:7 http://ftpmaster.internal/ubuntu resolute/main ppc64el libbabeltrace1 ppc64el 1.5.11-5 [209 kB] 125s Get:8 http://ftpmaster.internal/ubuntu resolute/main ppc64el libpython3.14-stdlib ppc64el 3.14.2-1 [2444 kB] 125s Get:9 http://ftpmaster.internal/ubuntu resolute/main ppc64el libpython3.14 ppc64el 3.14.2-1 [2731 kB] 125s Get:10 http://ftpmaster.internal/ubuntu resolute/main ppc64el libsource-highlight-common all 3.1.9-4.3build2 [64.2 kB] 125s Get:11 http://ftpmaster.internal/ubuntu resolute/main ppc64el libsource-highlight4t64 ppc64el 3.1.9-4.3build2 [296 kB] 126s Get:12 http://ftpmaster.internal/ubuntu resolute/main ppc64el gdb ppc64el 17.1-1ubuntu2 [5426 kB] 126s Get:13 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-platformdirs all 4.5.1-1 [17.1 kB] 126s Get:14 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-traitlets all 5.14.3+really5.14.3-2 [71.7 kB] 126s Get:15 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-jupyter-core all 5.9.1-1 [28.9 kB] 126s Get:16 http://ftpmaster.internal/ubuntu resolute/universe ppc64el jupyter-core all 5.9.1-1 [6938 B] 126s Get:17 http://ftpmaster.internal/ubuntu resolute/main ppc64el libjs-underscore all 1.13.7~dfsg+~1.13.0-1 [86.4 kB] 126s Get:18 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-backbone all 1.4.1~dfsg+~1.4.15-3build1 [186 kB] 126s Get:19 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-bootstrap all 3.4.1+dfsg-6 [129 kB] 126s Get:20 http://ftpmaster.internal/ubuntu resolute/main ppc64el libjs-jquery all 3.7.1+dfsg+~3.5.33-1build1 [321 kB] 126s Get:21 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-bootstrap-tour all 0.12.0+dfsg-6 [21.6 kB] 126s Get:22 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-codemirror all 5.65.20+~cs5.83.25-1 [710 kB] 126s Get:23 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-es6-promise all 4.2.8-12 [14.1 kB] 126s Get:24 http://ftpmaster.internal/ubuntu resolute/universe ppc64el node-jed all 1.1.1-4 [15.2 kB] 126s Get:25 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-jed all 1.1.1-4 [2584 B] 126s Get:26 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-jquery-typeahead all 2.11.0+dfsg1-3build1 [48.3 kB] 126s Get:27 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-jquery-ui all 1.13.2+dfsg-1build1 [251 kB] 126s Get:28 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-marked all 4.2.3+ds+~4.0.7-4 [36.2 kB] 126s Get:29 http://ftpmaster.internal/ubuntu resolute/main ppc64el libjs-mathjax all 2.7.9+dfsg-1build1 [6017 kB] 126s Get:30 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-moment all 2.29.4+ds-1 [147 kB] 126s Get:31 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-requirejs all 2.3.8+ds+~2.1.37-1 [201 kB] 126s Get:32 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-requirejs-text all 2.0.12-2 [9732 B] 126s Get:33 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-text-encoding all 0.7.0-5 [140 kB] 126s Get:34 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-xterm all 5.3.0-4 [475 kB] 126s Get:35 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-tornado ppc64el 6.5.4-0.1 [306 kB] 126s Get:36 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-terminado all 0.18.1-1 [13.2 kB] 126s Get:37 http://ftpmaster.internal/ubuntu resolute/main ppc64el libargon2-1 ppc64el 0~20190702+dfsg-5 [27.0 kB] 126s Get:38 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-ply all 3.11-10 [45.9 kB] 126s Get:39 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-pycparser all 2.23-2 [77.0 kB] 126s Get:40 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-cffi all 2.0.0-2 [75.5 kB] 126s Get:41 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-argon2-cffi-bindings ppc64el 25.1.0-2 [15.5 kB] 126s Get:42 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-argon2 ppc64el 25.1.0-2 [13.8 kB] 126s Get:43 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-comm all 0.2.1-1build1 [7148 B] 126s Get:44 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3.14 ppc64el 3.14.2-1 [816 kB] 127s Get:45 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-coverage ppc64el 7.8.2+dfsg1-1ubuntu1 [160 kB] 127s Get:46 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-debugpy ppc64el 1.8.19+ds-1ubuntu1 [927 kB] 127s Get:47 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-decorator all 5.2.1-2 [28.1 kB] 127s Get:48 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-parso all 0.8.5-1 [68.0 kB] 127s Get:49 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-typeshed all 0.0~git20241223.ea91db2-4 [1554 kB] 127s Get:50 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-jedi all 0.19.1+ds1-1build1 [694 kB] 127s Get:51 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-matplotlib-inline all 0.2.1-1 [9462 B] 127s Get:52 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-wcwidth all 0.2.14+dfsg1-1build1 [26.5 kB] 127s Get:53 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-prompt-toolkit all 3.0.52-2 [258 kB] 127s Get:54 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-astroid all 4.0.2-1ubuntu1 [172 kB] 127s Get:55 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-asttokens all 3.0.1-1 [20.7 kB] 127s Get:56 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-executing all 2.2.1-0.1 [26.2 kB] 127s Get:57 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-pure-eval all 0.2.3-1 [11.4 kB] 127s Get:58 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-stack-data all 0.6.3-3 [22.2 kB] 127s Get:59 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-ipython all 8.35.0-2 [575 kB] 127s Get:60 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-psutil ppc64el 7.1.0-1ubuntu1 [192 kB] 127s Get:61 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libnorm1t64 ppc64el 1.5.9+dfsg-4 [198 kB] 127s Get:62 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libpgm-5.3-0t64 ppc64el 5.3.128~dfsg-2.1build2 [184 kB] 127s Get:63 http://ftpmaster.internal/ubuntu resolute/main ppc64el libsodium23 ppc64el 1.0.18-2 [160 kB] 127s Get:64 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libzmq5 ppc64el 4.3.5-1build3 [302 kB] 127s Get:65 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-zmq ppc64el 27.1.0-1 [232 kB] 127s Get:66 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-jupyter-client all 8.7.0-1 [78.5 kB] 127s Get:67 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-nest-asyncio all 1.6.0-1 [6686 B] 127s Get:68 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-ipykernel all 6.30.1-1 [82.8 kB] 127s Get:69 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-ipython-genutils all 0.2.0-7 [22.0 kB] 127s Get:70 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python-tinycss2-common all 1.5.1-1 [47.3 kB] 127s Get:71 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-webencodings all 0.5.1-5build1 [11.7 kB] 127s Get:72 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-tinycss2 all 1.5.1-1 [23.3 kB] 127s Get:73 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-html5lib all 1.2-3 [90.6 kB] 127s Get:74 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-bleach all 6.3.0-1 [44.2 kB] 127s Get:75 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-soupsieve all 2.8.3-1 [34.0 kB] 128s Get:76 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-bs4 all 4.14.3-2build1 [84.8 kB] 128s Get:77 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-defusedxml all 0.7.1-3build1 [42.4 kB] 128s Get:78 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-jupyterlab-pygments all 0.2.2-3build1 [6188 B] 128s Get:79 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-mistune all 3.1.4-1 [35.0 kB] 128s Get:80 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-fastjsonschema all 2.21.1-1 [20.4 kB] 128s Get:81 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-nbformat all 5.10.4-1 [39.2 kB] 128s Get:82 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-nbclient all 0.10.4-1 [22.6 kB] 128s Get:83 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-pandocfilters all 1.5.1-1 [23.6 kB] 128s Get:84 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-nbconvert all 7.16.6-1 [140 kB] 128s Get:85 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-prometheus-client all 0.21.1+ds1-1build1 [46.0 kB] 128s Get:86 http://ftpmaster.internal/ubuntu resolute-proposed/universe ppc64el python3-send2trash all 1.8.3-1build1 [14.8 kB] 128s Get:87 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-notebook all 6.4.13-5ubuntu0.1 [1624 kB] 128s Get:88 http://ftpmaster.internal/ubuntu resolute/universe ppc64el jupyter-notebook all 6.4.13-5ubuntu0.1 [10.4 kB] 128s Get:89 http://ftpmaster.internal/ubuntu resolute/main ppc64el sphinx-rtd-theme-common all 3.0.2+dfsg-3 [1013 kB] 128s Get:90 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python-notebook-doc all 6.4.13-5ubuntu0.1 [2545 kB] 128s Get:91 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-all ppc64el 3.13.9-3 [890 B] 128s Get:92 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-iniconfig all 2.1.0-2 [6962 B] 128s Get:93 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-pluggy all 1.6.0-2 [21.1 kB] 128s Get:94 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-pytest all 9.0.2-2 [277 kB] 128s Get:95 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-requests-unixsocket all 1.0.1-1 [8620 B] 129s Fetched 43.1 MB in 3s (12.3 MB/s) 129s Selecting previously unselected package fonts-lato. 129s (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 ... 120856 files and directories currently installed.) 129s Preparing to unpack .../00-fonts-lato_2.015-1build1_all.deb ... 129s Unpacking fonts-lato (2.015-1build1) ... 129s Selecting previously unselected package libpython3.14-minimal:ppc64el. 129s Preparing to unpack .../01-libpython3.14-minimal_3.14.2-1_ppc64el.deb ... 129s Unpacking libpython3.14-minimal:ppc64el (3.14.2-1) ... 129s Selecting previously unselected package python3.14-minimal. 129s Preparing to unpack .../02-python3.14-minimal_3.14.2-1_ppc64el.deb ... 129s Unpacking python3.14-minimal (3.14.2-1) ... 129s Selecting previously unselected package fonts-font-awesome. 129s Preparing to unpack .../03-fonts-font-awesome_5.0.10+really4.7.0~dfsg-4.1build1_all.deb ... 129s Unpacking fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1build1) ... 129s Selecting previously unselected package fonts-glyphicons-halflings. 129s Preparing to unpack .../04-fonts-glyphicons-halflings_1.009~3.4.1+dfsg-6_all.deb ... 129s Unpacking fonts-glyphicons-halflings (1.009~3.4.1+dfsg-6) ... 129s Selecting previously unselected package fonts-mathjax. 129s Preparing to unpack .../05-fonts-mathjax_2.7.9+dfsg-1build1_all.deb ... 129s Unpacking fonts-mathjax (2.7.9+dfsg-1build1) ... 129s Selecting previously unselected package libbabeltrace1:ppc64el. 129s Preparing to unpack .../06-libbabeltrace1_1.5.11-5_ppc64el.deb ... 129s Unpacking libbabeltrace1:ppc64el (1.5.11-5) ... 129s Selecting previously unselected package libpython3.14-stdlib:ppc64el. 129s Preparing to unpack .../07-libpython3.14-stdlib_3.14.2-1_ppc64el.deb ... 129s Unpacking libpython3.14-stdlib:ppc64el (3.14.2-1) ... 130s Selecting previously unselected package libpython3.14:ppc64el. 130s Preparing to unpack .../08-libpython3.14_3.14.2-1_ppc64el.deb ... 130s Unpacking libpython3.14:ppc64el (3.14.2-1) ... 130s Selecting previously unselected package libsource-highlight-common. 130s Preparing to unpack .../09-libsource-highlight-common_3.1.9-4.3build2_all.deb ... 130s Unpacking libsource-highlight-common (3.1.9-4.3build2) ... 130s Selecting previously unselected package libsource-highlight4t64:ppc64el. 130s Preparing to unpack .../10-libsource-highlight4t64_3.1.9-4.3build2_ppc64el.deb ... 130s Unpacking libsource-highlight4t64:ppc64el (3.1.9-4.3build2) ... 130s Selecting previously unselected package gdb. 130s Preparing to unpack .../11-gdb_17.1-1ubuntu2_ppc64el.deb ... 130s Unpacking gdb (17.1-1ubuntu2) ... 130s Selecting previously unselected package python3-platformdirs. 130s Preparing to unpack .../12-python3-platformdirs_4.5.1-1_all.deb ... 130s Unpacking python3-platformdirs (4.5.1-1) ... 130s Selecting previously unselected package python3-traitlets. 130s Preparing to unpack .../13-python3-traitlets_5.14.3+really5.14.3-2_all.deb ... 130s Unpacking python3-traitlets (5.14.3+really5.14.3-2) ... 130s Selecting previously unselected package python3-jupyter-core. 130s Preparing to unpack .../14-python3-jupyter-core_5.9.1-1_all.deb ... 130s Unpacking python3-jupyter-core (5.9.1-1) ... 130s Selecting previously unselected package jupyter-core. 130s Preparing to unpack .../15-jupyter-core_5.9.1-1_all.deb ... 130s Unpacking jupyter-core (5.9.1-1) ... 130s Selecting previously unselected package libjs-underscore. 130s Preparing to unpack .../16-libjs-underscore_1.13.7~dfsg+~1.13.0-1_all.deb ... 130s Unpacking libjs-underscore (1.13.7~dfsg+~1.13.0-1) ... 130s Selecting previously unselected package libjs-backbone. 130s Preparing to unpack .../17-libjs-backbone_1.4.1~dfsg+~1.4.15-3build1_all.deb ... 130s Unpacking libjs-backbone (1.4.1~dfsg+~1.4.15-3build1) ... 130s Selecting previously unselected package libjs-bootstrap. 130s Preparing to unpack .../18-libjs-bootstrap_3.4.1+dfsg-6_all.deb ... 130s Unpacking libjs-bootstrap (3.4.1+dfsg-6) ... 130s Selecting previously unselected package libjs-jquery. 130s Preparing to unpack .../19-libjs-jquery_3.7.1+dfsg+~3.5.33-1build1_all.deb ... 130s Unpacking libjs-jquery (3.7.1+dfsg+~3.5.33-1build1) ... 130s Selecting previously unselected package libjs-bootstrap-tour. 130s Preparing to unpack .../20-libjs-bootstrap-tour_0.12.0+dfsg-6_all.deb ... 130s Unpacking libjs-bootstrap-tour (0.12.0+dfsg-6) ... 130s Selecting previously unselected package libjs-codemirror. 130s Preparing to unpack .../21-libjs-codemirror_5.65.20+~cs5.83.25-1_all.deb ... 130s Unpacking libjs-codemirror (5.65.20+~cs5.83.25-1) ... 130s Selecting previously unselected package libjs-es6-promise. 130s Preparing to unpack .../22-libjs-es6-promise_4.2.8-12_all.deb ... 130s Unpacking libjs-es6-promise (4.2.8-12) ... 130s Selecting previously unselected package node-jed. 130s Preparing to unpack .../23-node-jed_1.1.1-4_all.deb ... 130s Unpacking node-jed (1.1.1-4) ... 130s Selecting previously unselected package libjs-jed. 130s Preparing to unpack .../24-libjs-jed_1.1.1-4_all.deb ... 130s Unpacking libjs-jed (1.1.1-4) ... 130s Selecting previously unselected package libjs-jquery-typeahead. 130s Preparing to unpack .../25-libjs-jquery-typeahead_2.11.0+dfsg1-3build1_all.deb ... 130s Unpacking libjs-jquery-typeahead (2.11.0+dfsg1-3build1) ... 130s Selecting previously unselected package libjs-jquery-ui. 130s Preparing to unpack .../26-libjs-jquery-ui_1.13.2+dfsg-1build1_all.deb ... 130s Unpacking libjs-jquery-ui (1.13.2+dfsg-1build1) ... 130s Selecting previously unselected package libjs-marked. 130s Preparing to unpack .../27-libjs-marked_4.2.3+ds+~4.0.7-4_all.deb ... 130s Unpacking libjs-marked (4.2.3+ds+~4.0.7-4) ... 130s Selecting previously unselected package libjs-mathjax. 130s Preparing to unpack .../28-libjs-mathjax_2.7.9+dfsg-1build1_all.deb ... 130s Unpacking libjs-mathjax (2.7.9+dfsg-1build1) ... 131s Selecting previously unselected package libjs-moment. 131s Preparing to unpack .../29-libjs-moment_2.29.4+ds-1_all.deb ... 131s Unpacking libjs-moment (2.29.4+ds-1) ... 131s Selecting previously unselected package libjs-requirejs. 131s Preparing to unpack .../30-libjs-requirejs_2.3.8+ds+~2.1.37-1_all.deb ... 131s Unpacking libjs-requirejs (2.3.8+ds+~2.1.37-1) ... 131s Selecting previously unselected package libjs-requirejs-text. 131s Preparing to unpack .../31-libjs-requirejs-text_2.0.12-2_all.deb ... 131s Unpacking libjs-requirejs-text (2.0.12-2) ... 131s Selecting previously unselected package libjs-text-encoding. 131s Preparing to unpack .../32-libjs-text-encoding_0.7.0-5_all.deb ... 131s Unpacking libjs-text-encoding (0.7.0-5) ... 131s Selecting previously unselected package libjs-xterm. 131s Preparing to unpack .../33-libjs-xterm_5.3.0-4_all.deb ... 131s Unpacking libjs-xterm (5.3.0-4) ... 131s Selecting previously unselected package python3-tornado. 131s Preparing to unpack .../34-python3-tornado_6.5.4-0.1_ppc64el.deb ... 131s Unpacking python3-tornado (6.5.4-0.1) ... 131s Selecting previously unselected package python3-terminado. 131s Preparing to unpack .../35-python3-terminado_0.18.1-1_all.deb ... 131s Unpacking python3-terminado (0.18.1-1) ... 131s Selecting previously unselected package libargon2-1:ppc64el. 131s Preparing to unpack .../36-libargon2-1_0~20190702+dfsg-5_ppc64el.deb ... 131s Unpacking libargon2-1:ppc64el (0~20190702+dfsg-5) ... 131s Selecting previously unselected package python3-ply. 131s Preparing to unpack .../37-python3-ply_3.11-10_all.deb ... 131s Unpacking python3-ply (3.11-10) ... 131s Selecting previously unselected package python3-pycparser. 131s Preparing to unpack .../38-python3-pycparser_2.23-2_all.deb ... 131s Unpacking python3-pycparser (2.23-2) ... 131s Selecting previously unselected package python3-cffi. 131s Preparing to unpack .../39-python3-cffi_2.0.0-2_all.deb ... 131s Unpacking python3-cffi (2.0.0-2) ... 131s Selecting previously unselected package python3-argon2-cffi-bindings. 131s Preparing to unpack .../40-python3-argon2-cffi-bindings_25.1.0-2_ppc64el.deb ... 131s Unpacking python3-argon2-cffi-bindings (25.1.0-2) ... 131s Selecting previously unselected package python3-argon2. 131s Preparing to unpack .../41-python3-argon2_25.1.0-2_ppc64el.deb ... 131s Unpacking python3-argon2 (25.1.0-2) ... 131s Selecting previously unselected package python3-comm. 131s Preparing to unpack .../42-python3-comm_0.2.1-1build1_all.deb ... 131s Unpacking python3-comm (0.2.1-1build1) ... 131s Selecting previously unselected package python3.14. 131s Preparing to unpack .../43-python3.14_3.14.2-1_ppc64el.deb ... 131s Unpacking python3.14 (3.14.2-1) ... 131s Selecting previously unselected package python3-coverage. 131s Preparing to unpack .../44-python3-coverage_7.8.2+dfsg1-1ubuntu1_ppc64el.deb ... 131s Unpacking python3-coverage (7.8.2+dfsg1-1ubuntu1) ... 131s Selecting previously unselected package python3-debugpy. 131s Preparing to unpack .../45-python3-debugpy_1.8.19+ds-1ubuntu1_ppc64el.deb ... 131s Unpacking python3-debugpy (1.8.19+ds-1ubuntu1) ... 131s Selecting previously unselected package python3-decorator. 131s Preparing to unpack .../46-python3-decorator_5.2.1-2_all.deb ... 131s Unpacking python3-decorator (5.2.1-2) ... 131s Selecting previously unselected package python3-parso. 131s Preparing to unpack .../47-python3-parso_0.8.5-1_all.deb ... 131s Unpacking python3-parso (0.8.5-1) ... 131s Selecting previously unselected package python3-typeshed. 131s Preparing to unpack .../48-python3-typeshed_0.0~git20241223.ea91db2-4_all.deb ... 131s Unpacking python3-typeshed (0.0~git20241223.ea91db2-4) ... 132s Selecting previously unselected package python3-jedi. 132s Preparing to unpack .../49-python3-jedi_0.19.1+ds1-1build1_all.deb ... 132s Unpacking python3-jedi (0.19.1+ds1-1build1) ... 132s Selecting previously unselected package python3-matplotlib-inline. 132s Preparing to unpack .../50-python3-matplotlib-inline_0.2.1-1_all.deb ... 132s Unpacking python3-matplotlib-inline (0.2.1-1) ... 132s Selecting previously unselected package python3-wcwidth. 132s Preparing to unpack .../51-python3-wcwidth_0.2.14+dfsg1-1build1_all.deb ... 132s Unpacking python3-wcwidth (0.2.14+dfsg1-1build1) ... 132s Selecting previously unselected package python3-prompt-toolkit. 132s Preparing to unpack .../52-python3-prompt-toolkit_3.0.52-2_all.deb ... 132s Unpacking python3-prompt-toolkit (3.0.52-2) ... 132s Selecting previously unselected package python3-astroid. 132s Preparing to unpack .../53-python3-astroid_4.0.2-1ubuntu1_all.deb ... 132s Unpacking python3-astroid (4.0.2-1ubuntu1) ... 132s Selecting previously unselected package python3-asttokens. 132s Preparing to unpack .../54-python3-asttokens_3.0.1-1_all.deb ... 132s Unpacking python3-asttokens (3.0.1-1) ... 132s Selecting previously unselected package python3-executing. 132s Preparing to unpack .../55-python3-executing_2.2.1-0.1_all.deb ... 132s Unpacking python3-executing (2.2.1-0.1) ... 132s Selecting previously unselected package python3-pure-eval. 132s Preparing to unpack .../56-python3-pure-eval_0.2.3-1_all.deb ... 132s Unpacking python3-pure-eval (0.2.3-1) ... 132s Selecting previously unselected package python3-stack-data. 132s Preparing to unpack .../57-python3-stack-data_0.6.3-3_all.deb ... 132s Unpacking python3-stack-data (0.6.3-3) ... 132s Selecting previously unselected package python3-ipython. 132s Preparing to unpack .../58-python3-ipython_8.35.0-2_all.deb ... 132s Unpacking python3-ipython (8.35.0-2) ... 132s Selecting previously unselected package python3-psutil. 132s Preparing to unpack .../59-python3-psutil_7.1.0-1ubuntu1_ppc64el.deb ... 132s Unpacking python3-psutil (7.1.0-1ubuntu1) ... 132s Selecting previously unselected package libnorm1t64:ppc64el. 132s Preparing to unpack .../60-libnorm1t64_1.5.9+dfsg-4_ppc64el.deb ... 132s Unpacking libnorm1t64:ppc64el (1.5.9+dfsg-4) ... 132s Selecting previously unselected package libpgm-5.3-0t64:ppc64el. 132s Preparing to unpack .../61-libpgm-5.3-0t64_5.3.128~dfsg-2.1build2_ppc64el.deb ... 132s Unpacking libpgm-5.3-0t64:ppc64el (5.3.128~dfsg-2.1build2) ... 132s Selecting previously unselected package libsodium23:ppc64el. 132s Preparing to unpack .../62-libsodium23_1.0.18-2_ppc64el.deb ... 132s Unpacking libsodium23:ppc64el (1.0.18-2) ... 132s Selecting previously unselected package libzmq5:ppc64el. 132s Preparing to unpack .../63-libzmq5_4.3.5-1build3_ppc64el.deb ... 132s Unpacking libzmq5:ppc64el (4.3.5-1build3) ... 132s Selecting previously unselected package python3-zmq. 132s Preparing to unpack .../64-python3-zmq_27.1.0-1_ppc64el.deb ... 132s Unpacking python3-zmq (27.1.0-1) ... 132s Selecting previously unselected package python3-jupyter-client. 132s Preparing to unpack .../65-python3-jupyter-client_8.7.0-1_all.deb ... 132s Unpacking python3-jupyter-client (8.7.0-1) ... 132s Selecting previously unselected package python3-nest-asyncio. 132s Preparing to unpack .../66-python3-nest-asyncio_1.6.0-1_all.deb ... 132s Unpacking python3-nest-asyncio (1.6.0-1) ... 132s Selecting previously unselected package python3-ipykernel. 132s Preparing to unpack .../67-python3-ipykernel_6.30.1-1_all.deb ... 132s Unpacking python3-ipykernel (6.30.1-1) ... 132s Selecting previously unselected package python3-ipython-genutils. 132s Preparing to unpack .../68-python3-ipython-genutils_0.2.0-7_all.deb ... 132s Unpacking python3-ipython-genutils (0.2.0-7) ... 132s Selecting previously unselected package python-tinycss2-common. 132s Preparing to unpack .../69-python-tinycss2-common_1.5.1-1_all.deb ... 132s Unpacking python-tinycss2-common (1.5.1-1) ... 132s Selecting previously unselected package python3-webencodings. 132s Preparing to unpack .../70-python3-webencodings_0.5.1-5build1_all.deb ... 132s Unpacking python3-webencodings (0.5.1-5build1) ... 132s Selecting previously unselected package python3-tinycss2. 132s Preparing to unpack .../71-python3-tinycss2_1.5.1-1_all.deb ... 132s Unpacking python3-tinycss2 (1.5.1-1) ... 132s Selecting previously unselected package python3-html5lib. 132s Preparing to unpack .../72-python3-html5lib_1.2-3_all.deb ... 132s Unpacking python3-html5lib (1.2-3) ... 132s Selecting previously unselected package python3-bleach. 132s Preparing to unpack .../73-python3-bleach_6.3.0-1_all.deb ... 132s Unpacking python3-bleach (6.3.0-1) ... 132s Selecting previously unselected package python3-soupsieve. 132s Preparing to unpack .../74-python3-soupsieve_2.8.3-1_all.deb ... 132s Unpacking python3-soupsieve (2.8.3-1) ... 132s Selecting previously unselected package python3-bs4. 132s Preparing to unpack .../75-python3-bs4_4.14.3-2build1_all.deb ... 132s Unpacking python3-bs4 (4.14.3-2build1) ... 132s Selecting previously unselected package python3-defusedxml. 132s Preparing to unpack .../76-python3-defusedxml_0.7.1-3build1_all.deb ... 132s Unpacking python3-defusedxml (0.7.1-3build1) ... 132s Selecting previously unselected package python3-jupyterlab-pygments. 132s Preparing to unpack .../77-python3-jupyterlab-pygments_0.2.2-3build1_all.deb ... 132s Unpacking python3-jupyterlab-pygments (0.2.2-3build1) ... 132s Selecting previously unselected package python3-mistune. 132s Preparing to unpack .../78-python3-mistune_3.1.4-1_all.deb ... 132s Unpacking python3-mistune (3.1.4-1) ... 132s Selecting previously unselected package python3-fastjsonschema. 132s Preparing to unpack .../79-python3-fastjsonschema_2.21.1-1_all.deb ... 132s Unpacking python3-fastjsonschema (2.21.1-1) ... 132s Selecting previously unselected package python3-nbformat. 132s Preparing to unpack .../80-python3-nbformat_5.10.4-1_all.deb ... 132s Unpacking python3-nbformat (5.10.4-1) ... 132s Selecting previously unselected package python3-nbclient. 132s Preparing to unpack .../81-python3-nbclient_0.10.4-1_all.deb ... 132s Unpacking python3-nbclient (0.10.4-1) ... 132s Selecting previously unselected package python3-pandocfilters. 132s Preparing to unpack .../82-python3-pandocfilters_1.5.1-1_all.deb ... 132s Unpacking python3-pandocfilters (1.5.1-1) ... 133s Selecting previously unselected package python3-nbconvert. 133s Preparing to unpack .../83-python3-nbconvert_7.16.6-1_all.deb ... 133s Unpacking python3-nbconvert (7.16.6-1) ... 133s Selecting previously unselected package python3-prometheus-client. 133s Preparing to unpack .../84-python3-prometheus-client_0.21.1+ds1-1build1_all.deb ... 133s Unpacking python3-prometheus-client (0.21.1+ds1-1build1) ... 133s Selecting previously unselected package python3-send2trash. 133s Preparing to unpack .../85-python3-send2trash_1.8.3-1build1_all.deb ... 133s Unpacking python3-send2trash (1.8.3-1build1) ... 133s Selecting previously unselected package python3-notebook. 133s Preparing to unpack .../86-python3-notebook_6.4.13-5ubuntu0.1_all.deb ... 133s Unpacking python3-notebook (6.4.13-5ubuntu0.1) ... 133s Selecting previously unselected package jupyter-notebook. 133s Preparing to unpack .../87-jupyter-notebook_6.4.13-5ubuntu0.1_all.deb ... 133s Unpacking jupyter-notebook (6.4.13-5ubuntu0.1) ... 133s Selecting previously unselected package sphinx-rtd-theme-common. 133s Preparing to unpack .../88-sphinx-rtd-theme-common_3.0.2+dfsg-3_all.deb ... 133s Unpacking sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 133s Selecting previously unselected package python-notebook-doc. 133s Preparing to unpack .../89-python-notebook-doc_6.4.13-5ubuntu0.1_all.deb ... 133s Unpacking python-notebook-doc (6.4.13-5ubuntu0.1) ... 133s Selecting previously unselected package python3-all. 133s Preparing to unpack .../90-python3-all_3.13.9-3_ppc64el.deb ... 133s Unpacking python3-all (3.13.9-3) ... 133s Selecting previously unselected package python3-iniconfig. 133s Preparing to unpack .../91-python3-iniconfig_2.1.0-2_all.deb ... 133s Unpacking python3-iniconfig (2.1.0-2) ... 133s Selecting previously unselected package python3-pluggy. 133s Preparing to unpack .../92-python3-pluggy_1.6.0-2_all.deb ... 133s Unpacking python3-pluggy (1.6.0-2) ... 133s Selecting previously unselected package python3-pytest. 133s Preparing to unpack .../93-python3-pytest_9.0.2-2_all.deb ... 133s Unpacking python3-pytest (9.0.2-2) ... 133s Selecting previously unselected package python3-requests-unixsocket. 133s Preparing to unpack .../94-python3-requests-unixsocket_1.0.1-1_all.deb ... 133s Unpacking python3-requests-unixsocket (1.0.1-1) ... 133s Setting up libjs-jquery-typeahead (2.11.0+dfsg1-3build1) ... 133s Setting up python3-iniconfig (2.1.0-2) ... 133s Setting up python3-tornado (6.5.4-0.1) ... 134s Setting up libnorm1t64:ppc64el (1.5.9+dfsg-4) ... 134s Setting up python3-pure-eval (0.2.3-1) ... 134s Setting up python3-send2trash (1.8.3-1build1) ... 134s Setting up fonts-lato (2.015-1build1) ... 134s Setting up fonts-mathjax (2.7.9+dfsg-1build1) ... 134s Setting up libsodium23:ppc64el (1.0.18-2) ... 134s Setting up libjs-mathjax (2.7.9+dfsg-1build1) ... 134s Setting up libjs-requirejs-text (2.0.12-2) ... 134s Setting up python3-parso (0.8.5-1) ... 135s Setting up python3-defusedxml (0.7.1-3build1) ... 135s Setting up python3-ipython-genutils (0.2.0-7) ... 135s Setting up fonts-glyphicons-halflings (1.009~3.4.1+dfsg-6) ... 135s Setting up libargon2-1:ppc64el (0~20190702+dfsg-5) ... 135s Setting up python3-ply (3.11-10) ... 135s Setting up libpython3.14-minimal:ppc64el (3.14.2-1) ... 135s Setting up libjs-moment (2.29.4+ds-1) ... 135s Setting up python3-pandocfilters (1.5.1-1) ... 135s Setting up libjs-requirejs (2.3.8+ds+~2.1.37-1) ... 135s Setting up libjs-es6-promise (4.2.8-12) ... 135s Setting up libjs-text-encoding (0.7.0-5) ... 135s Setting up python3-webencodings (0.5.1-5build1) ... 135s Setting up python3-platformdirs (4.5.1-1) ... 136s Setting up python3-psutil (7.1.0-1ubuntu1) ... 136s Setting up libsource-highlight-common (3.1.9-4.3build2) ... 136s Setting up python3-pycparser (2.23-2) ... 136s Setting up python3-requests-unixsocket (1.0.1-1) ... 137s Setting up python3-jupyterlab-pygments (0.2.2-3build1) ... 137s Setting up libpgm-5.3-0t64:ppc64el (5.3.128~dfsg-2.1build2) ... 137s Setting up python3-decorator (5.2.1-2) ... 137s Setting up python3-wcwidth (0.2.14+dfsg1-1build1) ... 137s Setting up node-jed (1.1.1-4) ... 137s Setting up python3-typeshed (0.0~git20241223.ea91db2-4) ... 137s Setting up libjs-xterm (5.3.0-4) ... 137s Setting up python3-nest-asyncio (1.6.0-1) ... 137s Setting up libjs-codemirror (5.65.20+~cs5.83.25-1) ... 137s Setting up libjs-jed (1.1.1-4) ... 137s Setting up python3-html5lib (1.2-3) ... 138s Setting up libbabeltrace1:ppc64el (1.5.11-5) ... 138s Setting up python3-pluggy (1.6.0-2) ... 138s Setting up python3-fastjsonschema (2.21.1-1) ... 138s Setting up python3-terminado (0.18.1-1) ... 138s Setting up python3-astroid (4.0.2-1ubuntu1) ... 139s Setting up python3-traitlets (5.14.3+really5.14.3-2) ... 139s Setting up python-tinycss2-common (1.5.1-1) ... 139s Setting up libjs-jquery (3.7.1+dfsg+~3.5.33-1build1) ... 139s Setting up python3-mistune (3.1.4-1) ... 139s Setting up python3-soupsieve (2.8.3-1) ... 139s Setting up fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1build1) ... 139s Setting up sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 139s Setting up python3.14-minimal (3.14.2-1) ... 141s Setting up python3-jupyter-core (5.9.1-1) ... 141s Setting up libjs-bootstrap (3.4.1+dfsg-6) ... 141s Setting up libjs-underscore (1.13.7~dfsg+~1.13.0-1) ... 141s Setting up libjs-marked (4.2.3+ds+~4.0.7-4) ... 141s Setting up python3-prompt-toolkit (3.0.52-2) ... 142s Setting up python3-tinycss2 (1.5.1-1) ... 142s Setting up libzmq5:ppc64el (4.3.5-1build3) ... 142s Setting up python3-jedi (0.19.1+ds1-1build1) ... 143s Setting up libpython3.14-stdlib:ppc64el (3.14.2-1) ... 143s Setting up python3-asttokens (3.0.1-1) ... 143s Setting up python3-pytest (9.0.2-2) ... 144s Setting up python3-cffi (2.0.0-2) ... 144s Setting up libjs-bootstrap-tour (0.12.0+dfsg-6) ... 144s Setting up libjs-backbone (1.4.1~dfsg+~1.4.15-3build1) ... 144s Setting up libsource-highlight4t64:ppc64el (3.1.9-4.3build2) ... 144s Setting up python3-nbformat (5.10.4-1) ... 144s Setting up python-notebook-doc (6.4.13-5ubuntu0.1) ... 144s Setting up python3-bs4 (4.14.3-2build1) ... 144s Setting up python3-bleach (6.3.0-1) ... 145s Setting up python3-matplotlib-inline (0.2.1-1) ... 145s Setting up python3-comm (0.2.1-1build1) ... 145s Setting up python3-prometheus-client (0.21.1+ds1-1build1) ... 145s Setting up libjs-jquery-ui (1.13.2+dfsg-1build1) ... 145s Setting up python3-executing (2.2.1-0.1) ... 145s Setting up python3-zmq (27.1.0-1) ... 146s Setting up python3-argon2-cffi-bindings (25.1.0-2) ... 146s Setting up python3-argon2 (25.1.0-2) ... 146s Setting up libpython3.14:ppc64el (3.14.2-1) ... 146s Setting up python3-jupyter-client (8.7.0-1) ... 146s Setting up jupyter-core (5.9.1-1) ... 146s Setting up python3.14 (3.14.2-1) ... 147s Setting up python3-stack-data (0.6.3-3) ... 148s Setting up python3-all (3.13.9-3) ... 148s Setting up python3-coverage (7.8.2+dfsg1-1ubuntu1) ... 148s Setting up python3-nbclient (0.10.4-1) ... 148s Setting up gdb (17.1-1ubuntu2) ... 148s Setting up python3-ipython (8.35.0-2) ... 149s /usr/lib/python3/dist-packages/IPython/core/interactiveshell.py:3141: SyntaxWarning: 'return' in a 'finally' block 149s return result 149s Setting up python3-nbconvert (7.16.6-1) ... 149s Setting up python3-debugpy (1.8.19+ds-1ubuntu1) ... 151s Setting up python3-ipykernel (6.30.1-1) ... 151s Setting up python3-notebook (6.4.13-5ubuntu0.1) ... 151s Setting up jupyter-notebook (6.4.13-5ubuntu0.1) ... 151s Processing triggers for systemd (259-1ubuntu2) ... 151s Processing triggers for man-db (2.13.1-1) ... 152s Processing triggers for libc-bin (2.42-2ubuntu4) ... 157s autopkgtest [06:17:16]: test pytest: [----------------------- 158s Testing with python3.14 158s *** 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 162s ============================= test session starts ============================== 162s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 162s rootdir: /tmp/autopkgtest.XnQU0x/autopkgtest_tmp 162s plugins: typeguard-4.4.4 162s collected 330 items / 6 deselected / 324 selected 162s 163s auth/tests/test_login.py .. [ 0%] 163s auth/tests/test_security.py .... [ 1%] 163s bundler/tests/test_bundler_api.py ..... [ 3%] 163s bundler/tests/test_bundler_tools.py ............. [ 7%] 164s bundler/tests/test_bundlerextension.py ... [ 8%] 164s nbconvert/tests/test_nbconvert_handlers.py ssssss [ 10%] 164s services/api/tests/test_api.py ... [ 11%] 164s services/config/tests/test_config_api.py ... [ 12%] 164s services/contents/tests/test_contents_api.py .s..........ss..s.......... [ 20%] 165s ................s...........ss..s......................... [ 38%] 165s services/contents/tests/test_fileio.py ... [ 39%] 165s services/contents/tests/test_largefilemanager.py . [ 39%] 166s services/contents/tests/test_manager.py .....s........ss..........ss.... [ 49%] 166s .... [ 50%] 177s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF.. [ 54%] 177s services/kernelspecs/tests/test_kernelspecs_api.py ....... [ 56%] 178s services/nbconvert/tests/test_nbconvert_api.py . [ 56%] 178s services/sessions/tests/test_sessionmanager.py ......... [ 59%] 180s services/sessions/tests/test_sessions_api.py FFFFFE.FEFE.FFFFFFFE.FEFE.F [ 65%] 180s F [ 66%] 184s terminal/tests/test_terminals_api.py ........ [ 68%] 184s tests/test_config_manager.py . [ 68%] 184s tests/test_files.py ..... [ 70%] 184s tests/test_gateway.py ...... [ 72%] 184s tests/test_i18n.py . [ 72%] 184s tests/test_log.py . [ 72%] 185s tests/test_nbextensions.py ................................... [ 83%] 186s tests/test_notebookapp.py .......................... [ 91%] 186s tests/test_paths.py ... [ 92%] 186s tests/test_serialize.py .. [ 93%] 187s tests/test_serverextensions.py ..... [ 94%] 187s tests/test_traittypes.py ........... [ 98%] 188s tests/test_utils.py ....s [ 99%] 189s tree/tests/test_tree_handler.py . [100%] 189s 189s ==================================== ERRORS ==================================== 189s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 189s 189s self = 189s 189s def tearDown(self): 189s for k in self.kern_api.list().json(): 189s > self.kern_api.shutdown(k['id']) 189s 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/7d9588eb-639c-433c-ae69-21e801aff544 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 189s from pathlib import Path 189s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 189s from ._abc import * 189s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 189s from glob import _Globber, _no_recurse_symlinks 189s File "/usr/lib/python3.13/glob.py", line 5, in 189s import re 189s File "/usr/lib/python3.13/re/__init__.py", line 125, in 189s import enum 189s File "/usr/lib/python3.13/enum.py", line 339, in 189s class EnumDict(dict): 189s File "/usr/lib/python3.13/enum.py", line 238, in __set_name__ 189s def __set_name__(self, ownerclass, name): 189s KeyboardInterrupt 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppnq2g8qh/runtime/kernel-7d9588eb-639c-433c-ae69-21e801aff544.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46793 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37891 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7d9588eb-639c-433c-ae69-21e801aff544, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.110000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppnq2g8qh/runtime/kernel-32d5a222-d6cc-4ce8-9643-ba62a89b08fd.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56605 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54985 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 32d5a222-d6cc-4ce8-9643-ba62a89b08fd, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.290000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.530000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 32d5a222-d6cc-4ce8-9643-ba62a89b08fd 189s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/32d5a222-d6cc-4ce8-9643-ba62a89b08fd/interrupt (::1) 0.710000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 189s yield maybe_future(km.restart_kernel(kernel_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 189s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 189s await ensure_async(kernel.restart_kernel(now=now)) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 189s await self._async_shutdown_kernel(now=now, restart=True) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/32d5a222-d6cc-4ce8-9643-ba62a89b08fd/restart (::1) 9.880000ms referer=None 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.640000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7d9588eb-639c-433c-ae69-21e801aff544 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7d9588eb-639c-433c-ae69-21e801aff544 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/7d9588eb-639c-433c-ae69-21e801aff544 (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/7d9588eb-639c-433c-ae69-21e801aff544', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 189s yielded = ctx_run(next, result) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 189s yield maybe_future(km.shutdown_kernel(kernel_id)) 189s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 189s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 189s stopper = ensure_async(km.shutdown_kernel(now, restart)) 189s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/7d9588eb-639c-433c-ae69-21e801aff544 (::1) 6.980000ms referer=None 189s --------------------------- Captured stderr teardown --------------------------- 189s Traceback (most recent call last): 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 189s from ipykernel import kernelapp as app 189s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 189s from .connect import * # noqa: F403 189s ^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 189s import jupyter_client 189s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 189s from .asynchronous import AsyncKernelClient 189s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 189s from .client import AsyncKernelClient # noqa 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 189s import zmq.asyncio 189s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 189s import asyncio 189s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 189s from .base_events import * 189s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 189s import ssl 189s File "/usr/lib/python3.13/ssl.py", line 100, in 189s import _ssl # if we can't import it, let the error propagate 189s ^^^^^^^^^^^ 189s File "", line 1360, in _find_and_load 189s File "", line 1331, in _find_and_load_unlocked 189s File "", line 935, in _load_unlocked 189s File "", line 1326, in exec_module 189s File "", line 491, in _verbose_message 189s KeyboardInterrupt 189s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 189s 189s self = 189s 189s def tearDown(self): 189s for k in self.kern_api.list().json(): 189s > self.kern_api.shutdown(k['id']) 189s 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/4685c355-c0f4-48b0-ba96-9d5fb7d04019 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 189s from pathlib import Path 189s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 189s from ._local import * 189s File "", line 1360, in _find_and_load 189s File "", line 1331, in _find_and_load_unlocked 189s File "", line 935, in _load_unlocked 189s File "", line 1019, in exec_module 189s File "", line 1152, in get_code 189s File "", line 781, in _compile_bytecode 189s KeyboardInterrupt 189s Traceback (most recent call last): 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 189s from ipykernel import kernelapp as app 189s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 189s from .connect import * # noqa: F403 189s ^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 189s import jupyter_client 189s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 189s from .asynchronous import AsyncKernelClient 189s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 189s from .client import AsyncKernelClient # noqa 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 189s import zmq.asyncio 189s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 189s import asyncio 189s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 189s from .base_events import * 189s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 189s import ssl 189s File "/usr/lib/python3.13/ssl.py", line 100, in 189s import _ssl # if we can't import it, let the error propagate 189s ^^^^^^^^^^^ 189s KeyboardInterrupt 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp059_81yy/runtime/kernel-4685c355-c0f4-48b0-ba96-9d5fb7d04019.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39361 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33489 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4685c355-c0f4-48b0-ba96-9d5fb7d04019, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.200000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp059_81yy/runtime/kernel-fe139ee1-22ba-4aa3-8927-8c986095c144.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57891 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46915 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: fe139ee1-22ba-4aa3-8927-8c986095c144, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.900000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.570000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: fe139ee1-22ba-4aa3-8927-8c986095c144 189s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/fe139ee1-22ba-4aa3-8927-8c986095c144/interrupt (::1) 0.600000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 189s yield maybe_future(km.restart_kernel(kernel_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 189s result = coro.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 189s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 189s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 189s yield self # This tells Task to wait for completion. 189s ^^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 189s future.result() 189s ~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 189s await ensure_async(kernel.restart_kernel(now=now)) 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 189s await self._async_shutdown_kernel(now=now, restart=True) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/fe139ee1-22ba-4aa3-8927-8c986095c144/restart (::1) 6.560000ms referer=None 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4685c355-c0f4-48b0-ba96-9d5fb7d04019 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4685c355-c0f4-48b0-ba96-9d5fb7d04019 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/4685c355-c0f4-48b0-ba96-9d5fb7d04019 (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/4685c355-c0f4-48b0-ba96-9d5fb7d04019', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 189s future.result() 189s ~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 189s yield maybe_future(km.shutdown_kernel(kernel_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 189s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 189s raise km.ready.exception() # type: ignore[misc] 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/4685c355-c0f4-48b0-ba96-9d5fb7d04019 (::1) 6.100000ms referer=None 189s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 189s 189s @self.addCleanup 189s def cleanup_sessions(): 189s for session in self.sess_api.list().json(): 189s > self.sess_api.delete(session['id']) 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/27e440b7-301a-4437-beca-9aa2c85c327c 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnfu5e6vs/runtime/kernel-c051d85c-20ea-481b-b8d1-218fde88bcb9.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34995 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58219 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: c051d85c-20ea-481b-b8d1-218fde88bcb9, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.510000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.770000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.630000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.610000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fe0e0f55-be70-4112-9b37-af87ec0a3d36 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fe0e0f55-be70-4112-9b37-af87ec0a3d36 189s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/af61047d-f1a8-4d72-9c30-3822121dd668 (::1) 0.880000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c051d85c-20ea-481b-b8d1-218fde88bcb9 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c051d85c-20ea-481b-b8d1-218fde88bcb9 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/27e440b7-301a-4437-beca-9aa2c85c327c (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/27e440b7-301a-4437-beca-9aa2c85c327c', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 189s yielded = self.gen.send(value) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 189s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 189s stopper = ensure_async(km.shutdown_kernel(now, restart)) 189s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/27e440b7-301a-4437-beca-9aa2c85c327c (::1) 11.330000ms referer=None 189s --------------------------- Captured stderr teardown --------------------------- 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 189s from ipykernel import kernelapp as app 189s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 189s from .connect import * # noqa: F403 189s ^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 189s import jupyter_client 189s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 189s from .asynchronous import AsyncKernelClient 189s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 189s from .client import AsyncKernelClient # noqa 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 189s import zmq.asyncio 189s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 189s from zmq import sugar 189s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 189s from zmq.sugar import context, frame, poll, socket, tracker, version 189s File "/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 20, in 189s from zmq.utils.interop import cast_int_addr 189s File "", line 1360, in _find_and_load 189s File "", line 1331, in _find_and_load_unlocked 189s File "", line 935, in _load_unlocked 189s File "", line 1019, in exec_module 189s File "", line 1115, in get_code 189s File "", line 1214, in get_data 189s KeyboardInterrupt 189s __________ ERROR at teardown of SessionAPITest.test_modify_kernel_id ___________ 189s 189s @self.addCleanup 189s def cleanup_sessions(): 189s for session in self.sess_api.list().json(): 189s > self.sess_api.delete(session['id']) 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3d7e7553-1b9e-47e9-9ee5-1462fd97b17d 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s Traceback (most recent call last): 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 189s from ipykernel import kernelapp as app 189s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 189s from .connect import * # noqa: F403 189s ^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 189s import jupyter_client 189s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 189s from .asynchronous import AsyncKernelClient 189s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 189s from .client import AsyncKernelClient # noqa 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 189s import zmq.asyncio 189s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 189s from zmq import backend 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnfu5e6vs/runtime/kernel-79d82a5d-430f-4f91-a355-e70a17ecbe8d.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42803 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46695 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 79d82a5d-430f-4f91-a355-e70a17ecbe8d, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpnfu5e6vs/notebooks/foo'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.880000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnfu5e6vs/runtime/kernel-88683a38-3ad8-49e6-a21d-b4913cd7a026.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52879 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58343 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 88683a38-3ad8-49e6-a21d-b4913cd7a026, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 24.840000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 79d82a5d-430f-4f91-a355-e70a17ecbe8d 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 79d82a5d-430f-4f91-a355-e70a17ecbe8d 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/3d7e7553-1b9e-47e9-9ee5-1462fd97b17d (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/3d7e7553-1b9e-47e9-9ee5-1462fd97b17d', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 189s yielded = self.gen.send(value) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 154, in patch 189s km.shutdown_kernel(before['kernel']['id']) 189s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 189s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 189s stopper = ensure_async(km.shutdown_kernel(now, restart)) 189s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/3d7e7553-1b9e-47e9-9ee5-1462fd97b17d (::1) 7.220000ms referer=None 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.640000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 88683a38-3ad8-49e6-a21d-b4913cd7a026 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 88683a38-3ad8-49e6-a21d-b4913cd7a026 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3d7e7553-1b9e-47e9-9ee5-1462fd97b17d (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3d7e7553-1b9e-47e9-9ee5-1462fd97b17d', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 189s yielded = self.gen.send(value) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 189s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 189s stopper = ensure_async(km.shutdown_kernel(now, restart)) 189s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/3d7e7553-1b9e-47e9-9ee5-1462fd97b17d (::1) 11.800000ms referer=None 189s --------------------------- Captured stderr teardown --------------------------- 189s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 189s return _bootstrap._gcd_import(name[level:], package, level) 189s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 189s from . import _zmq 189s File "_zmq.py", line 156, in init zmq.backend.cython._zmq 189s File "/usr/lib/python3/dist-packages/zmq/constants.py", line 134, in 189s class SocketOption(IntEnum): 189s ...<138 lines>... 189s NORM_PUSH = 124 189s File "/usr/lib/python3.13/enum.py", line 568, in __new__ 189s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 189s File "/usr/lib/python3.13/enum.py", line 256, in __set_name__ 189s delattr(enum_class, member_name) 189s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 189s KeyboardInterrupt 189s Error calling __set_name__ on '_proto_member' instance 'RCVMORE' in 'SocketOption' 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 189s from ipykernel import kernelapp as app 189s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 189s from .connect import * # noqa: F403 189s ^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 189s from typing import TYPE_CHECKING, Any 189s File "/usr/lib/python3.13/typing.py", line 32, in 189s from _typing import ( 189s ...<9 lines>... 189s ) 189s KeyboardInterrupt 189s _________ ERROR at teardown of SessionAPITest.test_modify_kernel_name __________ 189s 189s @self.addCleanup 189s def cleanup_sessions(): 189s for session in self.sess_api.list().json(): 189s > self.sess_api.delete(session['id']) 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3d7e7553-1b9e-47e9-9ee5-1462fd97b17d 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.770000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnfu5e6vs/runtime/kernel-07763013-08a5-42ff-9247-4209401cf349.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50593 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38663 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 07763013-08a5-42ff-9247-4209401cf349, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpnfu5e6vs/notebooks/foo'} 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 88683a38-3ad8-49e6-a21d-b4913cd7a026 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 88683a38-3ad8-49e6-a21d-b4913cd7a026 189s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/3d7e7553-1b9e-47e9-9ee5-1462fd97b17d (::1) 16.030000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.390000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.520000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 07763013-08a5-42ff-9247-4209401cf349 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 07763013-08a5-42ff-9247-4209401cf349 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3d7e7553-1b9e-47e9-9ee5-1462fd97b17d (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3d7e7553-1b9e-47e9-9ee5-1462fd97b17d', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 189s yielded = self.gen.send(value) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 189s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 189s stopper = ensure_async(km.shutdown_kernel(now, restart)) 189s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s --------------------------- Captured stderr teardown --------------------------- 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 189s from pathlib import Path 189s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 189s from ._abc import * 189s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 189s from glob import _Globber, _no_recurse_symlinks 189s File "/usr/lib/python3.13/glob.py", line 5, in 189s import re 189s File "/usr/lib/python3.13/re/__init__.py", line 126, in 189s from . import _compiler, _parser 189s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 189s from . import _parser 189s File "/usr/lib/python3.13/re/_parser.py", line 15, in 189s from ._constants import * 189s File "/usr/lib/python3.13/re/_constants.py", line 130, in 189s ATCODES = _makecodes( 189s 'AT_BEGINNING', 'AT_BEGINNING_LINE', 'AT_BEGINNING_STRING', 189s ...<5 lines>... 189s 'AT_UNI_BOUNDARY', 'AT_UNI_NON_BOUNDARY', 189s ) 189s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 189s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 189s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 189s KeyboardInterrupt 189s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 189s 189s @self.addCleanup 189s def cleanup_sessions(): 189s for session in self.sess_api.list().json(): 189s > self.sess_api.delete(session['id']) 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/267c9fe1-9f5f-4db6-85f8-adc2d4ac9240 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjobhbgdx/runtime/kernel-6690c627-9f81-4ec6-ab18-902794e4c033.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55779 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47239 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6690c627-9f81-4ec6-ab18-902794e4c033, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.240000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.910000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.660000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.660000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f5c4a2db-f5de-4327-aceb-e7694ab86142 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f5c4a2db-f5de-4327-aceb-e7694ab86142 189s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/bf9da827-54ac-47e3-9166-64b17f9a8255 (::1) 1.960000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6690c627-9f81-4ec6-ab18-902794e4c033 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6690c627-9f81-4ec6-ab18-902794e4c033 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/267c9fe1-9f5f-4db6-85f8-adc2d4ac9240 (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/267c9fe1-9f5f-4db6-85f8-adc2d4ac9240', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 189s future.result() 189s ~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 189s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 189s raise km.ready.exception() # type: ignore[misc] 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/267c9fe1-9f5f-4db6-85f8-adc2d4ac9240 (::1) 7.250000ms referer=None 189s --------------------------- Captured stderr teardown --------------------------- 189s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 189s from ._local import * 189s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 189s class PureWindowsPath(PurePath): 189s ...<7 lines>... 189s __slots__ = () 189s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 189s import ntpath 189s File "", line 1360, in _find_and_load 189s File "", line 1322, in _find_and_load_unlocked 189s File "", line 1262, in _find_spec 189s File "", line 1556, in find_spec 189s File "", line 1530, in _get_spec 189s File "", line 1629, in find_spec 189s File "", line 152, in _path_stat 189s KeyboardInterrupt 189s ________ ERROR at teardown of AsyncSessionAPITest.test_modify_kernel_id ________ 189s 189s @self.addCleanup 189s def cleanup_sessions(): 189s for session in self.sess_api.list().json(): 189s > self.sess_api.delete(session['id']) 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/67152983-a114-4711-b079-8911479ed222 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 189s from ipykernel import kernelapp as app 189s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 189s from .connect import * # noqa: F403 189s ^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 189s import jupyter_client 189s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 189s from .asynchronous import AsyncKernelClient 189s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 189s from .client import AsyncKernelClient # noqa 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 189s import zmq.asyncio 189s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 189s from zmq import backend 189s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 189s _ns = select_backend(first) 189s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 189s mod = import_module(name) 189s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 189s return _bootstrap._gcd_import(name[level:], package, level) 189s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 189s from . import _zmq 189s File "", line 645, in parent 189s KeyboardInterrupt 189s Traceback (most recent call last): 189s File "", line 1513, in _path_importer_cache 189s KeyError: '/usr/lib/python3.13/json' 189s 189s During handling of the above exception, another exception occurred: 189s 189s Traceback (most recent call last): 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjobhbgdx/runtime/kernel-7311c549-f710-4460-ac9a-9355468f17b1.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38537 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51369 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7311c549-f710-4460-ac9a-9355468f17b1, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpjobhbgdx/notebooks/foo'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.380000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjobhbgdx/runtime/kernel-9436ccad-5972-412f-9406-859beeeddcaa.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34875 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58047 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9436ccad-5972-412f-9406-859beeeddcaa, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.930000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7311c549-f710-4460-ac9a-9355468f17b1 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7311c549-f710-4460-ac9a-9355468f17b1 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/67152983-a114-4711-b079-8911479ed222 (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/67152983-a114-4711-b079-8911479ed222', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 189s future.result() 189s ~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 153, in patch 189s yield maybe_future( 189s km.shutdown_kernel(before['kernel']['id']) 189s ) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 189s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 189s raise km.ready.exception() # type: ignore[misc] 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/67152983-a114-4711-b079-8911479ed222 (::1) 16.440000ms referer=None 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.620000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9436ccad-5972-412f-9406-859beeeddcaa 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9436ccad-5972-412f-9406-859beeeddcaa 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/67152983-a114-4711-b079-8911479ed222 (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/67152983-a114-4711-b079-8911479ed222', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 189s future.result() 189s ~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 189s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 189s raise km.ready.exception() # type: ignore[misc] 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s --------------------------- Captured stderr teardown --------------------------- 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 189s from ipykernel import kernelapp as app 189s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 189s from .connect import * # noqa: F403 189s ^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 189s import json 189s File "/usr/lib/python3.13/json/__init__.py", line 106, in 189s from .decoder import JSONDecoder, JSONDecodeError 189s File "", line 1360, in _find_and_load 189s File "", line 1322, in _find_and_load_unlocked 189s File "", line 1262, in _find_spec 189s File "", line 1556, in find_spec 189s File "", line 1528, in _get_spec 189s File "", line 1515, in _path_importer_cache 189s File "", line 1491, in _path_hooks 189s File "", line 1717, in path_hook_for_FileFinder 189s File "", line 1601, in __init__ 189s File "", line 1601, in 189s KeyboardInterrupt 189s _______ ERROR at teardown of AsyncSessionAPITest.test_modify_kernel_name _______ 189s 189s @self.addCleanup 189s def cleanup_sessions(): 189s for session in self.sess_api.list().json(): 189s > self.sess_api.delete(session['id']) 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/67152983-a114-4711-b079-8911479ed222 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.790000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjobhbgdx/runtime/kernel-c995a5ef-0065-4b63-8cda-b90c159e3c17.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37681 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54551 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: c995a5ef-0065-4b63-8cda-b90c159e3c17, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpjobhbgdx/notebooks/foo'} 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9436ccad-5972-412f-9406-859beeeddcaa 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9436ccad-5972-412f-9406-859beeeddcaa 189s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/67152983-a114-4711-b079-8911479ed222 (::1) 17.340000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.560000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.530000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c995a5ef-0065-4b63-8cda-b90c159e3c17 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c995a5ef-0065-4b63-8cda-b90c159e3c17 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/67152983-a114-4711-b079-8911479ed222 (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/67152983-a114-4711-b079-8911479ed222', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 189s future.result() 189s ~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 189s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 189s raise km.ready.exception() # type: ignore[misc] 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s --------------------------- Captured stderr teardown --------------------------- 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 189s from pathlib import Path 189s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 189s from ._abc import * 189s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 189s from glob import _Globber, _no_recurse_symlinks 189s File "/usr/lib/python3.13/glob.py", line 5, in 189s import re 189s File "/usr/lib/python3.13/re/__init__.py", line 126, in 189s from . import _compiler, _parser 189s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 189s from . import _parser 189s File "/usr/lib/python3.13/re/_parser.py", line 15, in 189s from ._constants import * 189s File "/usr/lib/python3.13/re/_constants.py", line 130, in 189s ATCODES = _makecodes( 189s 'AT_BEGINNING', 'AT_BEGINNING_LINE', 'AT_BEGINNING_STRING', 189s ...<5 lines>... 189s 'AT_UNI_BOUNDARY', 'AT_UNI_NON_BOUNDARY', 189s ) 189s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 189s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 189s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 189s KeyboardInterrupt 189s =================================== FAILURES =================================== 189s ______________________ KernelAPITest.test_default_kernel _______________________ 189s 189s self = 189s 189s def tearDown(self): 189s for k in self.kern_api.list().json(): 189s > self.kern_api.shutdown(k['id']) 189s 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/fcd2c932-a3be-4961-843c-349c45d8f96f 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ------------------------------ Captured log setup ------------------------------ 189s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmppnq2g8qh/config', '/tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmppnq2g8qh/etc/jupyter'] for config files 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmppnq2g8qh/etc/jupyter 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmppnq2g8qh/config 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmppnq2g8qh/etc/jupyter 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmppnq2g8qh/config 189s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmppnq2g8qh/notebooks 189s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 189s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 189s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 189s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 189s WARNING NotebookApp:handlers.py:612 Forbidden 189s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.420000ms referer=None 189s ----------------------------- Captured stderr call ----------------------------- 189s Fatal Python error: init_import_site: Failed to import the site module 189s Python runtime state: initialized 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppnq2g8qh/runtime/kernel-fcd2c932-a3be-4961-843c-349c45d8f96f.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47287 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38797 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: fcd2c932-a3be-4961-843c-349c45d8f96f, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 63.430000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.530000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fcd2c932-a3be-4961-843c-349c45d8f96f 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fcd2c932-a3be-4961-843c-349c45d8f96f 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/fcd2c932-a3be-4961-843c-349c45d8f96f (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/fcd2c932-a3be-4961-843c-349c45d8f96f', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 189s yielded = ctx_run(next, result) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 189s yield maybe_future(km.shutdown_kernel(kernel_id)) 189s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 189s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 189s stopper = ensure_async(km.shutdown_kernel(now, restart)) 189s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/fcd2c932-a3be-4961-843c-349c45d8f96f (::1) 8.290000ms referer=None 189s --------------------------- Captured stderr teardown --------------------------- 189s Traceback (most recent call last): 189s File "/usr/lib/python3.13/os.py", line 46, in _get_exports_list 189s return list(module.__all__) 189s ^^^^^^^^^^^^^^ 189s AttributeError: module 'posix' has no attribute '__all__'. Did you mean: '__name__'? 189s 189s During handling of the above exception, another exception occurred: 189s 189s Traceback (most recent call last): 189s File "/usr/lib/python3.13/site.py", line 79, in 189s import os 189s File "/usr/lib/python3.13/os.py", line 69, in 189s __all__.extend(_get_exports_list(posix)) 189s ~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3.13/os.py", line 48, in _get_exports_list 189s return [n for n in dir(module) if n[0] != '_'] 189s ~~~^^^^^^^^ 189s KeyboardInterrupt 189s ______________________ KernelAPITest.test_kernel_handler _______________________ 189s 189s self = 189s 189s def test_kernel_handler(self): 189s # GET kernel with given id 189s kid = self.kern_api.start().json()['id'] 189s r = self.kern_api.get(kid) 189s kern1 = r.json() 189s self.assertEqual(r.status_code, 200) 189s assert isinstance(kern1, dict) 189s self.assertIn('id', kern1) 189s self.assertEqual(kern1['id'], kid) 189s 189s # Request a bad kernel id and check that a JSON 189s # message is returned! 189s bad_id = '111-111-111-111-111' 189s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 189s self.kern_api.get(bad_id) 189s 189s # DELETE kernel with id 189s > r = self.kern_api.shutdown(kid) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/600b8e58-5a2c-4f26-8d20-e097aef254f9 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppnq2g8qh/runtime/kernel-600b8e58-5a2c-4f26-8d20-e097aef254f9.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58393 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54855 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 600b8e58-5a2c-4f26-8d20-e097aef254f9, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.090000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/600b8e58-5a2c-4f26-8d20-e097aef254f9 (::1) 0.520000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s 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 189s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 189s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.600000ms referer=None 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 600b8e58-5a2c-4f26-8d20-e097aef254f9 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 600b8e58-5a2c-4f26-8d20-e097aef254f9 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/600b8e58-5a2c-4f26-8d20-e097aef254f9 (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/600b8e58-5a2c-4f26-8d20-e097aef254f9', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 189s yielded = ctx_run(next, result) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 189s yield maybe_future(km.shutdown_kernel(kernel_id)) 189s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 189s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 189s stopper = ensure_async(km.shutdown_kernel(now, restart)) 189s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/600b8e58-5a2c-4f26-8d20-e097aef254f9 (::1) 11.960000ms referer=None 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fcd2c932-a3be-4961-843c-349c45d8f96f 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fcd2c932-a3be-4961-843c-349c45d8f96f 189s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/fcd2c932-a3be-4961-843c-349c45d8f96f (::1) 0.730000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 600b8e58-5a2c-4f26-8d20-e097aef254f9 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 600b8e58-5a2c-4f26-8d20-e097aef254f9 189s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/600b8e58-5a2c-4f26-8d20-e097aef254f9 (::1) 0.720000ms 189s --------------------------- Captured stderr teardown --------------------------- 189s Traceback (most recent call last): 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 189s from pathlib import Path 189s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 189s from ._abc import * 189s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 189s from glob import _Globber, _no_recurse_symlinks 189s File "/usr/lib/python3.13/glob.py", line 5, in 189s import re 189s File "/usr/lib/python3.13/re/__init__.py", line 126, in 189s from . import _compiler, _parser 189s File "", line 1360, in _find_and_load 189s File "", line 1331, in _find_and_load_unlocked 189s File "", line 935, in _load_unlocked 189s File "", line 1019, in exec_module 189s File "", line 1152, in get_code 189s File "", line 781, in _compile_bytecode 189s KeyboardInterrupt 189s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 189s 189s self = 189s 189s def test_main_kernel_handler(self): 189s # POST request 189s r = self.kern_api.start() 189s kern1 = r.json() 189s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 189s self.assertEqual(r.status_code, 201) 189s self.assertIsInstance(kern1, dict) 189s 189s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 189s expected_csp = '; '.join([ 189s "frame-ancestors 'self'", 189s 'report-uri ' + report_uri, 189s "default-src 'none'" 189s ]) 189s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 189s 189s # GET request 189s r = self.kern_api.list() 189s self.assertEqual(r.status_code, 200) 189s assert isinstance(r.json(), list) 189s self.assertEqual(r.json()[0]['id'], kern1['id']) 189s self.assertEqual(r.json()[0]['name'], kern1['name']) 189s 189s # create another kernel and check that they both are added to the 189s # list of kernels from a GET request 189s kern2 = self.kern_api.start().json() 189s assert isinstance(kern2, dict) 189s r = self.kern_api.list() 189s kernels = r.json() 189s self.assertEqual(r.status_code, 200) 189s assert isinstance(kernels, list) 189s self.assertEqual(len(kernels), 2) 189s 189s # Interrupt a kernel 189s r = self.kern_api.interrupt(kern2['id']) 189s self.assertEqual(r.status_code, 204) 189s 189s # Restart a kernel 189s > r = self.kern_api.restart(kern2['id']) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 189s return self._req('POST', url_path_join(id, 'restart')) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/32d5a222-d6cc-4ce8-9643-ba62a89b08fd/restart 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 189s from pathlib import Path 189s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 189s from ._abc import * 189s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 189s from glob import _Globber, _no_recurse_symlinks 189s File "/usr/lib/python3.13/glob.py", line 5, in 189s import re 189s File "/usr/lib/python3.13/re/__init__.py", line 125, in 189s import enum 189s File "/usr/lib/python3.13/enum.py", line 339, in 189s class EnumDict(dict): 189s File "/usr/lib/python3.13/enum.py", line 238, in __set_name__ 189s def __set_name__(self, ownerclass, name): 189s KeyboardInterrupt 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppnq2g8qh/runtime/kernel-7d9588eb-639c-433c-ae69-21e801aff544.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46793 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37891 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7d9588eb-639c-433c-ae69-21e801aff544, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.110000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppnq2g8qh/runtime/kernel-32d5a222-d6cc-4ce8-9643-ba62a89b08fd.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56605 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54985 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 32d5a222-d6cc-4ce8-9643-ba62a89b08fd, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.290000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.530000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 32d5a222-d6cc-4ce8-9643-ba62a89b08fd 189s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/32d5a222-d6cc-4ce8-9643-ba62a89b08fd/interrupt (::1) 0.710000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 189s yield maybe_future(km.restart_kernel(kernel_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 189s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 189s await ensure_async(kernel.restart_kernel(now=now)) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 189s await self._async_shutdown_kernel(now=now, restart=True) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/32d5a222-d6cc-4ce8-9643-ba62a89b08fd/restart (::1) 9.880000ms referer=None 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.640000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7d9588eb-639c-433c-ae69-21e801aff544 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7d9588eb-639c-433c-ae69-21e801aff544 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/7d9588eb-639c-433c-ae69-21e801aff544 (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/7d9588eb-639c-433c-ae69-21e801aff544', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 189s yielded = ctx_run(next, result) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 189s yield maybe_future(km.shutdown_kernel(kernel_id)) 189s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 189s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 189s stopper = ensure_async(km.shutdown_kernel(now, restart)) 189s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/7d9588eb-639c-433c-ae69-21e801aff544 (::1) 6.980000ms referer=None 189s ________________________ KernelAPITest.test_no_kernels _________________________ 189s 189s self = 189s 189s def test_no_kernels(self): 189s """Make sure there are no kernels running at the start""" 189s kernels = self.kern_api.list().json() 189s > self.assertEqual(kernels, []) 189s E AssertionError: Lists differ: [{'id': '7d9588eb-639c-433c-ae69-21e801aff[281 chars]: 0}] != [] 189s E 189s E First list contains 2 additional elements. 189s E First extra element 0: 189s E {'id': '7d9588eb-639c-433c-ae69-21e801aff544', 'name': 'python3', 'last_activity': '2026-01-30T06:17:25.646872Z', 'execution_state': 'starting', 'connections': 0} 189s E 189s E + [] 189s E - [{'connections': 0, 189s E - 'execution_state': 'starting', 189s E - 'id': '7d9588eb-639c-433c-ae69-21e801aff544', 189s E - 'last_activity': '2026-01-30T06:17:25.646872Z', 189s E - 'name': 'python3'}, 189s E - {'connections': 0, 189s E - 'execution_state': 'starting', 189s E - 'id': '32d5a222-d6cc-4ce8-9643-ba62a89b08fd', 189s E - 'last_activity': '2026-01-30T06:17:25.677162Z', 189s E - 'name': 'python3'}] 189s 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.180000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7d9588eb-639c-433c-ae69-21e801aff544 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7d9588eb-639c-433c-ae69-21e801aff544 189s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/7d9588eb-639c-433c-ae69-21e801aff544 (::1) 0.660000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 32d5a222-d6cc-4ce8-9643-ba62a89b08fd 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 32d5a222-d6cc-4ce8-9643-ba62a89b08fd 189s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/32d5a222-d6cc-4ce8-9643-ba62a89b08fd (::1) 1.220000ms 189s ---------------------------- Captured log teardown ----------------------------- 189s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 189s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 189s _____________________ AsyncKernelAPITest.test_connections ______________________ 189s 189s self = 189s 189s def tearDown(self): 189s for k in self.kern_api.list().json(): 189s > self.kern_api.shutdown(k['id']) 189s 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/753d0362-9279-4a44-919e-4afcdbd45c8b 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ------------------------------ Captured log setup ------------------------------ 189s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp059_81yy/config', '/tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp059_81yy/etc/jupyter'] for config files 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp059_81yy/etc/jupyter 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp059_81yy/config 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp059_81yy/etc/jupyter 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp059_81yy/config 189s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp059_81yy/notebooks 189s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 189s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 189s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 189s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 189s WARNING NotebookApp:handlers.py:612 Forbidden 189s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.420000ms referer=None 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp059_81yy/runtime/kernel-753d0362-9279-4a44-919e-4afcdbd45c8b.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58425 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45465 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 753d0362-9279-4a44-919e-4afcdbd45c8b, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.260000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/753d0362-9279-4a44-919e-4afcdbd45c8b (::1) 0.550000ms 189s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/753d0362-9279-4a44-919e-4afcdbd45c8b/channels 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 189s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 753d0362-9279-4a44-919e-4afcdbd45c8b 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35725 189s DEBUG NotebookApp:kernelmanager.py:423 activity on 753d0362-9279-4a44-919e-4afcdbd45c8b: status (starting) 189s DEBUG NotebookApp:kernelmanager.py:423 activity on 753d0362-9279-4a44-919e-4afcdbd45c8b: status (busy) 189s DEBUG NotebookApp:kernelmanager.py:423 activity on 753d0362-9279-4a44-919e-4afcdbd45c8b: status (idle) 189s 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/'}]} 189s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 753d0362-9279-4a44-919e-4afcdbd45c8b) to 5.4 (client). 189s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/753d0362-9279-4a44-919e-4afcdbd45c8b/channels (::1) 538.280000ms 189s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/753d0362-9279-4a44-919e-4afcdbd45c8b/channels 189s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 753d0362-9279-4a44-919e-4afcdbd45c8b 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45465 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35725 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58425 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46091 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35725 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58425 189s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 189s Setting websocket_ping_timeout=30000 189s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 753d0362-9279-4a44-919e-4afcdbd45c8b 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/753d0362-9279-4a44-919e-4afcdbd45c8b (::1) 2.310000ms 189s DEBUG NotebookApp:kernelmanager.py:423 activity on 753d0362-9279-4a44-919e-4afcdbd45c8b: status (busy) 189s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 753d0362-9279-4a44-919e-4afcdbd45c8b 189s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 753d0362-9279-4a44-919e-4afcdbd45c8b 189s DEBUG NotebookApp:kernelmanager.py:423 activity on 753d0362-9279-4a44-919e-4afcdbd45c8b: status (busy) 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/753d0362-9279-4a44-919e-4afcdbd45c8b (::1) 0.480000ms 189s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 753d0362-9279-4a44-919e-4afcdbd45c8b 189s DEBUG NotebookApp:handlers.py:203 Nudge: resolving control future: 753d0362-9279-4a44-919e-4afcdbd45c8b 189s DEBUG NotebookApp:kernelmanager.py:423 activity on 753d0362-9279-4a44-919e-4afcdbd45c8b: status (idle) 189s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: 753d0362-9279-4a44-919e-4afcdbd45c8b 189s DEBUG NotebookApp:kernelmanager.py:423 activity on 753d0362-9279-4a44-919e-4afcdbd45c8b: status (idle) 189s DEBUG NotebookApp:handlers.py:579 Websocket closed 753d0362-9279-4a44-919e-4afcdbd45c8b:5bb75da6-fed8719119f9016780d6eeac 189s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 753d0362-9279-4a44-919e-4afcdbd45c8b:5bb75da6-fed8719119f9016780d6eeac 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 753d0362-9279-4a44-919e-4afcdbd45c8b 189s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 753d0362-9279-4a44-919e-4afcdbd45c8b:iopub 189s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 753d0362-9279-4a44-919e-4afcdbd45c8b:iopub 189s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 753d0362-9279-4a44-919e-4afcdbd45c8b:iopub 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/753d0362-9279-4a44-919e-4afcdbd45c8b (::1) 0.500000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/753d0362-9279-4a44-919e-4afcdbd45c8b (::1) 0.490000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 753d0362-9279-4a44-919e-4afcdbd45c8b 189s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for 753d0362-9279-4a44-919e-4afcdbd45c8b:5bb75da6-fed8719119f9016780d6eeac 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 753d0362-9279-4a44-919e-4afcdbd45c8b 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/753d0362-9279-4a44-919e-4afcdbd45c8b (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/753d0362-9279-4a44-919e-4afcdbd45c8b', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 189s future.result() 189s ~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 189s yield maybe_future(km.shutdown_kernel(kernel_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 189s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 189s raise km.ready.exception() # type: ignore[misc] 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/753d0362-9279-4a44-919e-4afcdbd45c8b (::1) 6.760000ms referer=None 189s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 189s 189s self = 189s 189s def tearDown(self): 189s for k in self.kern_api.list().json(): 189s > self.kern_api.shutdown(k['id']) 189s 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/cf75e9ab-13aa-47c2-a169-ff3e1e951dc5 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 189s from ipykernel import kernelapp as app 189s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 189s from .connect import * # noqa: F403 189s ^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 5, in 189s from __future__ import annotations 189s File "", line 1360, in _find_and_load 189s File "", line 1322, in _find_and_load_unlocked 189s File "", line 1256, in _find_spec 189s File "", line 1222, in __enter__ 189s KeyboardInterrupt 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp059_81yy/runtime/kernel-cf75e9ab-13aa-47c2-a169-ff3e1e951dc5.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39949 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57429 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: cf75e9ab-13aa-47c2-a169-ff3e1e951dc5, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.640000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.590000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 753d0362-9279-4a44-919e-4afcdbd45c8b 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 753d0362-9279-4a44-919e-4afcdbd45c8b 189s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/753d0362-9279-4a44-919e-4afcdbd45c8b (::1) 0.710000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cf75e9ab-13aa-47c2-a169-ff3e1e951dc5 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cf75e9ab-13aa-47c2-a169-ff3e1e951dc5 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/cf75e9ab-13aa-47c2-a169-ff3e1e951dc5 (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/cf75e9ab-13aa-47c2-a169-ff3e1e951dc5', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 189s future.result() 189s ~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 189s yield maybe_future(km.shutdown_kernel(kernel_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 189s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 189s raise km.ready.exception() # type: ignore[misc] 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/cf75e9ab-13aa-47c2-a169-ff3e1e951dc5 (::1) 10.600000ms referer=None 189s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 189s 189s self = 189s 189s def test_kernel_handler(self): 189s # GET kernel with given id 189s kid = self.kern_api.start().json()['id'] 189s r = self.kern_api.get(kid) 189s kern1 = r.json() 189s self.assertEqual(r.status_code, 200) 189s assert isinstance(kern1, dict) 189s self.assertIn('id', kern1) 189s self.assertEqual(kern1['id'], kid) 189s 189s # Request a bad kernel id and check that a JSON 189s # message is returned! 189s bad_id = '111-111-111-111-111' 189s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 189s self.kern_api.get(bad_id) 189s 189s # DELETE kernel with id 189s > r = self.kern_api.shutdown(kid) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/4fb56ae0-0e6f-4861-a8bd-e9901f5ca5f4 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 189s from pathlib import Path 189s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 189s from ._abc import * 189s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 189s from glob import _Globber, _no_recurse_symlinks 189s File "/usr/lib/python3.13/glob.py", line 5, in 189s import re 189s File "/usr/lib/python3.13/re/__init__.py", line 126, in 189s from . import _compiler, _parser 189s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 189s from . import _parser 189s KeyboardInterrupt 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp059_81yy/runtime/kernel-4fb56ae0-0e6f-4861-a8bd-e9901f5ca5f4.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38451 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38235 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4fb56ae0-0e6f-4861-a8bd-e9901f5ca5f4, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.920000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/4fb56ae0-0e6f-4861-a8bd-e9901f5ca5f4 (::1) 0.560000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s 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 189s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 189s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.620000ms referer=None 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4fb56ae0-0e6f-4861-a8bd-e9901f5ca5f4 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4fb56ae0-0e6f-4861-a8bd-e9901f5ca5f4 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/4fb56ae0-0e6f-4861-a8bd-e9901f5ca5f4 (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/4fb56ae0-0e6f-4861-a8bd-e9901f5ca5f4', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 189s future.result() 189s ~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 189s yield maybe_future(km.shutdown_kernel(kernel_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 189s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 189s raise km.ready.exception() # type: ignore[misc] 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/4fb56ae0-0e6f-4861-a8bd-e9901f5ca5f4 (::1) 7.560000ms referer=None 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.520000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cf75e9ab-13aa-47c2-a169-ff3e1e951dc5 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cf75e9ab-13aa-47c2-a169-ff3e1e951dc5 189s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/cf75e9ab-13aa-47c2-a169-ff3e1e951dc5 (::1) 0.620000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4fb56ae0-0e6f-4861-a8bd-e9901f5ca5f4 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4fb56ae0-0e6f-4861-a8bd-e9901f5ca5f4 189s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/4fb56ae0-0e6f-4861-a8bd-e9901f5ca5f4 (::1) 0.610000ms 189s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 189s 189s self = 189s 189s def test_main_kernel_handler(self): 189s # POST request 189s r = self.kern_api.start() 189s kern1 = r.json() 189s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 189s self.assertEqual(r.status_code, 201) 189s self.assertIsInstance(kern1, dict) 189s 189s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 189s expected_csp = '; '.join([ 189s "frame-ancestors 'self'", 189s 'report-uri ' + report_uri, 189s "default-src 'none'" 189s ]) 189s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 189s 189s # GET request 189s r = self.kern_api.list() 189s self.assertEqual(r.status_code, 200) 189s assert isinstance(r.json(), list) 189s self.assertEqual(r.json()[0]['id'], kern1['id']) 189s self.assertEqual(r.json()[0]['name'], kern1['name']) 189s 189s # create another kernel and check that they both are added to the 189s # list of kernels from a GET request 189s kern2 = self.kern_api.start().json() 189s assert isinstance(kern2, dict) 189s r = self.kern_api.list() 189s kernels = r.json() 189s self.assertEqual(r.status_code, 200) 189s assert isinstance(kernels, list) 189s self.assertEqual(len(kernels), 2) 189s 189s # Interrupt a kernel 189s r = self.kern_api.interrupt(kern2['id']) 189s self.assertEqual(r.status_code, 204) 189s 189s # Restart a kernel 189s > r = self.kern_api.restart(kern2['id']) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 189s return self._req('POST', url_path_join(id, 'restart')) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/fe139ee1-22ba-4aa3-8927-8c986095c144/restart 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 189s from pathlib import Path 189s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 189s from ._local import * 189s File "", line 1360, in _find_and_load 189s File "", line 1331, in _find_and_load_unlocked 189s File "", line 935, in _load_unlocked 189s File "", line 1019, in exec_module 189s File "", line 1152, in get_code 189s File "", line 781, in _compile_bytecode 189s KeyboardInterrupt 189s Traceback (most recent call last): 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 189s from ipykernel import kernelapp as app 189s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 189s from .connect import * # noqa: F403 189s ^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 189s import jupyter_client 189s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 189s from .asynchronous import AsyncKernelClient 189s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 189s from .client import AsyncKernelClient # noqa 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 189s import zmq.asyncio 189s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 189s import asyncio 189s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 189s from .base_events import * 189s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 189s import ssl 189s File "/usr/lib/python3.13/ssl.py", line 100, in 189s import _ssl # if we can't import it, let the error propagate 189s ^^^^^^^^^^^ 189s KeyboardInterrupt 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp059_81yy/runtime/kernel-4685c355-c0f4-48b0-ba96-9d5fb7d04019.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39361 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33489 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4685c355-c0f4-48b0-ba96-9d5fb7d04019, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.200000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp059_81yy/runtime/kernel-fe139ee1-22ba-4aa3-8927-8c986095c144.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57891 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46915 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: fe139ee1-22ba-4aa3-8927-8c986095c144, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.900000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.570000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: fe139ee1-22ba-4aa3-8927-8c986095c144 189s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/fe139ee1-22ba-4aa3-8927-8c986095c144/interrupt (::1) 0.600000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 189s yield maybe_future(km.restart_kernel(kernel_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 189s result = coro.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 189s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 189s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 189s yield self # This tells Task to wait for completion. 189s ^^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 189s future.result() 189s ~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 189s await ensure_async(kernel.restart_kernel(now=now)) 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 189s await self._async_shutdown_kernel(now=now, restart=True) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/fe139ee1-22ba-4aa3-8927-8c986095c144/restart (::1) 6.560000ms referer=None 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4685c355-c0f4-48b0-ba96-9d5fb7d04019 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4685c355-c0f4-48b0-ba96-9d5fb7d04019 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/4685c355-c0f4-48b0-ba96-9d5fb7d04019 (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/4685c355-c0f4-48b0-ba96-9d5fb7d04019', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 189s future.result() 189s ~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 189s yield maybe_future(km.shutdown_kernel(kernel_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 189s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 189s raise km.ready.exception() # type: ignore[misc] 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/4685c355-c0f4-48b0-ba96-9d5fb7d04019 (::1) 6.100000ms referer=None 189s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 189s 189s self = 189s 189s def test_no_kernels(self): 189s """Make sure there are no kernels running at the start""" 189s kernels = self.kern_api.list().json() 189s > self.assertEqual(kernels, []) 189s E AssertionError: Lists differ: [{'id': '4685c355-c0f4-48b0-ba96-9d5fb7d04[281 chars]: 0}] != [] 189s E 189s E First list contains 2 additional elements. 189s E First extra element 0: 189s E {'id': '4685c355-c0f4-48b0-ba96-9d5fb7d04019', 'name': 'python3', 'last_activity': '2026-01-30T06:17:26.700866Z', 'execution_state': 'starting', 'connections': 0} 189s E 189s E + [] 189s E - [{'connections': 0, 189s E - 'execution_state': 'starting', 189s E - 'id': '4685c355-c0f4-48b0-ba96-9d5fb7d04019', 189s E - 'last_activity': '2026-01-30T06:17:26.700866Z', 189s E - 'name': 'python3'}, 189s E - {'connections': 0, 189s E - 'execution_state': 'starting', 189s E - 'id': 'fe139ee1-22ba-4aa3-8927-8c986095c144', 189s E - 'last_activity': '2026-01-30T06:17:26.724096Z', 189s E - 'name': 'python3'}] 189s 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.610000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4685c355-c0f4-48b0-ba96-9d5fb7d04019 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4685c355-c0f4-48b0-ba96-9d5fb7d04019 189s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/4685c355-c0f4-48b0-ba96-9d5fb7d04019 (::1) 0.610000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fe139ee1-22ba-4aa3-8927-8c986095c144 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fe139ee1-22ba-4aa3-8927-8c986095c144 189s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/fe139ee1-22ba-4aa3-8927-8c986095c144 (::1) 0.620000ms 189s ---------------------------- Captured log teardown ----------------------------- 189s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4fb56ae0-0e6f-4861-a8bd-e9901f5ca5f4 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cf75e9ab-13aa-47c2-a169-ff3e1e951dc5 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 753d0362-9279-4a44-919e-4afcdbd45c8b 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4685c355-c0f4-48b0-ba96-9d5fb7d04019 189s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 189s __________________________ SessionAPITest.test_create __________________________ 189s 189s @self.addCleanup 189s def cleanup_sessions(): 189s for session in self.sess_api.list().json(): 189s > self.sess_api.delete(session['id']) 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3fb15b26-8d1d-46c4-b394-1d8d9755d930 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ------------------------------ Captured log setup ------------------------------ 189s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpnfu5e6vs/config', '/tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpnfu5e6vs/etc/jupyter'] for config files 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpnfu5e6vs/etc/jupyter 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpnfu5e6vs/config 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpnfu5e6vs/etc/jupyter 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpnfu5e6vs/config 189s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpnfu5e6vs/notebooks 189s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 189s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 189s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 189s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 189s WARNING NotebookApp:handlers.py:612 Forbidden 189s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.440000ms referer=None 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.740000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnfu5e6vs/runtime/kernel-ce279480-4472-4ab1-b450-82554395c0a6.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51877 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37587 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: ce279480-4472-4ab1-b450-82554395c0a6, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpnfu5e6vs/notebooks/foo'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.430000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.580000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/3fb15b26-8d1d-46c4-b394-1d8d9755d930 (::1) 0.580000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.540000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ce279480-4472-4ab1-b450-82554395c0a6 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ce279480-4472-4ab1-b450-82554395c0a6 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3fb15b26-8d1d-46c4-b394-1d8d9755d930 (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3fb15b26-8d1d-46c4-b394-1d8d9755d930', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 189s yielded = self.gen.send(value) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 189s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 189s stopper = ensure_async(km.shutdown_kernel(now, restart)) 189s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/3fb15b26-8d1d-46c4-b394-1d8d9755d930 (::1) 10.840000ms referer=None 189s --------------------------- Captured stderr teardown --------------------------- 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 189s from ipykernel import kernelapp as app 189s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 189s from .connect import * # noqa: F403 189s ^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 189s import json 189s File "/usr/lib/python3.13/json/__init__.py", line 106, in 189s from .decoder import JSONDecoder, JSONDecodeError 189s File "/usr/lib/python3.13/json/decoder.py", line 5, in 189s from json import scanner 189s File "", line 471, in _lock_unlock_module 189s File "", line 311, in acquire 189s File "", line 170, in __enter__ 189s File "", line 132, in setdefault 189s File "", line 74, in __new__ 189s KeyboardInterrupt 189s __________________ SessionAPITest.test_create_console_session __________________ 189s 189s @self.addCleanup 189s def cleanup_sessions(): 189s for session in self.sess_api.list().json(): 189s > self.sess_api.delete(session['id']) 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c94c3b72-00e3-4e8c-92bf-d4951f414e2c 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnfu5e6vs/runtime/kernel-32c7c540-9ba9-4ff0-bf2a-955b09824084.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52035 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54431 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 32c7c540-9ba9-4ff0-bf2a-955b09824084, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpnfu5e6vs/notebooks/foo'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.640000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.880000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ce279480-4472-4ab1-b450-82554395c0a6 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ce279480-4472-4ab1-b450-82554395c0a6 189s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/3fb15b26-8d1d-46c4-b394-1d8d9755d930 (::1) 0.810000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 32c7c540-9ba9-4ff0-bf2a-955b09824084 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 32c7c540-9ba9-4ff0-bf2a-955b09824084 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c94c3b72-00e3-4e8c-92bf-d4951f414e2c (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c94c3b72-00e3-4e8c-92bf-d4951f414e2c', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 189s yielded = self.gen.send(value) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 189s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 189s stopper = ensure_async(km.shutdown_kernel(now, restart)) 189s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s --------------------------- Captured stderr teardown --------------------------- 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 189s from pathlib import Path 189s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 189s from ._abc import * 189s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 189s from glob import _Globber, _no_recurse_symlinks 189s File "/usr/lib/python3.13/glob.py", line 5, in 189s import re 189s File "/usr/lib/python3.13/re/__init__.py", line 316, in 189s Match = type(_compiler.compile('', 0).match('')) 189s ~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 189s p = _parser.parse(p, flags) 189s File "/usr/lib/python3.13/re/_parser.py", line 981, in parse 189s p.state.flags = fix_flags(str, p.state.flags) 189s ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3.13/re/_parser.py", line 954, in fix_flags 189s def fix_flags(src, flags): 189s 189s KeyboardInterrupt 189s ____________________ SessionAPITest.test_create_deprecated _____________________ 189s 189s @self.addCleanup 189s def cleanup_sessions(): 189s for session in self.sess_api.list().json(): 189s > self.sess_api.delete(session['id']) 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ab876f49-dcc5-4363-8005-899e6afdfaa4 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnfu5e6vs/runtime/kernel-7e4fb987-437d-4546-baa2-ba39dc66f7eb.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59803 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60753 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7e4fb987-437d-4546-baa2-ba39dc66f7eb, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpnfu5e6vs/notebooks/foo'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.550000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.150000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 32c7c540-9ba9-4ff0-bf2a-955b09824084 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 32c7c540-9ba9-4ff0-bf2a-955b09824084 189s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c94c3b72-00e3-4e8c-92bf-d4951f414e2c (::1) 0.780000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7e4fb987-437d-4546-baa2-ba39dc66f7eb 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7e4fb987-437d-4546-baa2-ba39dc66f7eb 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ab876f49-dcc5-4363-8005-899e6afdfaa4 (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ab876f49-dcc5-4363-8005-899e6afdfaa4', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 189s yielded = self.gen.send(value) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 189s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 189s stopper = ensure_async(km.shutdown_kernel(now, restart)) 189s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/ab876f49-dcc5-4363-8005-899e6afdfaa4 (::1) 8.170000ms referer=None 189s --------------------------- Captured stderr teardown --------------------------- 189s Traceback (most recent call last): 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 189s from pathlib import Path 189s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 189s from ._abc import * 189s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 189s from glob import _Globber, _no_recurse_symlinks 189s File "/usr/lib/python3.13/glob.py", line 5, in 189s import re 189s File "/usr/lib/python3.13/re/__init__.py", line 126, in 189s from . import _compiler, _parser 189s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 189s from . import _parser 189s File "/usr/lib/python3.13/re/_parser.py", line 15, in 189s from ._constants import * 189s File "/usr/lib/python3.13/re/_constants.py", line 78, in 189s OPCODES = _makecodes( 189s # failure=0 success=1 (just because it looks better that way :-) 189s ...<45 lines>... 189s 'MIN_REPEAT', 'MAX_REPEAT', 189s ) 189s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 189s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 189s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.13/re/_constants.py", line 61, in __new__ 189s self = super(_NamedIntConstant, cls).__new__(cls, value) 189s KeyboardInterrupt 189s ___________________ SessionAPITest.test_create_file_session ____________________ 189s 189s @self.addCleanup 189s def cleanup_sessions(): 189s for session in self.sess_api.list().json(): 189s > self.sess_api.delete(session['id']) 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/af61047d-f1a8-4d72-9c30-3822121dd668 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnfu5e6vs/runtime/kernel-fe0e0f55-be70-4112-9b37-af87ec0a3d36.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55437 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33649 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: fe0e0f55-be70-4112-9b37-af87ec0a3d36, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpnfu5e6vs/notebooks/foo'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.160000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.660000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7e4fb987-437d-4546-baa2-ba39dc66f7eb 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7e4fb987-437d-4546-baa2-ba39dc66f7eb 189s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/ab876f49-dcc5-4363-8005-899e6afdfaa4 (::1) 0.880000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fe0e0f55-be70-4112-9b37-af87ec0a3d36 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fe0e0f55-be70-4112-9b37-af87ec0a3d36 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/af61047d-f1a8-4d72-9c30-3822121dd668 (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/af61047d-f1a8-4d72-9c30-3822121dd668', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 189s yielded = self.gen.send(value) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 189s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 189s stopper = ensure_async(km.shutdown_kernel(now, restart)) 189s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s --------------------------- Captured stderr teardown --------------------------- 189s Traceback (most recent call last): 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 189s from pathlib import Path 189s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 189s from ._local import * 189s File "/usr/lib/python3.13/pathlib/_local.py", line 6, in 189s import warnings 189s File "", line 1360, in _find_and_load 189s File "", line 1331, in _find_and_load_unlocked 189s File "", line 935, in _load_unlocked 189s File "", line 1019, in exec_module 189s File "", line 1152, in get_code 189s File "", line 781, in _compile_bytecode 189s KeyboardInterrupt 189s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 189s 189s self = 189s 189s def test_create_with_kernel_id(self): 189s # create a new kernel 189s r = self.request('POST', 'api/kernels') 189s r.raise_for_status() 189s kernel = r.json() 189s 189s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 189s self.assertEqual(resp.status_code, 201) 189s newsession = resp.json() 189s self.assertIn('id', newsession) 189s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 189s self.assertEqual(newsession['kernel']['id'], kernel['id']) 189s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 189s 189s sessions = self.sess_api.list().json() 189s > self.assertEqual(sessions, [newsession]) 189s E AssertionError: Lists differ: [{'id': 'af61047d-f1a8-4d72-9c30-3822121dd668', 'p[553 chars]ne}}] != [{'id': '27e440b7-301a-4437-beca-9aa2c85c327c', 'p[279 chars]ne}}] 189s E 189s E First differing element 0: 189s E {'id': 'af61047d-f1a8-4d72-9c30-3822121dd668', 'p[218 chars]: 0}} 189s E {'id': '27e440b7-301a-4437-beca-9aa2c85c327c', 'p[278 chars]one}} 189s E 189s E First list contains 1 additional elements. 189s E First extra element 1: 189s E {'id': '27e440b7-301a-4437-beca-9aa2c85c327c', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'c051d85c-20ea-481b-b8d1-218fde88bcb9', 'name': 'python3', 'last_activity': '2026-01-30T06:17:37.392377Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 189s E 189s E Diff is 830 characters long. Set self.maxDiff to None to see it. 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnfu5e6vs/runtime/kernel-c051d85c-20ea-481b-b8d1-218fde88bcb9.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34995 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58219 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: c051d85c-20ea-481b-b8d1-218fde88bcb9, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.510000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.770000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.630000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.610000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fe0e0f55-be70-4112-9b37-af87ec0a3d36 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fe0e0f55-be70-4112-9b37-af87ec0a3d36 189s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/af61047d-f1a8-4d72-9c30-3822121dd668 (::1) 0.880000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c051d85c-20ea-481b-b8d1-218fde88bcb9 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c051d85c-20ea-481b-b8d1-218fde88bcb9 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/27e440b7-301a-4437-beca-9aa2c85c327c (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/27e440b7-301a-4437-beca-9aa2c85c327c', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 189s yielded = self.gen.send(value) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 189s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 189s stopper = ensure_async(km.shutdown_kernel(now, restart)) 189s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/27e440b7-301a-4437-beca-9aa2c85c327c (::1) 11.330000ms referer=None 189s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 189s 189s self = 189s 189s def test_modify_kernel_id(self): 189s before = self.sess_api.create('foo/nb1.ipynb').json() 189s sid = before['id'] 189s 189s # create a new kernel 189s r = self.request('POST', 'api/kernels') 189s r.raise_for_status() 189s kernel = r.json() 189s 189s # Attach our session to the existing kernel 189s > after = self.sess_api.modify_kernel_id(sid, kernel['id']).json() 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:250: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:82: in modify_kernel_id 189s return self._req('PATCH', id, body) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3d7e7553-1b9e-47e9-9ee5-1462fd97b17d 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s Traceback (most recent call last): 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 189s from ipykernel import kernelapp as app 189s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 189s from .connect import * # noqa: F403 189s ^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 189s import jupyter_client 189s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 189s from .asynchronous import AsyncKernelClient 189s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 189s from .client import AsyncKernelClient # noqa 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 189s import zmq.asyncio 189s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 189s from zmq import backend 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnfu5e6vs/runtime/kernel-79d82a5d-430f-4f91-a355-e70a17ecbe8d.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42803 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46695 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 79d82a5d-430f-4f91-a355-e70a17ecbe8d, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpnfu5e6vs/notebooks/foo'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.880000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnfu5e6vs/runtime/kernel-88683a38-3ad8-49e6-a21d-b4913cd7a026.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52879 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58343 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 88683a38-3ad8-49e6-a21d-b4913cd7a026, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 24.840000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 79d82a5d-430f-4f91-a355-e70a17ecbe8d 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 79d82a5d-430f-4f91-a355-e70a17ecbe8d 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/3d7e7553-1b9e-47e9-9ee5-1462fd97b17d (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/3d7e7553-1b9e-47e9-9ee5-1462fd97b17d', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 189s yielded = self.gen.send(value) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 154, in patch 189s km.shutdown_kernel(before['kernel']['id']) 189s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 189s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 189s stopper = ensure_async(km.shutdown_kernel(now, restart)) 189s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/3d7e7553-1b9e-47e9-9ee5-1462fd97b17d (::1) 7.220000ms referer=None 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.640000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 88683a38-3ad8-49e6-a21d-b4913cd7a026 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 88683a38-3ad8-49e6-a21d-b4913cd7a026 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3d7e7553-1b9e-47e9-9ee5-1462fd97b17d (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3d7e7553-1b9e-47e9-9ee5-1462fd97b17d', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 189s yielded = self.gen.send(value) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 189s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 189s stopper = ensure_async(km.shutdown_kernel(now, restart)) 189s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/3d7e7553-1b9e-47e9-9ee5-1462fd97b17d (::1) 11.800000ms referer=None 189s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 189s 189s self = 189s 189s def test_modify_kernel_name(self): 189s before = self.sess_api.create('foo/nb1.ipynb').json() 189s sid = before['id'] 189s 189s after = self.sess_api.modify_kernel_name(sid, before['kernel']['name']).json() 189s self.assertEqual(after['id'], sid) 189s self.assertEqual(after['path'], before['path']) 189s self.assertEqual(after['type'], before['type']) 189s self.assertNotEqual(after['kernel']['id'], before['kernel']['id']) 189s 189s # check kernel list, to be sure previous kernel was cleaned up 189s r = self.request('GET', 'api/kernels') 189s r.raise_for_status() 189s kernel_list = r.json() 189s after['kernel'].pop('last_activity') 189s [ k.pop('last_activity') for k in kernel_list ] 189s > self.assertEqual(kernel_list, [after['kernel']]) 189s E AssertionError: Lists differ: [{'id': '79d82a5d-430f-4f91-a355-e70a17ecbe8d', 'n[177 chars]: 0}] != [{'id': '07763013-08a5-42ff-9247-4209401cf349', 'n[61 chars]: 0}] 189s E 189s E First differing element 0: 189s E {'id': '79d82a5d-430f-4f91-a355-e70a17ecbe8d', 'n[60 chars]': 0} 189s E {'id': '07763013-08a5-42ff-9247-4209401cf349', 'n[60 chars]': 0} 189s E 189s E First list contains 1 additional elements. 189s E First extra element 1: 189s E {'id': '07763013-08a5-42ff-9247-4209401cf349', 'name': 'python3', 'execution_state': 'starting', 'connections': 0} 189s E 189s E [{'connections': 0, 189s E - 'execution_state': 'starting', 189s E - 'id': '79d82a5d-430f-4f91-a355-e70a17ecbe8d', 189s E - 'name': 'python3'}, 189s E - {'connections': 0, 189s E 'execution_state': 'starting', 189s E 'id': '07763013-08a5-42ff-9247-4209401cf349', 189s E 'name': 'python3'}] 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:238: AssertionError 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.770000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnfu5e6vs/runtime/kernel-07763013-08a5-42ff-9247-4209401cf349.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50593 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38663 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 07763013-08a5-42ff-9247-4209401cf349, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpnfu5e6vs/notebooks/foo'} 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 88683a38-3ad8-49e6-a21d-b4913cd7a026 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 88683a38-3ad8-49e6-a21d-b4913cd7a026 189s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/3d7e7553-1b9e-47e9-9ee5-1462fd97b17d (::1) 16.030000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.390000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.520000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 07763013-08a5-42ff-9247-4209401cf349 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 07763013-08a5-42ff-9247-4209401cf349 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3d7e7553-1b9e-47e9-9ee5-1462fd97b17d (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3d7e7553-1b9e-47e9-9ee5-1462fd97b17d', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 189s yielded = self.gen.send(value) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 189s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 189s stopper = ensure_async(km.shutdown_kernel(now, restart)) 189s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s __________________ SessionAPITest.test_modify_path_deprecated __________________ 189s 189s @self.addCleanup 189s def cleanup_sessions(): 189s for session in self.sess_api.list().json(): 189s > self.sess_api.delete(session['id']) 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a612ed1b-c03f-4648-8fe4-6512fadd8a15 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 189s from pathlib import Path 189s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 189s from ._local import * 189s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 189s class PureWindowsPath(PurePath): 189s ...<7 lines>... 189s __slots__ = () 189s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 189s import ntpath 189s File "", line 1360, in _find_and_load 189s File "", line 1331, in _find_and_load_unlocked 189s File "", line 935, in _load_unlocked 189s File "", line 1019, in exec_module 189s File "", line 1152, in get_code 189s File "", line 781, in _compile_bytecode 189s KeyboardInterrupt 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnfu5e6vs/runtime/kernel-a94140fe-74b9-4dd0-9c34-02cf7fa63e51.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33417 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60241 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: a94140fe-74b9-4dd0-9c34-02cf7fa63e51, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpnfu5e6vs/notebooks/foo'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.140000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s WARNING NotebookApp:handlers.py:124 Sessions API changed, see updated swagger docs 189s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/a612ed1b-c03f-4648-8fe4-6512fadd8a15 (::1) 0.940000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.580000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a94140fe-74b9-4dd0-9c34-02cf7fa63e51 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a94140fe-74b9-4dd0-9c34-02cf7fa63e51 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a612ed1b-c03f-4648-8fe4-6512fadd8a15 (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a612ed1b-c03f-4648-8fe4-6512fadd8a15', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 189s yielded = self.gen.send(value) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 189s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 189s stopper = ensure_async(km.shutdown_kernel(now, restart)) 189s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a612ed1b-c03f-4648-8fe4-6512fadd8a15 (::1) 7.770000ms referer=None 189s _______________________ SessionAPITest.test_modify_type ________________________ 189s 189s @self.addCleanup 189s def cleanup_sessions(): 189s for session in self.sess_api.list().json(): 189s > self.sess_api.delete(session['id']) 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/aea04b1a-8799-4290-80e8-41eb1b76d495 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnfu5e6vs/runtime/kernel-7af49734-fe23-481b-8163-070fa9e06ea9.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57017 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47567 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7af49734-fe23-481b-8163-070fa9e06ea9, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpnfu5e6vs/notebooks/foo'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.330000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/aea04b1a-8799-4290-80e8-41eb1b76d495 (::1) 0.910000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.670000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a94140fe-74b9-4dd0-9c34-02cf7fa63e51 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a94140fe-74b9-4dd0-9c34-02cf7fa63e51 189s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a612ed1b-c03f-4648-8fe4-6512fadd8a15 (::1) 1.990000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7af49734-fe23-481b-8163-070fa9e06ea9 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7af49734-fe23-481b-8163-070fa9e06ea9 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/aea04b1a-8799-4290-80e8-41eb1b76d495 (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/aea04b1a-8799-4290-80e8-41eb1b76d495', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 189s yielded = self.gen.send(value) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 189s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 189s stopper = ensure_async(km.shutdown_kernel(now, restart)) 189s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 189s return _runner_map[name].run(inner) 189s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 189s return fut.result(None) 189s ~~~~~~~~~~^^^^^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 189s return self.__get_result() 189s ~~~~~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 189s raise self._exception 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s --------------------------- Captured stderr teardown --------------------------- 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 189s from ipykernel import kernelapp as app 189s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 189s from .connect import * # noqa: F403 189s ^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 189s import json 189s File "/usr/lib/python3.13/json/__init__.py", line 106, in 189s from .decoder import JSONDecoder, JSONDecodeError 189s File "/usr/lib/python3.13/json/decoder.py", line 5, in 189s from json import scanner 189s File "/usr/lib/python3.13/json/scanner.py", line 5, in 189s from _json import make_scanner as c_make_scanner 189s KeyboardInterrupt 189s ---------------------------- Captured log teardown ----------------------------- 189s INFO NotebookApp:notebookapp.py:2164 Shutting down 2 kernels 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 79d82a5d-430f-4f91-a355-e70a17ecbe8d 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7af49734-fe23-481b-8163-070fa9e06ea9 189s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 189s _______________________ AsyncSessionAPITest.test_create ________________________ 189s 189s @self.addCleanup 189s def cleanup_sessions(): 189s for session in self.sess_api.list().json(): 189s > self.sess_api.delete(session['id']) 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 189s gc.collect() 189s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 189s ): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/13322edb-78e2-4fc3-bb49-26ee6c17c662 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ------------------------------ Captured log setup ------------------------------ 189s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpjobhbgdx/config', '/tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpjobhbgdx/etc/jupyter'] for config files 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpjobhbgdx/etc/jupyter 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpjobhbgdx/config 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpjobhbgdx/etc/jupyter 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 189s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpjobhbgdx/config 189s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpjobhbgdx/notebooks 189s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 189s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 189s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 189s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 189s WARNING NotebookApp:handlers.py:612 Forbidden 189s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.450000ms referer=None 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.780000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjobhbgdx/runtime/kernel-5c70d653-f928-4f54-989d-f6ec147bc1cb.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59735 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34509 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5c70d653-f928-4f54-989d-f6ec147bc1cb, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpjobhbgdx/notebooks/foo'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.900000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.930000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/13322edb-78e2-4fc3-bb49-26ee6c17c662 (::1) 0.740000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.540000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5c70d653-f928-4f54-989d-f6ec147bc1cb 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5c70d653-f928-4f54-989d-f6ec147bc1cb 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/13322edb-78e2-4fc3-bb49-26ee6c17c662 (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/13322edb-78e2-4fc3-bb49-26ee6c17c662', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 189s future.result() 189s ~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 189s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 189s raise km.ready.exception() # type: ignore[misc] 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/13322edb-78e2-4fc3-bb49-26ee6c17c662 (::1) 7.400000ms referer=None 189s --------------------------- Captured stderr teardown --------------------------- 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 189s from ipykernel import kernelapp as app 189s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 189s from .connect import * # noqa: F403 189s ^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 189s import json 189s File "/usr/lib/python3.13/json/__init__.py", line 107, in 189s from .encoder import JSONEncoder 189s File "/usr/lib/python3.13/json/encoder.py", line 20, in 189s HAS_UTF8 = re.compile(b'[\x80-\xff]') 189s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 189s return _compile(pattern, flags) 189s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 189s p = _compiler.compile(pattern, flags) 189s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 189s p = _parser.parse(p, flags) 189s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 189s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 189s File "/usr/lib/python3.13/re/_parser.py", line 451, in _parse_sub 189s def _parse_sub(source, state, verbose, nested): 189s 189s KeyboardInterrupt 189s _______________ AsyncSessionAPITest.test_create_console_session ________________ 189s 189s @self.addCleanup 189s def cleanup_sessions(): 189s for session in self.sess_api.list().json(): 189s > self.sess_api.delete(session['id']) 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c46129fb-3c25-4dcf-ac81-756ca5c402c0 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjobhbgdx/runtime/kernel-c0a55ca9-1bf4-40bd-906b-f4b71e992568.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44123 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37027 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: c0a55ca9-1bf4-40bd-906b-f4b71e992568, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpjobhbgdx/notebooks/foo'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.640000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.890000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5c70d653-f928-4f54-989d-f6ec147bc1cb 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5c70d653-f928-4f54-989d-f6ec147bc1cb 189s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/13322edb-78e2-4fc3-bb49-26ee6c17c662 (::1) 1.970000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c0a55ca9-1bf4-40bd-906b-f4b71e992568 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c0a55ca9-1bf4-40bd-906b-f4b71e992568 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c46129fb-3c25-4dcf-ac81-756ca5c402c0 (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c46129fb-3c25-4dcf-ac81-756ca5c402c0', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 189s future.result() 189s ~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 189s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 189s raise km.ready.exception() # type: ignore[misc] 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c46129fb-3c25-4dcf-ac81-756ca5c402c0 (::1) 7.040000ms referer=None 189s --------------------------- Captured stderr teardown --------------------------- 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 189s from pathlib import Path 189s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 189s from ._abc import * 189s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 189s from glob import _Globber, _no_recurse_symlinks 189s File "/usr/lib/python3.13/glob.py", line 5, in 189s import re 189s File "/usr/lib/python3.13/re/__init__.py", line 126, in 189s from . import _compiler, _parser 189s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 189s from . import _parser 189s File "", line 1360, in _find_and_load 189s File "", line 1331, in _find_and_load_unlocked 189s File "", line 935, in _load_unlocked 189s File "", line 1019, in exec_module 189s File "", line 1152, in get_code 189s File "", line 781, in _compile_bytecode 189s KeyboardInterrupt 189s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 189s 189s @self.addCleanup 189s def cleanup_sessions(): 189s for session in self.sess_api.list().json(): 189s > self.sess_api.delete(session['id']) 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/576fbba5-ca3d-43ec-bd55-18587e0efb8d 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjobhbgdx/runtime/kernel-4abe75df-b317-46f8-b0c8-d13f3b1d7f2d.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46743 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60113 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4abe75df-b317-46f8-b0c8-d13f3b1d7f2d, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpjobhbgdx/notebooks/foo'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.010000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.660000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c0a55ca9-1bf4-40bd-906b-f4b71e992568 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c0a55ca9-1bf4-40bd-906b-f4b71e992568 189s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c46129fb-3c25-4dcf-ac81-756ca5c402c0 (::1) 0.730000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4abe75df-b317-46f8-b0c8-d13f3b1d7f2d 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4abe75df-b317-46f8-b0c8-d13f3b1d7f2d 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/576fbba5-ca3d-43ec-bd55-18587e0efb8d (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/576fbba5-ca3d-43ec-bd55-18587e0efb8d', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 189s future.result() 189s ~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 189s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 189s raise km.ready.exception() # type: ignore[misc] 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s --------------------------- Captured stderr teardown --------------------------- 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 189s from pathlib import Path 189s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 189s from ._abc import * 189s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 189s from glob import _Globber, _no_recurse_symlinks 189s File "/usr/lib/python3.13/glob.py", line 5, in 189s import re 189s File "/usr/lib/python3.13/re/__init__.py", line 126, in 189s from . import _compiler, _parser 189s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 189s from . import _parser 189s File "/usr/lib/python3.13/re/_parser.py", line 15, in 189s from ._constants import * 189s File "/usr/lib/python3.13/re/_constants.py", line 130, in 189s ATCODES = _makecodes( 189s 'AT_BEGINNING', 'AT_BEGINNING_LINE', 'AT_BEGINNING_STRING', 189s ...<5 lines>... 189s 'AT_UNI_BOUNDARY', 'AT_UNI_NON_BOUNDARY', 189s ) 189s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 189s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 189s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 189s KeyboardInterrupt 189s _________________ AsyncSessionAPITest.test_create_file_session _________________ 189s 189s @self.addCleanup 189s def cleanup_sessions(): 189s for session in self.sess_api.list().json(): 189s > self.sess_api.delete(session['id']) 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/bf9da827-54ac-47e3-9166-64b17f9a8255 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjobhbgdx/runtime/kernel-f5c4a2db-f5de-4327-aceb-e7694ab86142.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40593 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33261 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: f5c4a2db-f5de-4327-aceb-e7694ab86142, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpjobhbgdx/notebooks/foo'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.110000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.690000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4abe75df-b317-46f8-b0c8-d13f3b1d7f2d 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4abe75df-b317-46f8-b0c8-d13f3b1d7f2d 189s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/576fbba5-ca3d-43ec-bd55-18587e0efb8d (::1) 0.880000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f5c4a2db-f5de-4327-aceb-e7694ab86142 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f5c4a2db-f5de-4327-aceb-e7694ab86142 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/bf9da827-54ac-47e3-9166-64b17f9a8255 (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/bf9da827-54ac-47e3-9166-64b17f9a8255', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 189s future.result() 189s ~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 189s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 189s raise km.ready.exception() # type: ignore[misc] 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/bf9da827-54ac-47e3-9166-64b17f9a8255 (::1) 7.290000ms referer=None 189s --------------------------- Captured stderr teardown --------------------------- 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 189s from pathlib import Path 189s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 189s from ._abc import * 189s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 189s from glob import _Globber, _no_recurse_symlinks 189s File "/usr/lib/python3.13/glob.py", line 5, in 189s import re 189s File "/usr/lib/python3.13/re/__init__.py", line 143, in 189s @enum._simple_enum(enum.IntFlag, boundary=enum.KEEP) 189s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3.13/enum.py", line 1819, in convert_class 189s for name, value in attrs.items(): 189s ~~~~~~~~~~~^^ 189s KeyboardInterrupt 189s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 189s 189s self = 189s 189s def test_create_with_kernel_id(self): 189s # create a new kernel 189s r = self.request('POST', 'api/kernels') 189s r.raise_for_status() 189s kernel = r.json() 189s 189s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 189s self.assertEqual(resp.status_code, 201) 189s newsession = resp.json() 189s self.assertIn('id', newsession) 189s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 189s self.assertEqual(newsession['kernel']['id'], kernel['id']) 189s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 189s 189s sessions = self.sess_api.list().json() 189s > self.assertEqual(sessions, [newsession]) 189s E AssertionError: Lists differ: [{'id': 'bf9da827-54ac-47e3-9166-64b17f9a8255', 'p[553 chars]ne}}] != [{'id': '267c9fe1-9f5f-4db6-85f8-adc2d4ac9240', 'p[279 chars]ne}}] 189s E 189s E First differing element 0: 189s E {'id': 'bf9da827-54ac-47e3-9166-64b17f9a8255', 'p[218 chars]: 0}} 189s E {'id': '267c9fe1-9f5f-4db6-85f8-adc2d4ac9240', 'p[278 chars]one}} 189s E 189s E First list contains 1 additional elements. 189s E First extra element 1: 189s E {'id': '267c9fe1-9f5f-4db6-85f8-adc2d4ac9240', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '6690c627-9f81-4ec6-ab18-902794e4c033', 'name': 'python3', 'last_activity': '2026-01-30T06:17:38.372579Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 189s E 189s E Diff is 830 characters long. Set self.maxDiff to None to see it. 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjobhbgdx/runtime/kernel-6690c627-9f81-4ec6-ab18-902794e4c033.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55779 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47239 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6690c627-9f81-4ec6-ab18-902794e4c033, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.240000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.910000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.660000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.660000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f5c4a2db-f5de-4327-aceb-e7694ab86142 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f5c4a2db-f5de-4327-aceb-e7694ab86142 189s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/bf9da827-54ac-47e3-9166-64b17f9a8255 (::1) 1.960000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6690c627-9f81-4ec6-ab18-902794e4c033 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6690c627-9f81-4ec6-ab18-902794e4c033 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/267c9fe1-9f5f-4db6-85f8-adc2d4ac9240 (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/267c9fe1-9f5f-4db6-85f8-adc2d4ac9240', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 189s future.result() 189s ~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 189s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 189s raise km.ready.exception() # type: ignore[misc] 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/267c9fe1-9f5f-4db6-85f8-adc2d4ac9240 (::1) 7.250000ms referer=None 189s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 189s 189s self = 189s 189s def test_modify_kernel_id(self): 189s before = self.sess_api.create('foo/nb1.ipynb').json() 189s sid = before['id'] 189s 189s # create a new kernel 189s r = self.request('POST', 'api/kernels') 189s r.raise_for_status() 189s kernel = r.json() 189s 189s # Attach our session to the existing kernel 189s > after = self.sess_api.modify_kernel_id(sid, kernel['id']).json() 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:250: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:82: in modify_kernel_id 189s return self._req('PATCH', id, body) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/67152983-a114-4711-b079-8911479ed222 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 189s from ipykernel import kernelapp as app 189s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 189s from .connect import * # noqa: F403 189s ^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 189s import jupyter_client 189s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 189s from .asynchronous import AsyncKernelClient 189s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 189s from .client import AsyncKernelClient # noqa 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 189s import zmq.asyncio 189s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 189s from zmq import backend 189s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 189s _ns = select_backend(first) 189s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 189s mod = import_module(name) 189s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 189s return _bootstrap._gcd_import(name[level:], package, level) 189s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 189s from . import _zmq 189s File "", line 645, in parent 189s KeyboardInterrupt 189s Traceback (most recent call last): 189s File "", line 1513, in _path_importer_cache 189s KeyError: '/usr/lib/python3.13/json' 189s 189s During handling of the above exception, another exception occurred: 189s 189s Traceback (most recent call last): 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjobhbgdx/runtime/kernel-7311c549-f710-4460-ac9a-9355468f17b1.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38537 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51369 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7311c549-f710-4460-ac9a-9355468f17b1, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpjobhbgdx/notebooks/foo'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.380000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjobhbgdx/runtime/kernel-9436ccad-5972-412f-9406-859beeeddcaa.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34875 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58047 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9436ccad-5972-412f-9406-859beeeddcaa, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.930000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7311c549-f710-4460-ac9a-9355468f17b1 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7311c549-f710-4460-ac9a-9355468f17b1 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/67152983-a114-4711-b079-8911479ed222 (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/67152983-a114-4711-b079-8911479ed222', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 189s future.result() 189s ~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 153, in patch 189s yield maybe_future( 189s km.shutdown_kernel(before['kernel']['id']) 189s ) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 189s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 189s raise km.ready.exception() # type: ignore[misc] 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/67152983-a114-4711-b079-8911479ed222 (::1) 16.440000ms referer=None 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.620000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9436ccad-5972-412f-9406-859beeeddcaa 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9436ccad-5972-412f-9406-859beeeddcaa 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/67152983-a114-4711-b079-8911479ed222 (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/67152983-a114-4711-b079-8911479ed222', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 189s future.result() 189s ~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 189s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 189s raise km.ready.exception() # type: ignore[misc] 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 189s 189s self = 189s 189s def test_modify_kernel_name(self): 189s before = self.sess_api.create('foo/nb1.ipynb').json() 189s sid = before['id'] 189s 189s after = self.sess_api.modify_kernel_name(sid, before['kernel']['name']).json() 189s self.assertEqual(after['id'], sid) 189s self.assertEqual(after['path'], before['path']) 189s self.assertEqual(after['type'], before['type']) 189s self.assertNotEqual(after['kernel']['id'], before['kernel']['id']) 189s 189s # check kernel list, to be sure previous kernel was cleaned up 189s r = self.request('GET', 'api/kernels') 189s r.raise_for_status() 189s kernel_list = r.json() 189s after['kernel'].pop('last_activity') 189s [ k.pop('last_activity') for k in kernel_list ] 189s > self.assertEqual(kernel_list, [after['kernel']]) 189s E AssertionError: Lists differ: [{'id': '7311c549-f710-4460-ac9a-9355468f17b1', 'n[177 chars]: 0}] != [{'id': 'c995a5ef-0065-4b63-8cda-b90c159e3c17', 'n[61 chars]: 0}] 189s E 189s E First differing element 0: 189s E {'id': '7311c549-f710-4460-ac9a-9355468f17b1', 'n[60 chars]': 0} 189s E {'id': 'c995a5ef-0065-4b63-8cda-b90c159e3c17', 'n[60 chars]': 0} 189s E 189s E First list contains 1 additional elements. 189s E First extra element 1: 189s E {'id': 'c995a5ef-0065-4b63-8cda-b90c159e3c17', 'name': 'python3', 'execution_state': 'starting', 'connections': 0} 189s E 189s E [{'connections': 0, 189s E - 'execution_state': 'starting', 189s E - 'id': '7311c549-f710-4460-ac9a-9355468f17b1', 189s E - 'name': 'python3'}, 189s E - {'connections': 0, 189s E 'execution_state': 'starting', 189s E 'id': 'c995a5ef-0065-4b63-8cda-b90c159e3c17', 189s E 'name': 'python3'}] 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:238: AssertionError 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.790000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjobhbgdx/runtime/kernel-c995a5ef-0065-4b63-8cda-b90c159e3c17.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37681 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54551 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: c995a5ef-0065-4b63-8cda-b90c159e3c17, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpjobhbgdx/notebooks/foo'} 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9436ccad-5972-412f-9406-859beeeddcaa 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9436ccad-5972-412f-9406-859beeeddcaa 189s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/67152983-a114-4711-b079-8911479ed222 (::1) 17.340000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.560000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.530000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c995a5ef-0065-4b63-8cda-b90c159e3c17 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c995a5ef-0065-4b63-8cda-b90c159e3c17 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/67152983-a114-4711-b079-8911479ed222 (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/67152983-a114-4711-b079-8911479ed222', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 189s future.result() 189s ~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 189s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 189s raise km.ready.exception() # type: ignore[misc] 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s _______________ AsyncSessionAPITest.test_modify_path_deprecated ________________ 189s 189s @self.addCleanup 189s def cleanup_sessions(): 189s for session in self.sess_api.list().json(): 189s > self.sess_api.delete(session['id']) 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a0c4230d-ac50-4fb9-82cc-a780e7bc5b66 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjobhbgdx/runtime/kernel-2d54ccb2-129e-4578-a71b-8ebe0d689a61.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60057 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60275 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2d54ccb2-129e-4578-a71b-8ebe0d689a61, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpjobhbgdx/notebooks/foo'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.570000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s WARNING NotebookApp:handlers.py:124 Sessions API changed, see updated swagger docs 189s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/a0c4230d-ac50-4fb9-82cc-a780e7bc5b66 (::1) 2.050000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.530000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2d54ccb2-129e-4578-a71b-8ebe0d689a61 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2d54ccb2-129e-4578-a71b-8ebe0d689a61 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a0c4230d-ac50-4fb9-82cc-a780e7bc5b66 (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a0c4230d-ac50-4fb9-82cc-a780e7bc5b66', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 189s future.result() 189s ~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 189s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 189s raise km.ready.exception() # type: ignore[misc] 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s --------------------------- Captured stderr teardown --------------------------- 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 189s from ipykernel import kernelapp as app 189s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 189s from .connect import * # noqa: F403 189s ^^^^^^^^^^^^^^^^^^^^^^ 189s File "", line 1360, in _find_and_load 189s File "", line 1331, in _find_and_load_unlocked 189s File "", line 935, in _load_unlocked 189s File "", line 1019, in exec_module 189s File "", line 1115, in get_code 189s File "", line 1211, in get_data 189s KeyboardInterrupt 189s _____________________ AsyncSessionAPITest.test_modify_type _____________________ 189s 189s @self.addCleanup 189s def cleanup_sessions(): 189s for session in self.sess_api.list().json(): 189s > self.sess_api.delete(session['id']) 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5dbb4bad-7642-4b2e-b0d8-865c387d3830 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjobhbgdx/runtime/kernel-249ec5fb-0dd7-456c-babf-3f46eafa8d57.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43865 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42795 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 249ec5fb-0dd7-456c-babf-3f46eafa8d57, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpjobhbgdx/notebooks/foo'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.070000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/5dbb4bad-7642-4b2e-b0d8-865c387d3830 (::1) 2.060000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.910000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2d54ccb2-129e-4578-a71b-8ebe0d689a61 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2d54ccb2-129e-4578-a71b-8ebe0d689a61 189s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a0c4230d-ac50-4fb9-82cc-a780e7bc5b66 (::1) 0.750000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 249ec5fb-0dd7-456c-babf-3f46eafa8d57 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 249ec5fb-0dd7-456c-babf-3f46eafa8d57 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5dbb4bad-7642-4b2e-b0d8-865c387d3830 (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5dbb4bad-7642-4b2e-b0d8-865c387d3830', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 189s future.result() 189s ~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 189s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 189s raise km.ready.exception() # type: ignore[misc] 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s --------------------------- Captured stderr teardown --------------------------- 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 189s from pathlib import Path 189s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 189s from ._abc import * 189s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 189s from glob import _Globber, _no_recurse_symlinks 189s File "/usr/lib/python3.13/glob.py", line 5, in 189s import re 189s File "/usr/lib/python3.13/re/__init__.py", line 126, in 189s from . import _compiler, _parser 189s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 189s from . import _parser 189s File "/usr/lib/python3.13/re/_parser.py", line 15, in 189s from ._constants import * 189s File "/usr/lib/python3.13/re/_constants.py", line 23, in 189s class PatternError(Exception): 189s ...<29 lines>... 189s super().__init__(msg) 189s KeyboardInterrupt 189s ---------------------------- Captured log teardown ----------------------------- 189s INFO NotebookApp:notebookapp.py:2164 Shutting down 2 kernels 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c995a5ef-0065-4b63-8cda-b90c159e3c17 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5c70d653-f928-4f54-989d-f6ec147bc1cb 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9436ccad-5972-412f-9406-859beeeddcaa 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2d54ccb2-129e-4578-a71b-8ebe0d689a61 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 249ec5fb-0dd7-456c-babf-3f46eafa8d57 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f5c4a2db-f5de-4327-aceb-e7694ab86142 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7311c549-f710-4460-ac9a-9355468f17b1 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6690c627-9f81-4ec6-ab18-902794e4c033 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c0a55ca9-1bf4-40bd-906b-f4b71e992568 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4abe75df-b317-46f8-b0c8-d13f3b1d7f2d 189s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 189s =============================== warnings summary =============================== 189s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 189s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 189s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 189s return LooseVersion(v) >= LooseVersion(check) 189s 189s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 189s auth/tests/test_login.py: 2 warnings 189s bundler/tests/test_bundler_api.py: 2 warnings 189s services/api/tests/test_api.py: 4 warnings 189s services/config/tests/test_config_api.py: 7 warnings 189s services/contents/tests/test_contents_api.py: 318 warnings 189s services/kernels/tests/test_kernels_api.py: 111 warnings 189s services/kernelspecs/tests/test_kernelspecs_api.py: 7 warnings 189s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 189s services/sessions/tests/test_sessionmanager.py: 9 warnings 189s services/sessions/tests/test_sessions_api.py: 128 warnings 189s terminal/tests/test_terminals_api.py: 50 warnings 189s tests/test_files.py: 2 warnings 189s tests/test_gateway.py: 21 warnings 189s tests/test_notebookapp.py: 8 warnings 189s tests/test_paths.py: 2 warnings 189s tree/tests/test_tree_handler.py: 2 warnings 189s /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). 189s dt = unaware(*args, **kwargs) 189s 189s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 189s /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 189s pytestmark = pytest.mark.integration_tests 189s 189s auth/tests/test_login.py: 3 warnings 189s bundler/tests/test_bundler_api.py: 3 warnings 189s services/api/tests/test_api.py: 3 warnings 189s services/config/tests/test_config_api.py: 3 warnings 189s services/contents/tests/test_contents_api.py: 6 warnings 189s services/kernels/tests/test_kernels_api.py: 12 warnings 189s services/kernelspecs/tests/test_kernelspecs_api.py: 3 warnings 189s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 189s services/sessions/tests/test_sessions_api.py: 6 warnings 189s terminal/tests/test_terminals_api.py: 6 warnings 189s tests/test_files.py: 3 warnings 189s tests/test_gateway.py: 3 warnings 189s tests/test_notebookapp.py: 11 warnings 189s tests/test_paths.py: 3 warnings 189s tree/tests/test_tree_handler.py: 3 warnings 189s /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 189s policy = events.get_event_loop_policy() 189s 189s auth/tests/test_login.py: 9 warnings 189s bundler/tests/test_bundler_api.py: 9 warnings 189s services/api/tests/test_api.py: 9 warnings 189s services/config/tests/test_config_api.py: 9 warnings 189s services/contents/tests/test_contents_api.py: 18 warnings 189s services/kernels/tests/test_kernels_api.py: 47 warnings 189s services/kernelspecs/tests/test_kernelspecs_api.py: 9 warnings 189s services/nbconvert/tests/test_nbconvert_api.py: 9 warnings 189s services/sessions/tests/test_sessionmanager.py: 18 warnings 189s services/sessions/tests/test_sessions_api.py: 19 warnings 189s terminal/tests/test_terminals_api.py: 18 warnings 189s tests/test_files.py: 9 warnings 189s tests/test_gateway.py: 9 warnings 189s tests/test_notebookapp.py: 28 warnings 189s tests/test_paths.py: 9 warnings 189s tree/tests/test_tree_handler.py: 9 warnings 189s /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 189s loop = events.get_event_loop_policy().get_event_loop() 189s 189s bundler/tests/test_bundler_api.py: 6 warnings 189s services/api/tests/test_api.py: 6 warnings 189s services/contents/tests/test_contents_api.py: 806 warnings 189s services/contents/tests/test_largefilemanager.py: 42 warnings 189s services/contents/tests/test_manager.py: 526 warnings 189s tests/test_files.py: 8 warnings 189s tree/tests/test_tree_handler.py: 6 warnings 189s /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). 189s dt = unaware(*args, **kwargs) 189s 189s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 189s services/kernels/tests/test_kernels_api.py::KernelCullingTest::test_culling 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 189s loop.make_current() 189s 189s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs 189s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs_bad 189s /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/tmppdfq94lx/data/kernels/sample 2 189s d = self.find_kernel_specs() 189s 189s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal 189s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 189s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 189s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_with_name 189s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_handler 189s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 189s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 189s terminal/tests/test_terminals_api.py::TerminalCullingTest::test_culling 189s /usr/lib/python3.14/pty.py:66: DeprecationWarning: This process (pid=3139) is multi-threaded, use of forkpty() may lead to deadlocks in the child. 189s pid, fd = os.forkpty() 189s 189s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 189s /usr/lib/python3/dist-packages/jinja2/nodes.py:143: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 189s for name, arg in zip(self.fields, fields): 189s Enable tracemalloc to get traceback where the object was allocated. 189s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 189s 189s tests/test_gateway.py::TestGateway::test_gateway_kernel_lifecycle 189s tests/test_gateway.py::TestGateway::test_gateway_session_lifecycle 189s /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). 189s dt = datetime.utcnow().isoformat() + 'Z' 189s 189s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 189s =========================== short test summary info ============================ 189s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:86: Pandoc wasn't found. Skipping this test. 189s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:101: Pandoc wasn't found. Skipping this test. 189s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:109: Pandoc wasn't found. Skipping this test. 189s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:119: Pandoc wasn't found. Skipping this test. 189s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:128: Pandoc wasn't found. Skipping this test. 189s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:145: Pandoc wasn't found. Skipping this test. 189s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:682: skip send2trash tests 189s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:592: skip send2trash tests 189s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:606: skip send2trash tests 189s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:616: skip send2trash tests 189s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:332: skip send2trash tests 189s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:658: skip send2trash tests 189s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:727: skip send2trash tests 189s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/tests/test_utils.py:83: run on windows only 189s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 189s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 189s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 189s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 189s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 189s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 189s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 189s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 189s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 189s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 189s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 189s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 189s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 189s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 189s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 189s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 189s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_path_deprecated 189s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_type 189s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 189s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 189s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 189s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 189s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 189s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 189s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 189s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_path_deprecated 189s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_type 189s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 189s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 189s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 189s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 189s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 189s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 189s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 189s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 189s = 27 failed, 277 passed, 20 skipped, 6 deselected, 2404 warnings, 8 errors in 30.48s = 189s *** END OF RUN 1: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 189s *** 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 193s ============================= test session starts ============================== 193s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 193s rootdir: /tmp/autopkgtest.XnQU0x/autopkgtest_tmp 193s plugins: typeguard-4.4.4 193s collected 330 items / 303 deselected / 27 selected 193s run-last-failure: rerun previous 27 failures 193s 195s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 33%] 196s services/sessions/tests/test_sessions_api.py FFFFFEFF.FFFFFFEFF.F [100%] 196s 196s ==================================== ERRORS ==================================== 196s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 196s 196s self = 196s 196s def tearDown(self): 196s for k in self.kern_api.list().json(): 196s > self.kern_api.shutdown(k['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/e5ef60ac-3cb5-4336-a3e5-25c8ad011e0e 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 5, in 196s import re 196s File "/usr/lib/python3.13/re/__init__.py", line 126, in 196s from . import _compiler, _parser 196s File "/usr/lib/python3.13/re/_compiler.py", line 16, in 196s from ._casefix import _EXTRA_CASES 196s File "", line 1360, in _find_and_load 196s File "", line 1322, in _find_and_load_unlocked 196s File "", line 1256, in _find_spec 196s File "", line 1228, in __exit__ 196s KeyboardInterrupt 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpko3gnxj5/runtime/kernel-e5ef60ac-3cb5-4336-a3e5-25c8ad011e0e.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34107 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45213 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: e5ef60ac-3cb5-4336-a3e5-25c8ad011e0e, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.260000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.590000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpko3gnxj5/runtime/kernel-03a34ebc-d864-49af-9faf-2ac33fb1ea74.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38311 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48025 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 03a34ebc-d864-49af-9faf-2ac33fb1ea74, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.360000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.580000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 03a34ebc-d864-49af-9faf-2ac33fb1ea74 196s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/03a34ebc-d864-49af-9faf-2ac33fb1ea74/interrupt (::1) 4.040000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 196s yield maybe_future(km.restart_kernel(kernel_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 196s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 196s await ensure_async(kernel.restart_kernel(now=now)) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 196s await self._async_shutdown_kernel(now=now, restart=True) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/03a34ebc-d864-49af-9faf-2ac33fb1ea74/restart (::1) 4.220000ms referer=None 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.610000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e5ef60ac-3cb5-4336-a3e5-25c8ad011e0e 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e5ef60ac-3cb5-4336-a3e5-25c8ad011e0e 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/e5ef60ac-3cb5-4336-a3e5-25c8ad011e0e (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/e5ef60ac-3cb5-4336-a3e5-25c8ad011e0e', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 196s yielded = ctx_run(next, result) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 196s yield maybe_future(km.shutdown_kernel(kernel_id)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 196s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 196s stopper = ensure_async(km.shutdown_kernel(now, restart)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/e5ef60ac-3cb5-4336-a3e5-25c8ad011e0e (::1) 6.590000ms referer=None 196s --------------------------- Captured stderr teardown --------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 196s from ipykernel import kernelapp as app 196s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 196s from .connect import * # noqa: F403 196s ^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 196s import jupyter_client 196s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 196s from .asynchronous import AsyncKernelClient 196s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 196s from .client import AsyncKernelClient # noqa 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 196s import zmq.asyncio 196s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 196s import asyncio 196s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 196s from .base_events import * 196s File "/usr/lib/python3.13/asyncio/base_events.py", line 18, in 196s import concurrent.futures 196s File "/usr/lib/python3.13/concurrent/futures/__init__.py", line 8, in 196s from concurrent.futures._base import (FIRST_COMPLETED, 196s ...<9 lines>... 196s as_completed) 196s File "/usr/lib/python3.13/concurrent/futures/_base.py", line 7, in 196s import logging 196s File "/usr/lib/python3.13/logging/__init__.py", line 554, in 196s class Formatter(object): 196s ...<174 lines>... 196s return s 196s KeyboardInterrupt 196s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 196s 196s self = 196s 196s def tearDown(self): 196s for k in self.kern_api.list().json(): 196s > self.kern_api.shutdown(k['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/78de27cf-1e17-4c58-8824-654af6c39e71 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 3, in 196s import contextlib 196s File "/usr/lib/python3.13/contextlib.py", line 17, in 196s class AbstractContextManager(abc.ABC): 196s File "/usr/lib/python3.13/contextlib.py", line 21, in AbstractContextManager 196s __class_getitem__ = classmethod(GenericAlias) 196s KeyboardInterrupt 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 196s from ipykernel import kernelapp as app 196s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 196s from .connect import * # noqa: F403 196s ^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 196s import jupyter_client 196s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 196s from .asynchronous import AsyncKernelClient 196s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 196s from .client import AsyncKernelClient # noqa 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 196s import zmq.asyncio 196s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 196s import asyncio 196s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 196s from .base_events import * 196s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 196s import ssl 196s File "/usr/lib/python3.13/ssl.py", line 185, in 196s @_simple_enum(_IntEnum) 196s ~~~~~~~~~~~~^^^^^^^^^^ 196s File "/usr/lib/python3.13/enum.py", line 1883, in convert_class 196s member = new_member(enum_class, *value) 196s KeyboardInterrupt 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppqde19fa/runtime/kernel-78de27cf-1e17-4c58-8824-654af6c39e71.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50975 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53711 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 78de27cf-1e17-4c58-8824-654af6c39e71, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.140000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppqde19fa/runtime/kernel-0dba31e4-4164-412d-8e90-7557d8588c46.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39587 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44983 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0dba31e4-4164-412d-8e90-7557d8588c46, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.740000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.780000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 0dba31e4-4164-412d-8e90-7557d8588c46 196s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/0dba31e4-4164-412d-8e90-7557d8588c46/interrupt (::1) 4.770000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 196s yield maybe_future(km.restart_kernel(kernel_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 196s result = coro.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 196s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 196s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 196s yield self # This tells Task to wait for completion. 196s ^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 196s await ensure_async(kernel.restart_kernel(now=now)) 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 196s await self._async_shutdown_kernel(now=now, restart=True) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/0dba31e4-4164-412d-8e90-7557d8588c46/restart (::1) 8.110000ms referer=None 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.560000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 78de27cf-1e17-4c58-8824-654af6c39e71 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 78de27cf-1e17-4c58-8824-654af6c39e71 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/78de27cf-1e17-4c58-8824-654af6c39e71 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/78de27cf-1e17-4c58-8824-654af6c39e71', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 196s yield maybe_future(km.shutdown_kernel(kernel_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 196s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 196s raise km.ready.exception() # type: ignore[misc] 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/78de27cf-1e17-4c58-8824-654af6c39e71 (::1) 6.300000ms referer=None 196s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a5566cb7-32d7-4e91-bcb5-fffb2c9dab2b 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 196s from ipykernel import kernelapp as app 196s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 196s from .connect import * # noqa: F403 196s ^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 196s import json 196s File "/usr/lib/python3.13/json/__init__.py", line 107, in 196s from .encoder import JSONEncoder 196s File "", line 1360, in _find_and_load 196s File "", line 1331, in _find_and_load_unlocked 196s File "", line 935, in _load_unlocked 196s File "", line 1019, in exec_module 196s File "", line 1152, in get_code 196s File "", line 781, in _compile_bytecode 196s KeyboardInterrupt 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpo0hcu2xw/runtime/kernel-a8258f66-ff37-4053-8e63-ae83c19196f2.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42329 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47673 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: a8258f66-ff37-4053-8e63-ae83c19196f2, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.250000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.660000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 430b8582-5d7e-4fe3-b499-e7960d236745 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 430b8582-5d7e-4fe3-b499-e7960d236745 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d8770534-9acb-4cef-9775-2967500cc7a1 (::1) 0.760000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a8258f66-ff37-4053-8e63-ae83c19196f2 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a8258f66-ff37-4053-8e63-ae83c19196f2 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a5566cb7-32d7-4e91-bcb5-fffb2c9dab2b (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a5566cb7-32d7-4e91-bcb5-fffb2c9dab2b', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 196s yielded = self.gen.send(value) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 196s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 196s stopper = ensure_async(km.shutdown_kernel(now, restart)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a5566cb7-32d7-4e91-bcb5-fffb2c9dab2b (::1) 7.010000ms referer=None 196s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/04df52a8-6c3a-4f77-b75c-49516c874f61 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe1un6ju8/runtime/kernel-14b32995-85a2-4370-b0af-3ef7a2fc27c8.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60037 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33645 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 14b32995-85a2-4370-b0af-3ef7a2fc27c8, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.110000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.770000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.690000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.630000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6b6579bf-093b-4007-aa8d-d235a8ff3beb 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6b6579bf-093b-4007-aa8d-d235a8ff3beb 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/564da456-98bc-4e86-94ba-1628bf852d1e (::1) 0.690000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 14b32995-85a2-4370-b0af-3ef7a2fc27c8 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 14b32995-85a2-4370-b0af-3ef7a2fc27c8 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/04df52a8-6c3a-4f77-b75c-49516c874f61 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/04df52a8-6c3a-4f77-b75c-49516c874f61', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 196s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 196s raise km.ready.exception() # type: ignore[misc] 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/04df52a8-6c3a-4f77-b75c-49516c874f61 (::1) 6.830000ms referer=None 196s --------------------------- Captured stderr teardown --------------------------- 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 196s from ipykernel import kernelapp as app 196s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 196s from .connect import * # noqa: F403 196s ^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 196s import json 196s File "/usr/lib/python3.13/json/__init__.py", line 107, in 196s from .encoder import JSONEncoder 196s File "", line 1360, in _find_and_load 196s File "", line 1322, in _find_and_load_unlocked 196s File "", line 1256, in _find_spec 196s File "", line 1226, in __exit__ 196s KeyboardInterrupt 196s =================================== FAILURES =================================== 196s ______________________ KernelAPITest.test_default_kernel _______________________ 196s 196s self = 196s 196s def tearDown(self): 196s for k in self.kern_api.list().json(): 196s > self.kern_api.shutdown(k['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/12992bcf-a0a1-459a-96ff-790b1723bdc8 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ------------------------------ Captured log setup ------------------------------ 196s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpko3gnxj5/config', '/tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpko3gnxj5/etc/jupyter'] for config files 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpko3gnxj5/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpko3gnxj5/config 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpko3gnxj5/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpko3gnxj5/config 196s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpko3gnxj5/notebooks 196s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 196s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 196s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 196s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 196s WARNING NotebookApp:handlers.py:612 Forbidden 196s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.750000ms referer=None 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 196s from ._local import * 196s File "", line 1360, in _find_and_load 196s File "", line 1331, in _find_and_load_unlocked 196s File "", line 935, in _load_unlocked 196s File "", line 1019, in exec_module 196s File "", line 1152, in get_code 196s File "", line 781, in _compile_bytecode 196s KeyboardInterrupt 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpko3gnxj5/runtime/kernel-12992bcf-a0a1-459a-96ff-790b1723bdc8.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40557 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53133 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 12992bcf-a0a1-459a-96ff-790b1723bdc8, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 56.630000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.690000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 12992bcf-a0a1-459a-96ff-790b1723bdc8 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 12992bcf-a0a1-459a-96ff-790b1723bdc8 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/12992bcf-a0a1-459a-96ff-790b1723bdc8 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/12992bcf-a0a1-459a-96ff-790b1723bdc8', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 196s yielded = ctx_run(next, result) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 196s yield maybe_future(km.shutdown_kernel(kernel_id)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 196s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 196s stopper = ensure_async(km.shutdown_kernel(now, restart)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/12992bcf-a0a1-459a-96ff-790b1723bdc8 (::1) 11.080000ms referer=None 196s ______________________ KernelAPITest.test_kernel_handler _______________________ 196s 196s self = 196s 196s def test_kernel_handler(self): 196s # GET kernel with given id 196s kid = self.kern_api.start().json()['id'] 196s r = self.kern_api.get(kid) 196s kern1 = r.json() 196s self.assertEqual(r.status_code, 200) 196s assert isinstance(kern1, dict) 196s self.assertIn('id', kern1) 196s self.assertEqual(kern1['id'], kid) 196s 196s # Request a bad kernel id and check that a JSON 196s # message is returned! 196s bad_id = '111-111-111-111-111' 196s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 196s self.kern_api.get(bad_id) 196s 196s # DELETE kernel with id 196s > r = self.kern_api.shutdown(kid) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/daea3104-2f43-4a96-beb4-6e4914786d77 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 5, in 196s import re 196s File "/usr/lib/python3.13/re/__init__.py", line 144, in 196s class RegexFlag: 196s ...<11 lines>... 196s _numeric_repr_ = hex 196s File "/usr/lib/python3.13/re/__init__.py", line 142, in RegexFlag 196s @enum.global_enum 196s 196s KeyboardInterrupt 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpko3gnxj5/runtime/kernel-daea3104-2f43-4a96-beb4-6e4914786d77.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33007 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47709 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: daea3104-2f43-4a96-beb4-6e4914786d77, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.700000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/daea3104-2f43-4a96-beb4-6e4914786d77 (::1) 0.520000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s 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 196s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 196s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.560000ms referer=None 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for daea3104-2f43-4a96-beb4-6e4914786d77 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: daea3104-2f43-4a96-beb4-6e4914786d77 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/daea3104-2f43-4a96-beb4-6e4914786d77 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/daea3104-2f43-4a96-beb4-6e4914786d77', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 196s yielded = ctx_run(next, result) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 196s yield maybe_future(km.shutdown_kernel(kernel_id)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 196s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 196s stopper = ensure_async(km.shutdown_kernel(now, restart)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/daea3104-2f43-4a96-beb4-6e4914786d77 (::1) 6.570000ms referer=None 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.520000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 12992bcf-a0a1-459a-96ff-790b1723bdc8 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 12992bcf-a0a1-459a-96ff-790b1723bdc8 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/12992bcf-a0a1-459a-96ff-790b1723bdc8 (::1) 1.840000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for daea3104-2f43-4a96-beb4-6e4914786d77 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: daea3104-2f43-4a96-beb4-6e4914786d77 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/daea3104-2f43-4a96-beb4-6e4914786d77 (::1) 0.630000ms 196s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 196s 196s self = 196s 196s def test_main_kernel_handler(self): 196s # POST request 196s r = self.kern_api.start() 196s kern1 = r.json() 196s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 196s self.assertEqual(r.status_code, 201) 196s self.assertIsInstance(kern1, dict) 196s 196s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 196s expected_csp = '; '.join([ 196s "frame-ancestors 'self'", 196s 'report-uri ' + report_uri, 196s "default-src 'none'" 196s ]) 196s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 196s 196s # GET request 196s r = self.kern_api.list() 196s self.assertEqual(r.status_code, 200) 196s assert isinstance(r.json(), list) 196s self.assertEqual(r.json()[0]['id'], kern1['id']) 196s self.assertEqual(r.json()[0]['name'], kern1['name']) 196s 196s # create another kernel and check that they both are added to the 196s # list of kernels from a GET request 196s kern2 = self.kern_api.start().json() 196s assert isinstance(kern2, dict) 196s r = self.kern_api.list() 196s kernels = r.json() 196s self.assertEqual(r.status_code, 200) 196s assert isinstance(kernels, list) 196s self.assertEqual(len(kernels), 2) 196s 196s # Interrupt a kernel 196s r = self.kern_api.interrupt(kern2['id']) 196s self.assertEqual(r.status_code, 204) 196s 196s # Restart a kernel 196s > r = self.kern_api.restart(kern2['id']) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 196s return self._req('POST', url_path_join(id, 'restart')) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/03a34ebc-d864-49af-9faf-2ac33fb1ea74/restart 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 5, in 196s import re 196s File "/usr/lib/python3.13/re/__init__.py", line 126, in 196s from . import _compiler, _parser 196s File "/usr/lib/python3.13/re/_compiler.py", line 16, in 196s from ._casefix import _EXTRA_CASES 196s File "", line 1360, in _find_and_load 196s File "", line 1322, in _find_and_load_unlocked 196s File "", line 1256, in _find_spec 196s File "", line 1228, in __exit__ 196s KeyboardInterrupt 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpko3gnxj5/runtime/kernel-e5ef60ac-3cb5-4336-a3e5-25c8ad011e0e.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34107 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45213 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: e5ef60ac-3cb5-4336-a3e5-25c8ad011e0e, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.260000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.590000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpko3gnxj5/runtime/kernel-03a34ebc-d864-49af-9faf-2ac33fb1ea74.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38311 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48025 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 03a34ebc-d864-49af-9faf-2ac33fb1ea74, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.360000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.580000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 03a34ebc-d864-49af-9faf-2ac33fb1ea74 196s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/03a34ebc-d864-49af-9faf-2ac33fb1ea74/interrupt (::1) 4.040000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 196s yield maybe_future(km.restart_kernel(kernel_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 196s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 196s await ensure_async(kernel.restart_kernel(now=now)) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 196s await self._async_shutdown_kernel(now=now, restart=True) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/03a34ebc-d864-49af-9faf-2ac33fb1ea74/restart (::1) 4.220000ms referer=None 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.610000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e5ef60ac-3cb5-4336-a3e5-25c8ad011e0e 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e5ef60ac-3cb5-4336-a3e5-25c8ad011e0e 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/e5ef60ac-3cb5-4336-a3e5-25c8ad011e0e (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/e5ef60ac-3cb5-4336-a3e5-25c8ad011e0e', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 196s yielded = ctx_run(next, result) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 196s yield maybe_future(km.shutdown_kernel(kernel_id)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 196s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 196s stopper = ensure_async(km.shutdown_kernel(now, restart)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/e5ef60ac-3cb5-4336-a3e5-25c8ad011e0e (::1) 6.590000ms referer=None 196s ________________________ KernelAPITest.test_no_kernels _________________________ 196s 196s self = 196s 196s def test_no_kernels(self): 196s """Make sure there are no kernels running at the start""" 196s kernels = self.kern_api.list().json() 196s > self.assertEqual(kernels, []) 196s E AssertionError: Lists differ: [{'id': 'e5ef60ac-3cb5-4336-a3e5-25c8ad011[281 chars]: 0}] != [] 196s E 196s E First list contains 2 additional elements. 196s E First extra element 0: 196s E {'id': 'e5ef60ac-3cb5-4336-a3e5-25c8ad011e0e', 'name': 'python3', 'last_activity': '2026-01-30T06:17:53.200031Z', 'execution_state': 'starting', 'connections': 0} 196s E 196s E + [] 196s E - [{'connections': 0, 196s E - 'execution_state': 'starting', 196s E - 'id': 'e5ef60ac-3cb5-4336-a3e5-25c8ad011e0e', 196s E - 'last_activity': '2026-01-30T06:17:53.200031Z', 196s E - 'name': 'python3'}, 196s E - {'connections': 0, 196s E - 'execution_state': 'starting', 196s E - 'id': '03a34ebc-d864-49af-9faf-2ac33fb1ea74', 196s E - 'last_activity': '2026-01-30T06:17:53.226508Z', 196s E - 'name': 'python3'}] 196s 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.640000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e5ef60ac-3cb5-4336-a3e5-25c8ad011e0e 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e5ef60ac-3cb5-4336-a3e5-25c8ad011e0e 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/e5ef60ac-3cb5-4336-a3e5-25c8ad011e0e (::1) 0.680000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 03a34ebc-d864-49af-9faf-2ac33fb1ea74 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 03a34ebc-d864-49af-9faf-2ac33fb1ea74 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/03a34ebc-d864-49af-9faf-2ac33fb1ea74 (::1) 0.730000ms 196s ---------------------------- Captured log teardown ----------------------------- 196s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 196s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 196s _____________________ AsyncKernelAPITest.test_connections ______________________ 196s 196s self = 196s 196s def tearDown(self): 196s for k in self.kern_api.list().json(): 196s > self.kern_api.shutdown(k['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/891c4565-2162-49f5-9fe5-6077384f91fb 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ------------------------------ Captured log setup ------------------------------ 196s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmppqde19fa/config', '/tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmppqde19fa/etc/jupyter'] for config files 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmppqde19fa/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmppqde19fa/config 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmppqde19fa/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmppqde19fa/config 196s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmppqde19fa/notebooks 196s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 196s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 196s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 196s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 196s WARNING NotebookApp:handlers.py:612 Forbidden 196s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.470000ms referer=None 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppqde19fa/runtime/kernel-891c4565-2162-49f5-9fe5-6077384f91fb.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38967 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57019 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 891c4565-2162-49f5-9fe5-6077384f91fb, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.890000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/891c4565-2162-49f5-9fe5-6077384f91fb (::1) 0.610000ms 196s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/891c4565-2162-49f5-9fe5-6077384f91fb/channels 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 196s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 891c4565-2162-49f5-9fe5-6077384f91fb 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34543 196s 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/'}]} 196s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 891c4565-2162-49f5-9fe5-6077384f91fb) to 5.4 (client). 196s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/891c4565-2162-49f5-9fe5-6077384f91fb/channels (::1) 478.860000ms 196s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/891c4565-2162-49f5-9fe5-6077384f91fb/channels 196s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 891c4565-2162-49f5-9fe5-6077384f91fb 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57019 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34543 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38967 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55247 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34543 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38967 196s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 196s Setting websocket_ping_timeout=30000 196s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 891c4565-2162-49f5-9fe5-6077384f91fb 196s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 891c4565-2162-49f5-9fe5-6077384f91fb 196s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 891c4565-2162-49f5-9fe5-6077384f91fb 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/891c4565-2162-49f5-9fe5-6077384f91fb (::1) 0.590000ms 196s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: 891c4565-2162-49f5-9fe5-6077384f91fb 196s DEBUG NotebookApp:handlers.py:197 Nudge: resolving shell future: 891c4565-2162-49f5-9fe5-6077384f91fb 196s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 891c4565-2162-49f5-9fe5-6077384f91fb 196s DEBUG NotebookApp:handlers.py:579 Websocket closed 891c4565-2162-49f5-9fe5-6077384f91fb:c3d768b0-98172264ce8b31965628b8d5 196s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 891c4565-2162-49f5-9fe5-6077384f91fb:c3d768b0-98172264ce8b31965628b8d5 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 891c4565-2162-49f5-9fe5-6077384f91fb 196s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 891c4565-2162-49f5-9fe5-6077384f91fb:iopub 196s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 891c4565-2162-49f5-9fe5-6077384f91fb:iopub 196s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 891c4565-2162-49f5-9fe5-6077384f91fb:iopub 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/891c4565-2162-49f5-9fe5-6077384f91fb (::1) 1.900000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/891c4565-2162-49f5-9fe5-6077384f91fb (::1) 0.690000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.720000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 891c4565-2162-49f5-9fe5-6077384f91fb 196s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for 891c4565-2162-49f5-9fe5-6077384f91fb:c3d768b0-98172264ce8b31965628b8d5 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 891c4565-2162-49f5-9fe5-6077384f91fb 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/891c4565-2162-49f5-9fe5-6077384f91fb (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/891c4565-2162-49f5-9fe5-6077384f91fb', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 196s yield maybe_future(km.shutdown_kernel(kernel_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 196s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 196s raise km.ready.exception() # type: ignore[misc] 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/891c4565-2162-49f5-9fe5-6077384f91fb (::1) 7.480000ms referer=None 196s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 196s 196s self = 196s 196s def tearDown(self): 196s for k in self.kern_api.list().json(): 196s > self.kern_api.shutdown(k['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/065f1013-364e-488c-a23f-7ff59641fed6 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppqde19fa/runtime/kernel-065f1013-364e-488c-a23f-7ff59641fed6.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33295 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37119 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 065f1013-364e-488c-a23f-7ff59641fed6, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.540000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.850000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 891c4565-2162-49f5-9fe5-6077384f91fb 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 891c4565-2162-49f5-9fe5-6077384f91fb 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/891c4565-2162-49f5-9fe5-6077384f91fb (::1) 0.610000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 065f1013-364e-488c-a23f-7ff59641fed6 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 065f1013-364e-488c-a23f-7ff59641fed6 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/065f1013-364e-488c-a23f-7ff59641fed6 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/065f1013-364e-488c-a23f-7ff59641fed6', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 196s yield maybe_future(km.shutdown_kernel(kernel_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 196s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 196s raise km.ready.exception() # type: ignore[misc] 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s --------------------------- Captured stderr teardown --------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 5, in 196s import re 196s File "/usr/lib/python3.13/re/__init__.py", line 126, in 196s from . import _compiler, _parser 196s File "", line 1360, in _find_and_load 196s File "", line 1322, in _find_and_load_unlocked 196s File "", line 1262, in _find_spec 196s File "", line 1556, in find_spec 196s File "", line 1530, in _get_spec 196s File "", line 1633, in find_spec 196s File "", line 1676, in _fill_cache 196s KeyboardInterrupt 196s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 196s 196s self = 196s 196s def test_kernel_handler(self): 196s # GET kernel with given id 196s kid = self.kern_api.start().json()['id'] 196s r = self.kern_api.get(kid) 196s kern1 = r.json() 196s self.assertEqual(r.status_code, 200) 196s assert isinstance(kern1, dict) 196s self.assertIn('id', kern1) 196s self.assertEqual(kern1['id'], kid) 196s 196s # Request a bad kernel id and check that a JSON 196s # message is returned! 196s bad_id = '111-111-111-111-111' 196s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 196s self.kern_api.get(bad_id) 196s 196s # DELETE kernel with id 196s > r = self.kern_api.shutdown(kid) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/76471583-889f-4b4e-84a5-75086dcba188 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppqde19fa/runtime/kernel-76471583-889f-4b4e-84a5-75086dcba188.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39231 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38111 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 76471583-889f-4b4e-84a5-75086dcba188, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.970000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/76471583-889f-4b4e-84a5-75086dcba188 (::1) 0.570000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s 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 196s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 196s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.730000ms referer=None 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 76471583-889f-4b4e-84a5-75086dcba188 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 76471583-889f-4b4e-84a5-75086dcba188 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/76471583-889f-4b4e-84a5-75086dcba188 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/76471583-889f-4b4e-84a5-75086dcba188', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 196s yield maybe_future(km.shutdown_kernel(kernel_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 196s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 196s raise km.ready.exception() # type: ignore[misc] 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/76471583-889f-4b4e-84a5-75086dcba188 (::1) 7.630000ms referer=None 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.750000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 065f1013-364e-488c-a23f-7ff59641fed6 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 065f1013-364e-488c-a23f-7ff59641fed6 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/065f1013-364e-488c-a23f-7ff59641fed6 (::1) 1.800000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 76471583-889f-4b4e-84a5-75086dcba188 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 76471583-889f-4b4e-84a5-75086dcba188 196s --------------------------- Captured stderr teardown --------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 5, in 196s import re 196s File "/usr/lib/python3.13/re/__init__.py", line 126, in 196s from . import _compiler, _parser 196s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 196s from . import _parser 196s File "", line 1360, in _find_and_load 196s File "", line 1331, in _find_and_load_unlocked 196s File "", line 935, in _load_unlocked 196s File "", line 1019, in exec_module 196s File "", line 1152, in get_code 196s File "", line 781, in _compile_bytecode 196s KeyboardInterrupt 196s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 196s 196s self = 196s 196s def test_main_kernel_handler(self): 196s # POST request 196s r = self.kern_api.start() 196s kern1 = r.json() 196s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 196s self.assertEqual(r.status_code, 201) 196s self.assertIsInstance(kern1, dict) 196s 196s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 196s expected_csp = '; '.join([ 196s "frame-ancestors 'self'", 196s 'report-uri ' + report_uri, 196s "default-src 'none'" 196s ]) 196s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 196s 196s # GET request 196s r = self.kern_api.list() 196s self.assertEqual(r.status_code, 200) 196s assert isinstance(r.json(), list) 196s self.assertEqual(r.json()[0]['id'], kern1['id']) 196s self.assertEqual(r.json()[0]['name'], kern1['name']) 196s 196s # create another kernel and check that they both are added to the 196s # list of kernels from a GET request 196s kern2 = self.kern_api.start().json() 196s assert isinstance(kern2, dict) 196s r = self.kern_api.list() 196s kernels = r.json() 196s self.assertEqual(r.status_code, 200) 196s assert isinstance(kernels, list) 196s self.assertEqual(len(kernels), 2) 196s 196s # Interrupt a kernel 196s r = self.kern_api.interrupt(kern2['id']) 196s self.assertEqual(r.status_code, 204) 196s 196s # Restart a kernel 196s > r = self.kern_api.restart(kern2['id']) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 196s return self._req('POST', url_path_join(id, 'restart')) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/0dba31e4-4164-412d-8e90-7557d8588c46/restart 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 3, in 196s import contextlib 196s File "/usr/lib/python3.13/contextlib.py", line 17, in 196s class AbstractContextManager(abc.ABC): 196s File "/usr/lib/python3.13/contextlib.py", line 21, in AbstractContextManager 196s __class_getitem__ = classmethod(GenericAlias) 196s KeyboardInterrupt 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 196s from ipykernel import kernelapp as app 196s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 196s from .connect import * # noqa: F403 196s ^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 196s import jupyter_client 196s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 196s from .asynchronous import AsyncKernelClient 196s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 196s from .client import AsyncKernelClient # noqa 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 196s import zmq.asyncio 196s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 196s import asyncio 196s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 196s from .base_events import * 196s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 196s import ssl 196s File "/usr/lib/python3.13/ssl.py", line 185, in 196s @_simple_enum(_IntEnum) 196s ~~~~~~~~~~~~^^^^^^^^^^ 196s File "/usr/lib/python3.13/enum.py", line 1883, in convert_class 196s member = new_member(enum_class, *value) 196s KeyboardInterrupt 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppqde19fa/runtime/kernel-78de27cf-1e17-4c58-8824-654af6c39e71.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50975 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53711 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 78de27cf-1e17-4c58-8824-654af6c39e71, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.140000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppqde19fa/runtime/kernel-0dba31e4-4164-412d-8e90-7557d8588c46.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39587 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44983 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0dba31e4-4164-412d-8e90-7557d8588c46, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.740000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.780000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 0dba31e4-4164-412d-8e90-7557d8588c46 196s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/0dba31e4-4164-412d-8e90-7557d8588c46/interrupt (::1) 4.770000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 196s yield maybe_future(km.restart_kernel(kernel_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 196s result = coro.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 196s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 196s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 196s yield self # This tells Task to wait for completion. 196s ^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 196s await ensure_async(kernel.restart_kernel(now=now)) 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 196s await self._async_shutdown_kernel(now=now, restart=True) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/0dba31e4-4164-412d-8e90-7557d8588c46/restart (::1) 8.110000ms referer=None 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.560000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 78de27cf-1e17-4c58-8824-654af6c39e71 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 78de27cf-1e17-4c58-8824-654af6c39e71 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/78de27cf-1e17-4c58-8824-654af6c39e71 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/78de27cf-1e17-4c58-8824-654af6c39e71', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 196s yield maybe_future(km.shutdown_kernel(kernel_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 196s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 196s raise km.ready.exception() # type: ignore[misc] 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/78de27cf-1e17-4c58-8824-654af6c39e71 (::1) 6.300000ms referer=None 196s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 196s 196s self = 196s 196s def test_no_kernels(self): 196s """Make sure there are no kernels running at the start""" 196s kernels = self.kern_api.list().json() 196s > self.assertEqual(kernels, []) 196s E AssertionError: Lists differ: [{'id': '78de27cf-1e17-4c58-8824-654af6c39[281 chars]: 0}] != [] 196s E 196s E First list contains 2 additional elements. 196s E First extra element 0: 196s E {'id': '78de27cf-1e17-4c58-8824-654af6c39e71', 'name': 'python3', 'last_activity': '2026-01-30T06:17:54.072892Z', 'execution_state': 'starting', 'connections': 0} 196s E 196s E + [] 196s E - [{'connections': 0, 196s E - 'execution_state': 'starting', 196s E - 'id': '78de27cf-1e17-4c58-8824-654af6c39e71', 196s E - 'last_activity': '2026-01-30T06:17:54.072892Z', 196s E - 'name': 'python3'}, 196s E - {'connections': 0, 196s E - 'execution_state': 'starting', 196s E - 'id': '0dba31e4-4164-412d-8e90-7557d8588c46', 196s E - 'last_activity': '2026-01-30T06:17:54.092548Z', 196s E - 'name': 'python3'}] 196s 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.070000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 78de27cf-1e17-4c58-8824-654af6c39e71 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 78de27cf-1e17-4c58-8824-654af6c39e71 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/78de27cf-1e17-4c58-8824-654af6c39e71 (::1) 0.580000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0dba31e4-4164-412d-8e90-7557d8588c46 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0dba31e4-4164-412d-8e90-7557d8588c46 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/0dba31e4-4164-412d-8e90-7557d8588c46 (::1) 0.670000ms 196s ---------------------------- Captured log teardown ----------------------------- 196s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 78de27cf-1e17-4c58-8824-654af6c39e71 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 065f1013-364e-488c-a23f-7ff59641fed6 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 76471583-889f-4b4e-84a5-75086dcba188 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 891c4565-2162-49f5-9fe5-6077384f91fb 196s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 196s __________________________ SessionAPITest.test_create __________________________ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f0a7ae0b-62c4-486e-ab44-6e4a80a18cfe 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ------------------------------ Captured log setup ------------------------------ 196s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpo0hcu2xw/config', '/tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpo0hcu2xw/etc/jupyter'] for config files 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpo0hcu2xw/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpo0hcu2xw/config 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpo0hcu2xw/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpo0hcu2xw/config 196s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpo0hcu2xw/notebooks 196s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 196s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 196s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 196s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 196s WARNING NotebookApp:handlers.py:612 Forbidden 196s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.940000ms referer=None 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.880000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpo0hcu2xw/runtime/kernel-9804fe27-0f95-47f5-8b39-7d134e54c4f6.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44371 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39897 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9804fe27-0f95-47f5-8b39-7d134e54c4f6, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpo0hcu2xw/notebooks/foo'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.190000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/f0a7ae0b-62c4-486e-ab44-6e4a80a18cfe (::1) 0.560000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.590000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9804fe27-0f95-47f5-8b39-7d134e54c4f6 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9804fe27-0f95-47f5-8b39-7d134e54c4f6 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f0a7ae0b-62c4-486e-ab44-6e4a80a18cfe (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f0a7ae0b-62c4-486e-ab44-6e4a80a18cfe', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 196s yielded = self.gen.send(value) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 196s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 196s stopper = ensure_async(km.shutdown_kernel(now, restart)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s --------------------------- Captured stderr teardown --------------------------- 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 196s from ._local import * 196s File "/usr/lib/python3.13/pathlib/_local.py", line 16, in 196s import grp 196s File "", line 1360, in _find_and_load 196s File "", line 1331, in _find_and_load_unlocked 196s File "", line 946, in _load_unlocked 196s KeyboardInterrupt 196s __________________ SessionAPITest.test_create_console_session __________________ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ddfa7132-a4c9-4f17-af3a-49b44be2ca25 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpo0hcu2xw/runtime/kernel-326a3f86-112b-4d94-8894-8241246c4d56.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50597 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54173 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 326a3f86-112b-4d94-8894-8241246c4d56, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpo0hcu2xw/notebooks/foo'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.720000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9804fe27-0f95-47f5-8b39-7d134e54c4f6 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9804fe27-0f95-47f5-8b39-7d134e54c4f6 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/f0a7ae0b-62c4-486e-ab44-6e4a80a18cfe (::1) 0.790000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 326a3f86-112b-4d94-8894-8241246c4d56 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 326a3f86-112b-4d94-8894-8241246c4d56 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ddfa7132-a4c9-4f17-af3a-49b44be2ca25 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ddfa7132-a4c9-4f17-af3a-49b44be2ca25', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 196s yielded = self.gen.send(value) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 196s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 196s stopper = ensure_async(km.shutdown_kernel(now, restart)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s --------------------------- Captured stderr teardown --------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 5, in 196s import re 196s File "/usr/lib/python3.13/re/__init__.py", line 126, in 196s from . import _compiler, _parser 196s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 196s from . import _parser 196s File "", line 1360, in _find_and_load 196s File "", line 1331, in _find_and_load_unlocked 196s File "", line 935, in _load_unlocked 196s File "", line 1019, in exec_module 196s File "", line 1124, in get_code 196s File "", line 719, in _classify_pyc 196s File "", line 92, in _unpack_uint32 196s KeyboardInterrupt 196s ____________________ SessionAPITest.test_create_deprecated _____________________ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b68d0b06-bf73-453a-8ab6-cf6bf57fcaa7 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpo0hcu2xw/runtime/kernel-4cd2bca6-563d-46d4-92bc-2ba3cc6b7259.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59165 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56377 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4cd2bca6-563d-46d4-92bc-2ba3cc6b7259, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpo0hcu2xw/notebooks/foo'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.960000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.840000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 326a3f86-112b-4d94-8894-8241246c4d56 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 326a3f86-112b-4d94-8894-8241246c4d56 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/ddfa7132-a4c9-4f17-af3a-49b44be2ca25 (::1) 2.900000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4cd2bca6-563d-46d4-92bc-2ba3cc6b7259 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4cd2bca6-563d-46d4-92bc-2ba3cc6b7259 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b68d0b06-bf73-453a-8ab6-cf6bf57fcaa7 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b68d0b06-bf73-453a-8ab6-cf6bf57fcaa7', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 196s yielded = self.gen.send(value) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 196s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 196s stopper = ensure_async(km.shutdown_kernel(now, restart)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b68d0b06-bf73-453a-8ab6-cf6bf57fcaa7 (::1) 7.150000ms referer=None 196s --------------------------- Captured stderr teardown --------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 5, in 196s import re 196s File "/usr/lib/python3.13/re/__init__.py", line 125, in 196s import enum 196s File "/usr/lib/python3.13/enum.py", line 1645, in 196s class IntFlag(int, ReprEnum, Flag, boundary=KEEP): 196s ...<2 lines>... 196s """ 196s File "/usr/lib/python3.13/enum.py", line 568, in __new__ 196s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 196s KeyboardInterrupt 196s ___________________ SessionAPITest.test_create_file_session ____________________ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d8770534-9acb-4cef-9775-2967500cc7a1 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpo0hcu2xw/runtime/kernel-430b8582-5d7e-4fe3-b499-e7960d236745.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36883 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35783 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 430b8582-5d7e-4fe3-b499-e7960d236745, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpo0hcu2xw/notebooks/foo'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.390000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.680000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4cd2bca6-563d-46d4-92bc-2ba3cc6b7259 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4cd2bca6-563d-46d4-92bc-2ba3cc6b7259 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/b68d0b06-bf73-453a-8ab6-cf6bf57fcaa7 (::1) 0.750000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 430b8582-5d7e-4fe3-b499-e7960d236745 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 430b8582-5d7e-4fe3-b499-e7960d236745 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d8770534-9acb-4cef-9775-2967500cc7a1 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d8770534-9acb-4cef-9775-2967500cc7a1', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 196s yielded = self.gen.send(value) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 196s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 196s stopper = ensure_async(km.shutdown_kernel(now, restart)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s --------------------------- Captured stderr teardown --------------------------- 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 5, in 196s import re 196s File "/usr/lib/python3.13/re/__init__.py", line 126, in 196s from . import _compiler, _parser 196s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 196s from . import _parser 196s File "/usr/lib/python3.13/re/_parser.py", line 15, in 196s from ._constants import * 196s File "/usr/lib/python3.13/re/_constants.py", line 130, in 196s ATCODES = _makecodes( 196s 'AT_BEGINNING', 'AT_BEGINNING_LINE', 'AT_BEGINNING_STRING', 196s ...<5 lines>... 196s 'AT_UNI_BOUNDARY', 'AT_UNI_NON_BOUNDARY', 196s ) 196s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 196s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 196s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 196s KeyboardInterrupt 196s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 196s 196s self = 196s 196s def test_create_with_kernel_id(self): 196s # create a new kernel 196s r = self.request('POST', 'api/kernels') 196s r.raise_for_status() 196s kernel = r.json() 196s 196s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 196s self.assertEqual(resp.status_code, 201) 196s newsession = resp.json() 196s self.assertIn('id', newsession) 196s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 196s self.assertEqual(newsession['kernel']['id'], kernel['id']) 196s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 196s 196s sessions = self.sess_api.list().json() 196s > self.assertEqual(sessions, [newsession]) 196s E AssertionError: Lists differ: [{'id': 'd8770534-9acb-4cef-9775-2967500cc7a1', 'p[553 chars]ne}}] != [{'id': 'a5566cb7-32d7-4e91-bcb5-fffb2c9dab2b', 'p[279 chars]ne}}] 196s E 196s E First differing element 0: 196s E {'id': 'd8770534-9acb-4cef-9775-2967500cc7a1', 'p[218 chars]: 0}} 196s E {'id': 'a5566cb7-32d7-4e91-bcb5-fffb2c9dab2b', 'p[278 chars]one}} 196s E 196s E First list contains 1 additional elements. 196s E First extra element 1: 196s E {'id': 'a5566cb7-32d7-4e91-bcb5-fffb2c9dab2b', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'a8258f66-ff37-4053-8e63-ae83c19196f2', 'name': 'python3', 'last_activity': '2026-01-30T06:17:54.539593Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 196s E 196s E Diff is 830 characters long. Set self.maxDiff to None to see it. 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 196s from ipykernel import kernelapp as app 196s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 196s from .connect import * # noqa: F403 196s ^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 196s import json 196s File "/usr/lib/python3.13/json/__init__.py", line 107, in 196s from .encoder import JSONEncoder 196s File "", line 1360, in _find_and_load 196s File "", line 1331, in _find_and_load_unlocked 196s File "", line 935, in _load_unlocked 196s File "", line 1019, in exec_module 196s File "", line 1152, in get_code 196s File "", line 781, in _compile_bytecode 196s KeyboardInterrupt 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpo0hcu2xw/runtime/kernel-a8258f66-ff37-4053-8e63-ae83c19196f2.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42329 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47673 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: a8258f66-ff37-4053-8e63-ae83c19196f2, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.250000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.660000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 430b8582-5d7e-4fe3-b499-e7960d236745 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 430b8582-5d7e-4fe3-b499-e7960d236745 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d8770534-9acb-4cef-9775-2967500cc7a1 (::1) 0.760000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a8258f66-ff37-4053-8e63-ae83c19196f2 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a8258f66-ff37-4053-8e63-ae83c19196f2 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a5566cb7-32d7-4e91-bcb5-fffb2c9dab2b (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a5566cb7-32d7-4e91-bcb5-fffb2c9dab2b', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 196s yielded = self.gen.send(value) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 196s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 196s stopper = ensure_async(km.shutdown_kernel(now, restart)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a5566cb7-32d7-4e91-bcb5-fffb2c9dab2b (::1) 7.010000ms referer=None 196s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a5566cb7-32d7-4e91-bcb5-fffb2c9dab2b 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.950000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpo0hcu2xw/runtime/kernel-ac7cb6ce-0442-4edc-9565-e7b0bfee084f.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44497 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42453 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: ac7cb6ce-0442-4edc-9565-e7b0bfee084f, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.220000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a8258f66-ff37-4053-8e63-ae83c19196f2 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a8258f66-ff37-4053-8e63-ae83c19196f2 196s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/a5566cb7-32d7-4e91-bcb5-fffb2c9dab2b (::1) 1.010000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.450000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.710000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ac7cb6ce-0442-4edc-9565-e7b0bfee084f 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ac7cb6ce-0442-4edc-9565-e7b0bfee084f 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a5566cb7-32d7-4e91-bcb5-fffb2c9dab2b (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a5566cb7-32d7-4e91-bcb5-fffb2c9dab2b', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 196s yielded = self.gen.send(value) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 196s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 196s stopper = ensure_async(km.shutdown_kernel(now, restart)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s --------------------------- Captured stderr teardown --------------------------- 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 196s from ._local import * 196s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 196s class PureWindowsPath(PurePath): 196s ...<7 lines>... 196s __slots__ = () 196s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 196s import ntpath 196s File "", line 1357, in _find_and_load 196s File "", line 417, in __enter__ 196s File "", line 443, in _get_module_lock 196s File "", line 254, in __init__ 196s KeyboardInterrupt 196s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a5566cb7-32d7-4e91-bcb5-fffb2c9dab2b 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.790000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpo0hcu2xw/runtime/kernel-3f5bbf7b-8112-43c1-9814-f71569b01a2f.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43923 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41905 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3f5bbf7b-8112-43c1-9814-f71569b01a2f, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpo0hcu2xw/notebooks/foo'} 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ac7cb6ce-0442-4edc-9565-e7b0bfee084f 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ac7cb6ce-0442-4edc-9565-e7b0bfee084f 196s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/a5566cb7-32d7-4e91-bcb5-fffb2c9dab2b (::1) 16.050000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.530000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3f5bbf7b-8112-43c1-9814-f71569b01a2f 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3f5bbf7b-8112-43c1-9814-f71569b01a2f 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a5566cb7-32d7-4e91-bcb5-fffb2c9dab2b (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a5566cb7-32d7-4e91-bcb5-fffb2c9dab2b', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 196s yielded = self.gen.send(value) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 196s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 196s stopper = ensure_async(km.shutdown_kernel(now, restart)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s --------------------------- Captured stderr teardown --------------------------- 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 5, in 196s import re 196s File "/usr/lib/python3.13/re/__init__.py", line 126, in 196s from . import _compiler, _parser 196s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 196s from . import _parser 196s File "", line 1360, in _find_and_load 196s File "", line 1331, in _find_and_load_unlocked 196s File "", line 935, in _load_unlocked 196s File "", line 1019, in exec_module 196s File "", line 1152, in get_code 196s File "", line 781, in _compile_bytecode 196s KeyboardInterrupt 196s _______________________ SessionAPITest.test_modify_type ________________________ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7b6abe82-e74f-4db6-b596-48b9b21534ec 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpo0hcu2xw/runtime/kernel-a0966af3-aa16-4656-a846-237c86f6348d.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33059 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54635 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: a0966af3-aa16-4656-a846-237c86f6348d, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpo0hcu2xw/notebooks/foo'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.650000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/7b6abe82-e74f-4db6-b596-48b9b21534ec (::1) 1.990000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.650000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a0966af3-aa16-4656-a846-237c86f6348d 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a0966af3-aa16-4656-a846-237c86f6348d 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7b6abe82-e74f-4db6-b596-48b9b21534ec (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7b6abe82-e74f-4db6-b596-48b9b21534ec', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 196s yielded = self.gen.send(value) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 196s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 196s stopper = ensure_async(km.shutdown_kernel(now, restart)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 196s gc.collect() 196s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 196s 196s --------------------------- Captured stderr teardown --------------------------- 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 196s from ipykernel import kernelapp as app 196s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 196s from .connect import * # noqa: F403 196s ^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 196s from subprocess import PIPE, Popen 196s File "/usr/lib/python3.13/subprocess.py", line 51, in 196s import threading 196s File "", line 1360, in _find_and_load 196s File "", line 1331, in _find_and_load_unlocked 196s File "", line 935, in _load_unlocked 196s File "", line 1019, in exec_module 196s File "", line 1152, in get_code 196s File "", line 781, in _compile_bytecode 196s KeyboardInterrupt 196s ---------------------------- Captured log teardown ----------------------------- 196s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a0966af3-aa16-4656-a846-237c86f6348d 196s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 196s _______________________ AsyncSessionAPITest.test_create ________________________ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/eae17f2b-43b5-442e-a9d0-24c15a6d601d 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ------------------------------ Captured log setup ------------------------------ 196s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpe1un6ju8/config', '/tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpe1un6ju8/etc/jupyter'] for config files 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpe1un6ju8/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpe1un6ju8/config 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpe1un6ju8/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpe1un6ju8/config 196s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpe1un6ju8/notebooks 196s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 196s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 196s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 196s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 196s WARNING NotebookApp:handlers.py:612 Forbidden 196s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.430000ms referer=None 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.750000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe1un6ju8/runtime/kernel-bf092a4c-b2ab-46bb-bfb0-58e263cfb7f2.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47815 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56603 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: bf092a4c-b2ab-46bb-bfb0-58e263cfb7f2, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpe1un6ju8/notebooks/foo'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.460000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/eae17f2b-43b5-442e-a9d0-24c15a6d601d (::1) 0.570000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.540000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bf092a4c-b2ab-46bb-bfb0-58e263cfb7f2 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bf092a4c-b2ab-46bb-bfb0-58e263cfb7f2 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/eae17f2b-43b5-442e-a9d0-24c15a6d601d (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/eae17f2b-43b5-442e-a9d0-24c15a6d601d', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 196s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 196s raise km.ready.exception() # type: ignore[misc] 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/eae17f2b-43b5-442e-a9d0-24c15a6d601d (::1) 6.800000ms referer=None 196s --------------------------- Captured stderr teardown --------------------------- 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 196s from ipykernel import kernelapp as app 196s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 196s from .connect import * # noqa: F403 196s ^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 196s from subprocess import PIPE, Popen 196s File "/usr/lib/python3.13/subprocess.py", line 46, in 196s import locale 196s File "/usr/lib/python3.13/locale.py", line 180, in 196s _percent_re = re.compile(r'%(?:\((?P.*?)\))?' 196s r'(?P[-#0-9 +*.hlL]*?)[eEfFgGdiouxXcrs%]') 196s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 196s return _compile(pattern, flags) 196s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 196s p = _compiler.compile(pattern, flags) 196s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 196s code = _code(p, flags) 196s File "/usr/lib/python3.13/re/_compiler.py", line 585, in _code 196s _compile(code, p.data, flags) 196s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3.13/re/_compiler.py", line 117, in _compile 196s _compile(code, av[2], flags) 196s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3.13/re/_compiler.py", line 126, in _compile 196s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 196s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3.13/re/_compiler.py", line 109, in _compile 196s _compile(code, av[2], flags) 196s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3.13/re/_compiler.py", line 102, in _compile 196s emit(ANY) 196s ~~~~^^^^^ 196s KeyboardInterrupt 196s _______________ AsyncSessionAPITest.test_create_console_session ________________ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e9e49c33-ca80-4351-b837-718ea5731abf 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe1un6ju8/runtime/kernel-ddc2afe3-158d-416f-b8a1-46ac9dfa64b4.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42887 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58435 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: ddc2afe3-158d-416f-b8a1-46ac9dfa64b4, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpe1un6ju8/notebooks/foo'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.320000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.590000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bf092a4c-b2ab-46bb-bfb0-58e263cfb7f2 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bf092a4c-b2ab-46bb-bfb0-58e263cfb7f2 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/eae17f2b-43b5-442e-a9d0-24c15a6d601d (::1) 1.920000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ddc2afe3-158d-416f-b8a1-46ac9dfa64b4 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ddc2afe3-158d-416f-b8a1-46ac9dfa64b4 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e9e49c33-ca80-4351-b837-718ea5731abf (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e9e49c33-ca80-4351-b837-718ea5731abf', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 196s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 196s raise km.ready.exception() # type: ignore[misc] 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/e9e49c33-ca80-4351-b837-718ea5731abf (::1) 7.790000ms referer=None 196s --------------------------- Captured stderr teardown --------------------------- 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 5, in 196s import re 196s File "/usr/lib/python3.13/re/__init__.py", line 126, in 196s from . import _compiler, _parser 196s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 196s from . import _parser 196s File "/usr/lib/python3.13/re/_parser.py", line 15, in 196s from ._constants import * 196s File "", line 1360, in _find_and_load 196s File "", line 1331, in _find_and_load_unlocked 196s File "", line 935, in _load_unlocked 196s File "", line 1019, in exec_module 196s File "", line 1152, in get_code 196s File "", line 781, in _compile_bytecode 196s KeyboardInterrupt 196s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/94805e5f-10f6-47a9-99d7-962713e9622e 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe1un6ju8/runtime/kernel-6d7bea67-e152-4270-ac6a-92730c411778.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34675 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37353 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6d7bea67-e152-4270-ac6a-92730c411778, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpe1un6ju8/notebooks/foo'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.460000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.630000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ddc2afe3-158d-416f-b8a1-46ac9dfa64b4 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ddc2afe3-158d-416f-b8a1-46ac9dfa64b4 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e9e49c33-ca80-4351-b837-718ea5731abf (::1) 0.700000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6d7bea67-e152-4270-ac6a-92730c411778 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6d7bea67-e152-4270-ac6a-92730c411778 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/94805e5f-10f6-47a9-99d7-962713e9622e (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/94805e5f-10f6-47a9-99d7-962713e9622e', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 196s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 196s raise km.ready.exception() # type: ignore[misc] 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/94805e5f-10f6-47a9-99d7-962713e9622e (::1) 6.740000ms referer=None 196s --------------------------- Captured stderr teardown --------------------------- 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 5, in 196s import re 196s File "/usr/lib/python3.13/re/__init__.py", line 126, in 196s from . import _compiler, _parser 196s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 196s from . import _parser 196s File "/usr/lib/python3.13/re/_parser.py", line 15, in 196s from ._constants import * 196s File "/usr/lib/python3.13/re/_constants.py", line 141, in 196s CHCODES = _makecodes( 196s 'CATEGORY_DIGIT', 'CATEGORY_NOT_DIGIT', 196s ...<9 lines>... 196s 'CATEGORY_UNI_LINEBREAK', 'CATEGORY_UNI_NOT_LINEBREAK', 196s ) 196s File "/usr/lib/python3.13/re/_constants.py", line 74, in _makecodes 196s globals().update({item.name: item for item in items}) 196s ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s KeyboardInterrupt 196s _________________ AsyncSessionAPITest.test_create_file_session _________________ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/564da456-98bc-4e86-94ba-1628bf852d1e 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe1un6ju8/runtime/kernel-6b6579bf-093b-4007-aa8d-d235a8ff3beb.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39277 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47345 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6b6579bf-093b-4007-aa8d-d235a8ff3beb, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpe1un6ju8/notebooks/foo'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.450000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.830000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6d7bea67-e152-4270-ac6a-92730c411778 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6d7bea67-e152-4270-ac6a-92730c411778 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/94805e5f-10f6-47a9-99d7-962713e9622e (::1) 1.790000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6b6579bf-093b-4007-aa8d-d235a8ff3beb 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6b6579bf-093b-4007-aa8d-d235a8ff3beb 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/564da456-98bc-4e86-94ba-1628bf852d1e (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/564da456-98bc-4e86-94ba-1628bf852d1e', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 196s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 196s raise km.ready.exception() # type: ignore[misc] 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/564da456-98bc-4e86-94ba-1628bf852d1e (::1) 6.650000ms referer=None 196s --------------------------- Captured stderr teardown --------------------------- 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 5, in 196s import re 196s File "/usr/lib/python3.13/re/__init__.py", line 126, in 196s from . import _compiler, _parser 196s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 196s from . import _parser 196s File "/usr/lib/python3.13/re/_parser.py", line 15, in 196s from ._constants import * 196s File "/usr/lib/python3.13/re/_constants.py", line 130, in 196s ATCODES = _makecodes( 196s 'AT_BEGINNING', 'AT_BEGINNING_LINE', 'AT_BEGINNING_STRING', 196s ...<5 lines>... 196s 'AT_UNI_BOUNDARY', 'AT_UNI_NON_BOUNDARY', 196s ) 196s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 196s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 196s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 196s KeyboardInterrupt 196s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 196s 196s self = 196s 196s def test_create_with_kernel_id(self): 196s # create a new kernel 196s r = self.request('POST', 'api/kernels') 196s r.raise_for_status() 196s kernel = r.json() 196s 196s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 196s self.assertEqual(resp.status_code, 201) 196s newsession = resp.json() 196s self.assertIn('id', newsession) 196s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 196s self.assertEqual(newsession['kernel']['id'], kernel['id']) 196s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 196s 196s sessions = self.sess_api.list().json() 196s > self.assertEqual(sessions, [newsession]) 196s E AssertionError: Lists differ: [{'id': '564da456-98bc-4e86-94ba-1628bf852d1e', 'p[553 chars]ne}}] != [{'id': '04df52a8-6c3a-4f77-b75c-49516c874f61', 'p[279 chars]ne}}] 196s E 196s E First differing element 0: 196s E {'id': '564da456-98bc-4e86-94ba-1628bf852d1e', 'p[218 chars]: 0}} 196s E {'id': '04df52a8-6c3a-4f77-b75c-49516c874f61', 'p[278 chars]one}} 196s E 196s E First list contains 1 additional elements. 196s E First extra element 1: 196s E {'id': '04df52a8-6c3a-4f77-b75c-49516c874f61', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '14b32995-85a2-4370-b0af-3ef7a2fc27c8', 'name': 'python3', 'last_activity': '2026-01-30T06:17:55.178150Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 196s E 196s E Diff is 830 characters long. Set self.maxDiff to None to see it. 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe1un6ju8/runtime/kernel-14b32995-85a2-4370-b0af-3ef7a2fc27c8.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60037 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33645 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 14b32995-85a2-4370-b0af-3ef7a2fc27c8, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.110000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.770000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.690000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.630000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6b6579bf-093b-4007-aa8d-d235a8ff3beb 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6b6579bf-093b-4007-aa8d-d235a8ff3beb 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/564da456-98bc-4e86-94ba-1628bf852d1e (::1) 0.690000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 14b32995-85a2-4370-b0af-3ef7a2fc27c8 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 14b32995-85a2-4370-b0af-3ef7a2fc27c8 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/04df52a8-6c3a-4f77-b75c-49516c874f61 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/04df52a8-6c3a-4f77-b75c-49516c874f61', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 196s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 196s raise km.ready.exception() # type: ignore[misc] 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/04df52a8-6c3a-4f77-b75c-49516c874f61 (::1) 6.830000ms referer=None 196s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/04df52a8-6c3a-4f77-b75c-49516c874f61 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.890000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe1un6ju8/runtime/kernel-7f3f6891-6b6e-4570-83a1-774d16a8a033.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53783 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50053 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7f3f6891-6b6e-4570-83a1-774d16a8a033, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.770000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 14b32995-85a2-4370-b0af-3ef7a2fc27c8 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 14b32995-85a2-4370-b0af-3ef7a2fc27c8 196s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/04df52a8-6c3a-4f77-b75c-49516c874f61 (::1) 1.010000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.500000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7f3f6891-6b6e-4570-83a1-774d16a8a033 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7f3f6891-6b6e-4570-83a1-774d16a8a033 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/04df52a8-6c3a-4f77-b75c-49516c874f61 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/04df52a8-6c3a-4f77-b75c-49516c874f61', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 196s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 196s raise km.ready.exception() # type: ignore[misc] 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s --------------------------- Captured stderr teardown --------------------------- 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 196s from ._local import * 196s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 196s class PureWindowsPath(PurePath): 196s ...<7 lines>... 196s __slots__ = () 196s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 196s import ntpath 196s File "", line 1360, in _find_and_load 196s File "", line 1331, in _find_and_load_unlocked 196s File "", line 935, in _load_unlocked 196s File "", line 1019, in exec_module 196s File "", line 1152, in get_code 196s File "", line 781, in _compile_bytecode 196s KeyboardInterrupt 196s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/04df52a8-6c3a-4f77-b75c-49516c874f61 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.740000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe1un6ju8/runtime/kernel-c6f0dbeb-5f10-4250-bc9d-c1f0cecf8687.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57711 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52861 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: c6f0dbeb-5f10-4250-bc9d-c1f0cecf8687, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpe1un6ju8/notebooks/foo'} 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7f3f6891-6b6e-4570-83a1-774d16a8a033 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7f3f6891-6b6e-4570-83a1-774d16a8a033 196s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/04df52a8-6c3a-4f77-b75c-49516c874f61 (::1) 14.400000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.700000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c6f0dbeb-5f10-4250-bc9d-c1f0cecf8687 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c6f0dbeb-5f10-4250-bc9d-c1f0cecf8687 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/04df52a8-6c3a-4f77-b75c-49516c874f61 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/04df52a8-6c3a-4f77-b75c-49516c874f61', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 196s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 196s raise km.ready.exception() # type: ignore[misc] 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s --------------------------- Captured stderr teardown --------------------------- 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 5, in 196s import re 196s File "/usr/lib/python3.13/re/__init__.py", line 126, in 196s from . import _compiler, _parser 196s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 196s from . import _parser 196s File "/usr/lib/python3.13/re/_parser.py", line 15, in 196s from ._constants import * 196s File "", line 1360, in _find_and_load 196s File "", line 1331, in _find_and_load_unlocked 196s File "", line 935, in _load_unlocked 196s File "", line 1019, in exec_module 196s File "", line 1152, in get_code 196s File "", line 781, in _compile_bytecode 196s KeyboardInterrupt 196s _____________________ AsyncSessionAPITest.test_modify_type _____________________ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/720c126f-fa15-495e-aa73-72e556a91b2f 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe1un6ju8/runtime/kernel-9af068d0-f796-4b38-bbcb-d728010541ac.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52527 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33241 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9af068d0-f796-4b38-bbcb-d728010541ac, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpe1un6ju8/notebooks/foo'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.980000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/720c126f-fa15-495e-aa73-72e556a91b2f (::1) 0.750000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.500000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9af068d0-f796-4b38-bbcb-d728010541ac 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9af068d0-f796-4b38-bbcb-d728010541ac 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/720c126f-fa15-495e-aa73-72e556a91b2f (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/720c126f-fa15-495e-aa73-72e556a91b2f', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 196s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 196s raise km.ready.exception() # type: ignore[misc] 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s --------------------------- Captured stderr teardown --------------------------- 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 5, in 196s import re 196s File "/usr/lib/python3.13/re/__init__.py", line 126, in 196s from . import _compiler, _parser 196s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 196s from . import _parser 196s File "/usr/lib/python3.13/re/_parser.py", line 15, in 196s from ._constants import * 196s File "/usr/lib/python3.13/re/_constants.py", line 130, in 196s ATCODES = _makecodes( 196s 'AT_BEGINNING', 'AT_BEGINNING_LINE', 'AT_BEGINNING_STRING', 196s ...<5 lines>... 196s 'AT_UNI_BOUNDARY', 'AT_UNI_NON_BOUNDARY', 196s ) 196s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 196s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 196s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 196s KeyboardInterrupt 196s ---------------------------- Captured log teardown ----------------------------- 196s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6b6579bf-093b-4007-aa8d-d235a8ff3beb 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ddc2afe3-158d-416f-b8a1-46ac9dfa64b4 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c6f0dbeb-5f10-4250-bc9d-c1f0cecf8687 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bf092a4c-b2ab-46bb-bfb0-58e263cfb7f2 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7f3f6891-6b6e-4570-83a1-774d16a8a033 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 14b32995-85a2-4370-b0af-3ef7a2fc27c8 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6d7bea67-e152-4270-ac6a-92730c411778 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9af068d0-f796-4b38-bbcb-d728010541ac 196s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 196s =============================== warnings summary =============================== 196s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 196s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 196s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 196s return LooseVersion(v) >= LooseVersion(check) 196s 196s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 196s services/kernels/tests/test_kernels_api.py: 65 warnings 196s services/sessions/tests/test_sessions_api.py: 106 warnings 196s /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). 196s dt = unaware(*args, **kwargs) 196s 196s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 196s /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 196s pytestmark = pytest.mark.integration_tests 196s 196s services/kernels/tests/test_kernels_api.py: 6 warnings 196s services/sessions/tests/test_sessions_api.py: 6 warnings 196s /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 196s policy = events.get_event_loop_policy() 196s 196s services/kernels/tests/test_kernels_api.py: 24 warnings 196s services/sessions/tests/test_sessions_api.py: 19 warnings 196s /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 196s loop = events.get_event_loop_policy().get_event_loop() 196s 196s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 196s loop.make_current() 196s 196s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 196s =========================== short test summary info ============================ 196s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 196s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 196s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 196s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 196s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 196s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 196s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 196s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 196s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 196s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 196s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 196s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 196s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 196s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 196s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 196s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 196s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_type 196s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 196s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 196s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 196s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 196s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 196s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 196s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 196s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_type 196s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 196s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 196s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 196s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 196s ===== 25 failed, 2 passed, 303 deselected, 231 warnings, 4 errors in 6.61s ===== 197s *** END OF RUN 2: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 197s *** 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 201s ============================= test session starts ============================== 201s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 201s rootdir: /tmp/autopkgtest.XnQU0x/autopkgtest_tmp 201s plugins: typeguard-4.4.4 201s collected 330 items / 305 deselected / 25 selected 201s run-last-failure: rerun previous 25 failures 201s 202s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 36%] 204s services/sessions/tests/test_sessions_api.py FFFFFEFF.FFFFFEFF. [100%] 204s 204s ==================================== ERRORS ==================================== 204s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 204s 204s self = 204s 204s def tearDown(self): 204s for k in self.kern_api.list().json(): 204s > self.kern_api.shutdown(k['id']) 204s 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 204s return self._req('DELETE', id) 204s ^^^^^^^^^^^^^^^^^^^^^^^ 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 204s response.raise_for_status() 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s 204s self = 204s 204s def raise_for_status(self): 204s """Raises :class:`HTTPError`, if one occurred.""" 204s 204s http_error_msg = "" 204s if isinstance(self.reason, bytes): 204s # We attempt to decode utf-8 first because some servers 204s # choose to localize their reason strings. If the string 204s # isn't utf-8, we fall back to iso-8859-1 for all other 204s # encodings. (See PR #3538) 204s try: 204s reason = self.reason.decode("utf-8") 204s except UnicodeDecodeError: 204s reason = self.reason.decode("iso-8859-1") 204s else: 204s reason = self.reason 204s 204s if 400 <= self.status_code < 500: 204s http_error_msg = ( 204s f"{self.status_code} Client Error: {reason} for url: {self.url}" 204s ) 204s 204s elif 500 <= self.status_code < 600: 204s http_error_msg = ( 204s f"{self.status_code} Server Error: {reason} for url: {self.url}" 204s ) 204s 204s if http_error_msg: 204s > raise HTTPError(http_error_msg, response=self) 204s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/aeee0d67-16b9-45d7-a88c-3744a8542479 204s 204s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 204s ----------------------------- Captured stderr call ----------------------------- 204s Traceback (most recent call last): 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 204s from pathlib import Path 204s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 204s from ._abc import * 204s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 204s from glob import _Globber, _no_recurse_symlinks 204s File "/usr/lib/python3.13/glob.py", line 5, in 204s import re 204s File "/usr/lib/python3.13/re/__init__.py", line 125, in 204s import enum 204s File "/usr/lib/python3.13/enum.py", line 1349, in 204s class IntEnum(int, ReprEnum): 204s File "/usr/lib/python3.13/enum.py", line 555, in __new__ 204s classdict['_value_repr_'] = metacls._find_data_repr_(cls, bases) 204s File "/usr/lib/python3.13/enum.py", line 965, in _find_data_repr_ 204s @classmethod 204s KeyboardInterrupt 204s Traceback (most recent call last): 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s "__main__", mod_spec) 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s ~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 204s from ipykernel import kernelapp as app 204s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 204s from .connect import * # noqa: F403 204s ^^^^^^^^^^^^^^^^^^^^^^ 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpb9ncqcgq/runtime/kernel-aeee0d67-16b9-45d7-a88c-3744a8542479.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51479 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37593 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: aeee0d67-16b9-45d7-a88c-3744a8542479, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.090000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.740000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpb9ncqcgq/runtime/kernel-18703152-d0bd-42fa-801a-d9fe8bc031bf.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47601 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38185 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: 18703152-d0bd-42fa-801a-d9fe8bc031bf, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.260000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 18703152-d0bd-42fa-801a-d9fe8bc031bf 204s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/18703152-d0bd-42fa-801a-d9fe8bc031bf/interrupt (::1) 1.930000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 204s yield maybe_future(km.restart_kernel(kernel_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 204s raise self._exception.with_traceback(self._exception_tb) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 204s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 204s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 204s return _runner_map[name].run(inner) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 204s return fut.result(None) 204s ~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 204s return self.__get_result() 204s ~~~~~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 204s raise self._exception 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 204s await ensure_async(kernel.restart_kernel(now=now)) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 204s return _runner_map[name].run(inner) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 204s return fut.result(None) 204s ~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 204s return self.__get_result() 204s ~~~~~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 204s raise self._exception 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 204s await self._async_shutdown_kernel(now=now, restart=True) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:log.py:55 { 204s "Host": "localhost:12341", 204s "Accept": "*/*", 204s "User-Agent": "python-requests/2.32.5" 204s } 204s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/18703152-d0bd-42fa-801a-d9fe8bc031bf/restart (::1) 8.470000ms referer=None 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.790000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for aeee0d67-16b9-45d7-a88c-3744a8542479 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: aeee0d67-16b9-45d7-a88c-3744a8542479 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/aeee0d67-16b9-45d7-a88c-3744a8542479 (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/aeee0d67-16b9-45d7-a88c-3744a8542479', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 204s yielded = ctx_run(next, result) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 204s yield maybe_future(km.shutdown_kernel(kernel_id)) 204s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 204s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 204s return _runner_map[name].run(inner) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 204s return fut.result(None) 204s ~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 204s return self.__get_result() 204s ~~~~~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 204s raise self._exception 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 204s stopper = ensure_async(km.shutdown_kernel(now, restart)) 204s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 204s return _runner_map[name].run(inner) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 204s return fut.result(None) 204s ~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 204s return self.__get_result() 204s ~~~~~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 204s raise self._exception 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s --------------------------- Captured stderr teardown --------------------------- 204s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 204s from .client import AsyncKernelClient # noqa 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 204s import zmq.asyncio 204s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 204s import asyncio 204s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 204s from .base_events import * 204s File "/usr/lib/python3.13/asyncio/base_events.py", line 18, in 204s import concurrent.futures 204s File "/usr/lib/python3.13/concurrent/futures/__init__.py", line 8, in 204s from concurrent.futures._base import (FIRST_COMPLETED, 204s ...<9 lines>... 204s as_completed) 204s File "/usr/lib/python3.13/concurrent/futures/_base.py", line 7, in 204s import logging 204s File "/usr/lib/python3.13/logging/__init__.py", line 477, in 204s class StrFormatStyle(PercentStyle): 204s ...<30 lines>... 204s raise ValueError('invalid format: no fields') 204s File "/usr/lib/python3.13/logging/__init__.py", line 482, in StrFormatStyle 204s fmt_spec = re.compile(r'^(.?[<>=^])?[+ -]?#?0?(\d+|{\w+})?[,_]?(\.(\d+|{\w+}))?[bcdefgnosx%]?$', re.I) 204s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 204s return _compile(pattern, flags) 204s File "/usr/lib/python3.13/re/__init__.py", line 351, in _compile 204s if flags & DEBUG: 204s ~~~~~~^~~~~~~ 204s File "/usr/lib/python3.13/enum.py", line 1616, in __and__ 204s return self.__class__(value & other_value) 204s ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3.13/enum.py", line 695, in __call__ 204s def __call__(cls, value, names=_not_given, *values, module=None, qualname=None, type=None, start=1, boundary=None): 204s 204s KeyboardInterrupt 204s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 204s 204s self = 204s 204s def tearDown(self): 204s for k in self.kern_api.list().json(): 204s > self.kern_api.shutdown(k['id']) 204s 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 204s return self._req('DELETE', id) 204s ^^^^^^^^^^^^^^^^^^^^^^^ 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 204s response.raise_for_status() 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s 204s self = 204s 204s def raise_for_status(self): 204s """Raises :class:`HTTPError`, if one occurred.""" 204s 204s http_error_msg = "" 204s if isinstance(self.reason, bytes): 204s # We attempt to decode utf-8 first because some servers 204s # choose to localize their reason strings. If the string 204s # isn't utf-8, we fall back to iso-8859-1 for all other 204s # encodings. (See PR #3538) 204s try: 204s reason = self.reason.decode("utf-8") 204s except UnicodeDecodeError: 204s reason = self.reason.decode("iso-8859-1") 204s else: 204s reason = self.reason 204s 204s if 400 <= self.status_code < 500: 204s http_error_msg = ( 204s f"{self.status_code} Client Error: {reason} for url: {self.url}" 204s ) 204s 204s elif 500 <= self.status_code < 600: 204s http_error_msg = ( 204s f"{self.status_code} Server Error: {reason} for url: {self.url}" 204s ) 204s 204s if http_error_msg: 204s > raise HTTPError(http_error_msg, response=self) 204s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/7ec85ba3-11a1-42ec-ad6d-dcdc710da632 204s 204s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 204s ----------------------------- Captured stderr call ----------------------------- 204s Traceback (most recent call last): 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 204s from pathlib import Path 204s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 204s from ._abc import * 204s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 204s import functools 204s File "", line 1360, in _find_and_load 204s File "", line 1331, in _find_and_load_unlocked 204s File "", line 935, in _load_unlocked 204s File "", line 1019, in exec_module 204s File "", line 1152, in get_code 204s File "", line 781, in _compile_bytecode 204s KeyboardInterrupt 204s Traceback (most recent call last): 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s "__main__", mod_spec) 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s ~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 204s from ipykernel import kernelapp as app 204s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 204s from .connect import * # noqa: F403 204s ^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 204s import jupyter_client 204s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 204s from .asynchronous import AsyncKernelClient 204s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 204s from .client import AsyncKernelClient # noqa 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 204s import zmq.asyncio 204s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 204s import asyncio 204s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 204s from .base_events import * 204s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 204s import ssl 204s File "/usr/lib/python3.13/ssl.py", line 100, in 204s import _ssl # if we can't import it, let the error propagate 204s ^^^^^^^^^^^ 204s KeyboardInterrupt 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp22u1w1ng/runtime/kernel-7ec85ba3-11a1-42ec-ad6d-dcdc710da632.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47475 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52905 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7ec85ba3-11a1-42ec-ad6d-dcdc710da632, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.200000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp22u1w1ng/runtime/kernel-77435ff3-c3a4-4741-aeb3-94ba716d3f33.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55919 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40771 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: 77435ff3-c3a4-4741-aeb3-94ba716d3f33, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 22.240000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 77435ff3-c3a4-4741-aeb3-94ba716d3f33 204s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/77435ff3-c3a4-4741-aeb3-94ba716d3f33/interrupt (::1) 0.590000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 204s yield maybe_future(km.restart_kernel(kernel_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 204s raise self._exception.with_traceback(self._exception_tb) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 204s result = coro.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 204s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 204s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 204s yield self # This tells Task to wait for completion. 204s ^^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 204s future.result() 204s ~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 204s raise self._exception.with_traceback(self._exception_tb) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 204s await ensure_async(kernel.restart_kernel(now=now)) 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 204s await self._async_shutdown_kernel(now=now, restart=True) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:log.py:55 { 204s "Host": "localhost:12341", 204s "Accept": "*/*", 204s "User-Agent": "python-requests/2.32.5" 204s } 204s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/77435ff3-c3a4-4741-aeb3-94ba716d3f33/restart (::1) 7.910000ms referer=None 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.810000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7ec85ba3-11a1-42ec-ad6d-dcdc710da632 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7ec85ba3-11a1-42ec-ad6d-dcdc710da632 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/7ec85ba3-11a1-42ec-ad6d-dcdc710da632 (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/7ec85ba3-11a1-42ec-ad6d-dcdc710da632', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 204s future.result() 204s ~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 204s yield maybe_future(km.shutdown_kernel(kernel_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 204s raise self._exception.with_traceback(self._exception_tb) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 204s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 204s raise km.ready.exception() # type: ignore[misc] 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 204s 204s @self.addCleanup 204s def cleanup_sessions(): 204s for session in self.sess_api.list().json(): 204s > self.sess_api.delete(session['id']) 204s 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 204s return self._req('DELETE', id) 204s ^^^^^^^^^^^^^^^^^^^^^^^ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 204s response.raise_for_status() 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s 204s self = 204s 204s def raise_for_status(self): 204s """Raises :class:`HTTPError`, if one occurred.""" 204s 204s http_error_msg = "" 204s if isinstance(self.reason, bytes): 204s # We attempt to decode utf-8 first because some servers 204s # choose to localize their reason strings. If the string 204s # isn't utf-8, we fall back to iso-8859-1 for all other 204s # encodings. (See PR #3538) 204s try: 204s reason = self.reason.decode("utf-8") 204s except UnicodeDecodeError: 204s reason = self.reason.decode("iso-8859-1") 204s else: 204s reason = self.reason 204s 204s if 400 <= self.status_code < 500: 204s http_error_msg = ( 204s f"{self.status_code} Client Error: {reason} for url: {self.url}" 204s ) 204s 204s elif 500 <= self.status_code < 600: 204s http_error_msg = ( 204s f"{self.status_code} Server Error: {reason} for url: {self.url}" 204s ) 204s 204s if http_error_msg: 204s > raise HTTPError(http_error_msg, response=self) 204s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/effd1168-fee4-492d-a149-ec0aedbd6242 204s 204s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 204s ----------------------------- Captured stderr call ----------------------------- 204s Traceback (most recent call last): 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgu4zrsk_/runtime/kernel-528b4e19-8d02-420e-96d4-c3aeec868add.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43833 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60005 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: 528b4e19-8d02-420e-96d4-c3aeec868add, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.080000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.810000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 14c1db46-9029-4391-8000-6bbd421c655f 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 14c1db46-9029-4391-8000-6bbd421c655f 204s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d03c1f2b-9a3c-4909-8c02-1ed7fccae4b0 (::1) 5.250000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 528b4e19-8d02-420e-96d4-c3aeec868add 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 528b4e19-8d02-420e-96d4-c3aeec868add 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/effd1168-fee4-492d-a149-ec0aedbd6242 (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/effd1168-fee4-492d-a149-ec0aedbd6242', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 204s yield maybe_future(sm.delete_session(session_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 204s yielded = self.gen.send(value) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 204s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 204s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 204s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 204s return _runner_map[name].run(inner) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 204s return fut.result(None) 204s ~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 204s return self.__get_result() 204s ~~~~~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 204s raise self._exception 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 204s stopper = ensure_async(km.shutdown_kernel(now, restart)) 204s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 204s return _runner_map[name].run(inner) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 204s return fut.result(None) 204s ~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 204s return self.__get_result() 204s ~~~~~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 204s raise self._exception 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s ERROR NotebookApp:log.py:55 { 204s "Host": "localhost:12341", 204s "Accept": "*/*", 204s "User-Agent": "python-requests/2.32.5" 204s } 204s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/effd1168-fee4-492d-a149-ec0aedbd6242 (::1) 7.380000ms referer=None 204s --------------------------- Captured stderr teardown --------------------------- 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s "__main__", mod_spec) 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s ~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 204s from ipykernel import kernelapp as app 204s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 204s from .connect import * # noqa: F403 204s ^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 204s from subprocess import PIPE, Popen 204s File "/usr/lib/python3.13/subprocess.py", line 125, in 204s import selectors 204s File "/usr/lib/python3.13/selectors.py", line 46, in 204s SelectorKey = namedtuple('SelectorKey', ['fileobj', 'fd', 'events', 'data']) 204s File "/usr/lib/python3.13/collections/__init__.py", line 444, in namedtuple 204s __new__ = eval(code, namespace) 204s File "", line 0, in 204s KeyboardInterrupt 204s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 204s 204s @self.addCleanup 204s def cleanup_sessions(): 204s for session in self.sess_api.list().json(): 204s > self.sess_api.delete(session['id']) 204s 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 204s return self._req('DELETE', id) 204s ^^^^^^^^^^^^^^^^^^^^^^^ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 204s response.raise_for_status() 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s 204s self = 204s 204s def raise_for_status(self): 204s """Raises :class:`HTTPError`, if one occurred.""" 204s 204s http_error_msg = "" 204s if isinstance(self.reason, bytes): 204s # We attempt to decode utf-8 first because some servers 204s # choose to localize their reason strings. If the string 204s # isn't utf-8, we fall back to iso-8859-1 for all other 204s # encodings. (See PR #3538) 204s try: 204s reason = self.reason.decode("utf-8") 204s except UnicodeDecodeError: 204s reason = self.reason.decode("iso-8859-1") 204s else: 204s reason = self.reason 204s 204s if 400 <= self.status_code < 500: 204s http_error_msg = ( 204s f"{self.status_code} Client Error: {reason} for url: {self.url}" 204s ) 204s 204s elif 500 <= self.status_code < 600: 204s http_error_msg = ( 204s f"{self.status_code} Server Error: {reason} for url: {self.url}" 204s ) 204s 204s if http_error_msg: 204s > raise HTTPError(http_error_msg, response=self) 204s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5fc80c3f-ab81-4044-b921-141bb981e449 204s 204s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 204s ----------------------------- Captured stderr call ----------------------------- 204s Traceback (most recent call last): 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5zh2bsm3/runtime/kernel-c079f608-ec31-4bc0-888e-cb48f240ba81.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58909 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55019 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: c079f608-ec31-4bc0-888e-cb48f240ba81, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.180000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.650000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.550000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fab8a425-ac9a-4976-a238-e4f67b7fcebf 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fab8a425-ac9a-4976-a238-e4f67b7fcebf 204s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/f83adffe-efc9-4440-b969-0a9d968cd2d3 (::1) 1.940000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c079f608-ec31-4bc0-888e-cb48f240ba81 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c079f608-ec31-4bc0-888e-cb48f240ba81 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5fc80c3f-ab81-4044-b921-141bb981e449 (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5fc80c3f-ab81-4044-b921-141bb981e449', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 204s future.result() 204s ~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 204s yield maybe_future(sm.delete_session(session_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 204s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 204s raise self._exception.with_traceback(self._exception_tb) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 204s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 204s raise km.ready.exception() # type: ignore[misc] 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s --------------------------- Captured stderr teardown --------------------------- 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s "__main__", mod_spec) 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s ~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 204s from ipykernel import kernelapp as app 204s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 204s from .connect import * # noqa: F403 204s ^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 204s import json 204s File "/usr/lib/python3.13/json/__init__.py", line 107, in 204s from .encoder import JSONEncoder 204s File "", line 1360, in _find_and_load 204s File "", line 1331, in _find_and_load_unlocked 204s File "", line 935, in _load_unlocked 204s File "", line 1019, in exec_module 204s File "", line 1152, in get_code 204s File "", line 781, in _compile_bytecode 204s KeyboardInterrupt 204s =================================== FAILURES =================================== 204s ______________________ KernelAPITest.test_default_kernel _______________________ 204s 204s self = 204s 204s def tearDown(self): 204s for k in self.kern_api.list().json(): 204s > self.kern_api.shutdown(k['id']) 204s 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 204s return self._req('DELETE', id) 204s ^^^^^^^^^^^^^^^^^^^^^^^ 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 204s response.raise_for_status() 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s 204s self = 204s 204s def raise_for_status(self): 204s """Raises :class:`HTTPError`, if one occurred.""" 204s 204s http_error_msg = "" 204s if isinstance(self.reason, bytes): 204s # We attempt to decode utf-8 first because some servers 204s # choose to localize their reason strings. If the string 204s # isn't utf-8, we fall back to iso-8859-1 for all other 204s # encodings. (See PR #3538) 204s try: 204s reason = self.reason.decode("utf-8") 204s except UnicodeDecodeError: 204s reason = self.reason.decode("iso-8859-1") 204s else: 204s reason = self.reason 204s 204s if 400 <= self.status_code < 500: 204s http_error_msg = ( 204s f"{self.status_code} Client Error: {reason} for url: {self.url}" 204s ) 204s 204s elif 500 <= self.status_code < 600: 204s http_error_msg = ( 204s f"{self.status_code} Server Error: {reason} for url: {self.url}" 204s ) 204s 204s if http_error_msg: 204s > raise HTTPError(http_error_msg, response=self) 204s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/fc3e5da0-fe45-443a-a6c2-081d690e4eb0 204s 204s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 204s ------------------------------ Captured log setup ------------------------------ 204s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpb9ncqcgq/config', '/tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpb9ncqcgq/etc/jupyter'] for config files 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpb9ncqcgq/etc/jupyter 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpb9ncqcgq/config 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpb9ncqcgq/etc/jupyter 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpb9ncqcgq/config 204s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpb9ncqcgq/notebooks 204s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 204s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 204s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 204s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 204s WARNING NotebookApp:handlers.py:612 Forbidden 204s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.670000ms referer=None 204s ----------------------------- Captured stderr call ----------------------------- 204s Traceback (most recent call last): 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s "__main__", mod_spec) 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s ~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 204s from pathlib import Path 204s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 204s from ._local import * 204s File "", line 645, in parent 204s KeyboardInterrupt 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpb9ncqcgq/runtime/kernel-fc3e5da0-fe45-443a-a6c2-081d690e4eb0.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57703 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47155 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: fc3e5da0-fe45-443a-a6c2-081d690e4eb0, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 55.040000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.940000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fc3e5da0-fe45-443a-a6c2-081d690e4eb0 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fc3e5da0-fe45-443a-a6c2-081d690e4eb0 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/fc3e5da0-fe45-443a-a6c2-081d690e4eb0 (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/fc3e5da0-fe45-443a-a6c2-081d690e4eb0', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 204s yielded = ctx_run(next, result) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 204s yield maybe_future(km.shutdown_kernel(kernel_id)) 204s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 204s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 204s return _runner_map[name].run(inner) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 204s return fut.result(None) 204s ~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 204s return self.__get_result() 204s ~~~~~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 204s raise self._exception 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 204s stopper = ensure_async(km.shutdown_kernel(now, restart)) 204s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 204s return _runner_map[name].run(inner) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 204s return fut.result(None) 204s ~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 204s return self.__get_result() 204s ~~~~~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 204s raise self._exception 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s ERROR NotebookApp:log.py:55 { 204s "Host": "localhost:12341", 204s "Accept": "*/*", 204s "User-Agent": "python-requests/2.32.5" 204s } 204s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/fc3e5da0-fe45-443a-a6c2-081d690e4eb0 (::1) 12.610000ms referer=None 204s ______________________ KernelAPITest.test_kernel_handler _______________________ 204s 204s self = 204s 204s def test_kernel_handler(self): 204s # GET kernel with given id 204s kid = self.kern_api.start().json()['id'] 204s r = self.kern_api.get(kid) 204s kern1 = r.json() 204s self.assertEqual(r.status_code, 200) 204s assert isinstance(kern1, dict) 204s self.assertIn('id', kern1) 204s self.assertEqual(kern1['id'], kid) 204s 204s # Request a bad kernel id and check that a JSON 204s # message is returned! 204s bad_id = '111-111-111-111-111' 204s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 204s self.kern_api.get(bad_id) 204s 204s # DELETE kernel with id 204s > r = self.kern_api.shutdown(kid) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 204s return self._req('DELETE', id) 204s ^^^^^^^^^^^^^^^^^^^^^^^ 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 204s response.raise_for_status() 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s 204s self = 204s 204s def raise_for_status(self): 204s """Raises :class:`HTTPError`, if one occurred.""" 204s 204s http_error_msg = "" 204s if isinstance(self.reason, bytes): 204s # We attempt to decode utf-8 first because some servers 204s # choose to localize their reason strings. If the string 204s # isn't utf-8, we fall back to iso-8859-1 for all other 204s # encodings. (See PR #3538) 204s try: 204s reason = self.reason.decode("utf-8") 204s except UnicodeDecodeError: 204s reason = self.reason.decode("iso-8859-1") 204s else: 204s reason = self.reason 204s 204s if 400 <= self.status_code < 500: 204s http_error_msg = ( 204s f"{self.status_code} Client Error: {reason} for url: {self.url}" 204s ) 204s 204s elif 500 <= self.status_code < 600: 204s http_error_msg = ( 204s f"{self.status_code} Server Error: {reason} for url: {self.url}" 204s ) 204s 204s if http_error_msg: 204s > raise HTTPError(http_error_msg, response=self) 204s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/62c9d6b3-242c-4f33-9996-d464d6506f54 204s 204s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 204s ----------------------------- Captured stderr call ----------------------------- 204s Traceback (most recent call last): 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s "__main__", mod_spec) 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s ~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 204s from pathlib import Path 204s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 204s from ._abc import * 204s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 204s from glob import _Globber, _no_recurse_symlinks 204s File "/usr/lib/python3.13/glob.py", line 5, in 204s import re 204s File "/usr/lib/python3.13/re/__init__.py", line 126, in 204s from . import _compiler, _parser 204s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 204s from . import _parser 204s File "/usr/lib/python3.13/re/_parser.py", line 15, in 204s from ._constants import * 204s File "", line 1360, in _find_and_load 204s File "", line 1331, in _find_and_load_unlocked 204s File "", line 935, in _load_unlocked 204s File "", line 1019, in exec_module 204s File "", line 1152, in get_code 204s File "", line 781, in _compile_bytecode 204s KeyboardInterrupt 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpb9ncqcgq/runtime/kernel-62c9d6b3-242c-4f33-9996-d464d6506f54.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38723 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56333 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: 62c9d6b3-242c-4f33-9996-d464d6506f54, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.620000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/62c9d6b3-242c-4f33-9996-d464d6506f54 (::1) 0.530000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s 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 204s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 204s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.590000ms referer=None 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 62c9d6b3-242c-4f33-9996-d464d6506f54 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 62c9d6b3-242c-4f33-9996-d464d6506f54 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/62c9d6b3-242c-4f33-9996-d464d6506f54 (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/62c9d6b3-242c-4f33-9996-d464d6506f54', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 204s yielded = ctx_run(next, result) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 204s yield maybe_future(km.shutdown_kernel(kernel_id)) 204s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 204s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 204s return _runner_map[name].run(inner) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 204s return fut.result(None) 204s ~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 204s return self.__get_result() 204s ~~~~~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 204s raise self._exception 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 204s stopper = ensure_async(km.shutdown_kernel(now, restart)) 204s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 204s return _runner_map[name].run(inner) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 204s return fut.result(None) 204s ~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 204s return self.__get_result() 204s ~~~~~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 204s raise self._exception 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s ERROR NotebookApp:log.py:55 { 204s "Host": "localhost:12341", 204s "Accept": "*/*", 204s "User-Agent": "python-requests/2.32.5" 204s } 204s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/62c9d6b3-242c-4f33-9996-d464d6506f54 (::1) 10.800000ms referer=None 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.520000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fc3e5da0-fe45-443a-a6c2-081d690e4eb0 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fc3e5da0-fe45-443a-a6c2-081d690e4eb0 204s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/fc3e5da0-fe45-443a-a6c2-081d690e4eb0 (::1) 2.720000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 62c9d6b3-242c-4f33-9996-d464d6506f54 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 62c9d6b3-242c-4f33-9996-d464d6506f54 204s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 204s 204s self = 204s 204s def test_main_kernel_handler(self): 204s # POST request 204s r = self.kern_api.start() 204s kern1 = r.json() 204s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 204s self.assertEqual(r.status_code, 201) 204s self.assertIsInstance(kern1, dict) 204s 204s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 204s expected_csp = '; '.join([ 204s "frame-ancestors 'self'", 204s 'report-uri ' + report_uri, 204s "default-src 'none'" 204s ]) 204s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 204s 204s # GET request 204s r = self.kern_api.list() 204s self.assertEqual(r.status_code, 200) 204s assert isinstance(r.json(), list) 204s self.assertEqual(r.json()[0]['id'], kern1['id']) 204s self.assertEqual(r.json()[0]['name'], kern1['name']) 204s 204s # create another kernel and check that they both are added to the 204s # list of kernels from a GET request 204s kern2 = self.kern_api.start().json() 204s assert isinstance(kern2, dict) 204s r = self.kern_api.list() 204s kernels = r.json() 204s self.assertEqual(r.status_code, 200) 204s assert isinstance(kernels, list) 204s self.assertEqual(len(kernels), 2) 204s 204s # Interrupt a kernel 204s r = self.kern_api.interrupt(kern2['id']) 204s self.assertEqual(r.status_code, 204) 204s 204s # Restart a kernel 204s > r = self.kern_api.restart(kern2['id']) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 204s return self._req('POST', url_path_join(id, 'restart')) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 204s response.raise_for_status() 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s 204s self = 204s 204s def raise_for_status(self): 204s """Raises :class:`HTTPError`, if one occurred.""" 204s 204s http_error_msg = "" 204s if isinstance(self.reason, bytes): 204s # We attempt to decode utf-8 first because some servers 204s # choose to localize their reason strings. If the string 204s # isn't utf-8, we fall back to iso-8859-1 for all other 204s # encodings. (See PR #3538) 204s try: 204s reason = self.reason.decode("utf-8") 204s except UnicodeDecodeError: 204s reason = self.reason.decode("iso-8859-1") 204s else: 204s reason = self.reason 204s 204s if 400 <= self.status_code < 500: 204s http_error_msg = ( 204s f"{self.status_code} Client Error: {reason} for url: {self.url}" 204s ) 204s 204s elif 500 <= self.status_code < 600: 204s http_error_msg = ( 204s f"{self.status_code} Server Error: {reason} for url: {self.url}" 204s ) 204s 204s if http_error_msg: 204s > raise HTTPError(http_error_msg, response=self) 204s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/18703152-d0bd-42fa-801a-d9fe8bc031bf/restart 204s 204s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 204s ----------------------------- Captured stderr call ----------------------------- 204s Traceback (most recent call last): 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 204s from pathlib import Path 204s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 204s from ._abc import * 204s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 204s from glob import _Globber, _no_recurse_symlinks 204s File "/usr/lib/python3.13/glob.py", line 5, in 204s import re 204s File "/usr/lib/python3.13/re/__init__.py", line 125, in 204s import enum 204s File "/usr/lib/python3.13/enum.py", line 1349, in 204s class IntEnum(int, ReprEnum): 204s File "/usr/lib/python3.13/enum.py", line 555, in __new__ 204s classdict['_value_repr_'] = metacls._find_data_repr_(cls, bases) 204s File "/usr/lib/python3.13/enum.py", line 965, in _find_data_repr_ 204s @classmethod 204s KeyboardInterrupt 204s Traceback (most recent call last): 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s "__main__", mod_spec) 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s ~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 204s from ipykernel import kernelapp as app 204s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 204s from .connect import * # noqa: F403 204s ^^^^^^^^^^^^^^^^^^^^^^ 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpb9ncqcgq/runtime/kernel-aeee0d67-16b9-45d7-a88c-3744a8542479.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51479 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37593 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: aeee0d67-16b9-45d7-a88c-3744a8542479, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.090000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.740000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpb9ncqcgq/runtime/kernel-18703152-d0bd-42fa-801a-d9fe8bc031bf.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47601 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38185 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: 18703152-d0bd-42fa-801a-d9fe8bc031bf, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.260000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 18703152-d0bd-42fa-801a-d9fe8bc031bf 204s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/18703152-d0bd-42fa-801a-d9fe8bc031bf/interrupt (::1) 1.930000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 204s yield maybe_future(km.restart_kernel(kernel_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 204s raise self._exception.with_traceback(self._exception_tb) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 204s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 204s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 204s return _runner_map[name].run(inner) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 204s return fut.result(None) 204s ~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 204s return self.__get_result() 204s ~~~~~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 204s raise self._exception 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 204s await ensure_async(kernel.restart_kernel(now=now)) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 204s return _runner_map[name].run(inner) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 204s return fut.result(None) 204s ~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 204s return self.__get_result() 204s ~~~~~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 204s raise self._exception 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 204s await self._async_shutdown_kernel(now=now, restart=True) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:log.py:55 { 204s "Host": "localhost:12341", 204s "Accept": "*/*", 204s "User-Agent": "python-requests/2.32.5" 204s } 204s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/18703152-d0bd-42fa-801a-d9fe8bc031bf/restart (::1) 8.470000ms referer=None 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.790000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for aeee0d67-16b9-45d7-a88c-3744a8542479 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: aeee0d67-16b9-45d7-a88c-3744a8542479 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/aeee0d67-16b9-45d7-a88c-3744a8542479 (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/aeee0d67-16b9-45d7-a88c-3744a8542479', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 204s yielded = ctx_run(next, result) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 204s yield maybe_future(km.shutdown_kernel(kernel_id)) 204s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 204s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 204s return _runner_map[name].run(inner) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 204s return fut.result(None) 204s ~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 204s return self.__get_result() 204s ~~~~~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 204s raise self._exception 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 204s stopper = ensure_async(km.shutdown_kernel(now, restart)) 204s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 204s return _runner_map[name].run(inner) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 204s return fut.result(None) 204s ~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 204s return self.__get_result() 204s ~~~~~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 204s raise self._exception 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s ________________________ KernelAPITest.test_no_kernels _________________________ 204s 204s self = 204s 204s def test_no_kernels(self): 204s """Make sure there are no kernels running at the start""" 204s kernels = self.kern_api.list().json() 204s > self.assertEqual(kernels, []) 204s E AssertionError: Lists differ: [{'id': 'aeee0d67-16b9-45d7-a88c-3744a8542[281 chars]: 0}] != [] 204s E 204s E First list contains 2 additional elements. 204s E First extra element 0: 204s E {'id': 'aeee0d67-16b9-45d7-a88c-3744a8542479', 'name': 'python3', 'last_activity': '2026-01-30T06:18:00.542681Z', 'execution_state': 'starting', 'connections': 0} 204s E 204s E + [] 204s E - [{'connections': 0, 204s E - 'execution_state': 'starting', 204s E - 'id': 'aeee0d67-16b9-45d7-a88c-3744a8542479', 204s E - 'last_activity': '2026-01-30T06:18:00.542681Z', 204s E - 'name': 'python3'}, 204s E - {'connections': 0, 204s E - 'execution_state': 'starting', 204s E - 'id': '18703152-d0bd-42fa-801a-d9fe8bc031bf', 204s E - 'last_activity': '2026-01-30T06:18:00.563376Z', 204s E - 'name': 'python3'}] 204s 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for aeee0d67-16b9-45d7-a88c-3744a8542479 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: aeee0d67-16b9-45d7-a88c-3744a8542479 204s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/aeee0d67-16b9-45d7-a88c-3744a8542479 (::1) 1.820000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 18703152-d0bd-42fa-801a-d9fe8bc031bf 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 18703152-d0bd-42fa-801a-d9fe8bc031bf 204s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/18703152-d0bd-42fa-801a-d9fe8bc031bf (::1) 0.700000ms 204s ---------------------------- Captured log teardown ----------------------------- 204s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 204s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 204s _____________________ AsyncKernelAPITest.test_connections ______________________ 204s 204s self = 204s 204s def tearDown(self): 204s for k in self.kern_api.list().json(): 204s > self.kern_api.shutdown(k['id']) 204s 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 204s return self._req('DELETE', id) 204s ^^^^^^^^^^^^^^^^^^^^^^^ 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 204s response.raise_for_status() 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s 204s self = 204s 204s def raise_for_status(self): 204s """Raises :class:`HTTPError`, if one occurred.""" 204s 204s http_error_msg = "" 204s if isinstance(self.reason, bytes): 204s # We attempt to decode utf-8 first because some servers 204s # choose to localize their reason strings. If the string 204s # isn't utf-8, we fall back to iso-8859-1 for all other 204s # encodings. (See PR #3538) 204s try: 204s reason = self.reason.decode("utf-8") 204s except UnicodeDecodeError: 204s reason = self.reason.decode("iso-8859-1") 204s else: 204s reason = self.reason 204s 204s if 400 <= self.status_code < 500: 204s http_error_msg = ( 204s f"{self.status_code} Client Error: {reason} for url: {self.url}" 204s ) 204s 204s elif 500 <= self.status_code < 600: 204s http_error_msg = ( 204s f"{self.status_code} Server Error: {reason} for url: {self.url}" 204s ) 204s 204s if http_error_msg: 204s > raise HTTPError(http_error_msg, response=self) 204s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/82ebd55f-0313-4bd3-a294-06e228b189b5 204s 204s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 204s ------------------------------ Captured log setup ------------------------------ 204s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp22u1w1ng/config', '/tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp22u1w1ng/etc/jupyter'] for config files 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp22u1w1ng/etc/jupyter 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp22u1w1ng/config 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp22u1w1ng/etc/jupyter 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp22u1w1ng/config 204s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp22u1w1ng/notebooks 204s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 204s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 204s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 204s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 204s WARNING NotebookApp:handlers.py:612 Forbidden 204s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.440000ms referer=None 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp22u1w1ng/runtime/kernel-82ebd55f-0313-4bd3-a294-06e228b189b5.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45053 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58923 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: 82ebd55f-0313-4bd3-a294-06e228b189b5, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.230000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/82ebd55f-0313-4bd3-a294-06e228b189b5 (::1) 0.510000ms 204s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/82ebd55f-0313-4bd3-a294-06e228b189b5/channels 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 204s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 82ebd55f-0313-4bd3-a294-06e228b189b5 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60927 204s 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/'}]} 204s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 82ebd55f-0313-4bd3-a294-06e228b189b5) to 5.4 (client). 204s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/82ebd55f-0313-4bd3-a294-06e228b189b5/channels (::1) 463.830000ms 204s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/82ebd55f-0313-4bd3-a294-06e228b189b5/channels 204s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 82ebd55f-0313-4bd3-a294-06e228b189b5 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58923 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60927 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45053 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41511 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60927 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45053 204s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 204s Setting websocket_ping_timeout=30000 204s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 82ebd55f-0313-4bd3-a294-06e228b189b5 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/82ebd55f-0313-4bd3-a294-06e228b189b5 (::1) 0.590000ms 204s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 82ebd55f-0313-4bd3-a294-06e228b189b5 204s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 82ebd55f-0313-4bd3-a294-06e228b189b5 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/82ebd55f-0313-4bd3-a294-06e228b189b5 (::1) 1.510000ms 204s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 82ebd55f-0313-4bd3-a294-06e228b189b5 204s DEBUG NotebookApp:handlers.py:203 Nudge: resolving control future: 82ebd55f-0313-4bd3-a294-06e228b189b5 204s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: 82ebd55f-0313-4bd3-a294-06e228b189b5 204s DEBUG NotebookApp:handlers.py:579 Websocket closed 82ebd55f-0313-4bd3-a294-06e228b189b5:9abeb24c-d2f40394db592ee734a9ad8e 204s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 82ebd55f-0313-4bd3-a294-06e228b189b5:9abeb24c-d2f40394db592ee734a9ad8e 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 82ebd55f-0313-4bd3-a294-06e228b189b5 204s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 82ebd55f-0313-4bd3-a294-06e228b189b5:iopub 204s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 82ebd55f-0313-4bd3-a294-06e228b189b5:iopub 204s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 82ebd55f-0313-4bd3-a294-06e228b189b5:iopub 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/82ebd55f-0313-4bd3-a294-06e228b189b5 (::1) 0.570000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/82ebd55f-0313-4bd3-a294-06e228b189b5 (::1) 0.480000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 82ebd55f-0313-4bd3-a294-06e228b189b5 204s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for 82ebd55f-0313-4bd3-a294-06e228b189b5:9abeb24c-d2f40394db592ee734a9ad8e 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 82ebd55f-0313-4bd3-a294-06e228b189b5 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/82ebd55f-0313-4bd3-a294-06e228b189b5 (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/82ebd55f-0313-4bd3-a294-06e228b189b5', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 204s future.result() 204s ~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 204s yield maybe_future(km.shutdown_kernel(kernel_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 204s raise self._exception.with_traceback(self._exception_tb) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 204s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 204s raise km.ready.exception() # type: ignore[misc] 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s ERROR NotebookApp:log.py:55 { 204s "Host": "localhost:12341", 204s "Accept": "*/*", 204s "User-Agent": "python-requests/2.32.5" 204s } 204s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/82ebd55f-0313-4bd3-a294-06e228b189b5 (::1) 7.650000ms referer=None 204s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 204s 204s self = 204s 204s def tearDown(self): 204s for k in self.kern_api.list().json(): 204s > self.kern_api.shutdown(k['id']) 204s 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 204s return self._req('DELETE', id) 204s ^^^^^^^^^^^^^^^^^^^^^^^ 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 204s response.raise_for_status() 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s 204s self = 204s 204s def raise_for_status(self): 204s """Raises :class:`HTTPError`, if one occurred.""" 204s 204s http_error_msg = "" 204s if isinstance(self.reason, bytes): 204s # We attempt to decode utf-8 first because some servers 204s # choose to localize their reason strings. If the string 204s # isn't utf-8, we fall back to iso-8859-1 for all other 204s # encodings. (See PR #3538) 204s try: 204s reason = self.reason.decode("utf-8") 204s except UnicodeDecodeError: 204s reason = self.reason.decode("iso-8859-1") 204s else: 204s reason = self.reason 204s 204s if 400 <= self.status_code < 500: 204s http_error_msg = ( 204s f"{self.status_code} Client Error: {reason} for url: {self.url}" 204s ) 204s 204s elif 500 <= self.status_code < 600: 204s http_error_msg = ( 204s f"{self.status_code} Server Error: {reason} for url: {self.url}" 204s ) 204s 204s if http_error_msg: 204s > raise HTTPError(http_error_msg, response=self) 204s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/1f06efe5-ff05-411f-ab59-8a42ebeed6a9 204s 204s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp22u1w1ng/runtime/kernel-1f06efe5-ff05-411f-ab59-8a42ebeed6a9.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40265 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42579 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1f06efe5-ff05-411f-ab59-8a42ebeed6a9, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.130000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 3.520000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 82ebd55f-0313-4bd3-a294-06e228b189b5 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 82ebd55f-0313-4bd3-a294-06e228b189b5 204s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/82ebd55f-0313-4bd3-a294-06e228b189b5 (::1) 2.230000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1f06efe5-ff05-411f-ab59-8a42ebeed6a9 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1f06efe5-ff05-411f-ab59-8a42ebeed6a9 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/1f06efe5-ff05-411f-ab59-8a42ebeed6a9 (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/1f06efe5-ff05-411f-ab59-8a42ebeed6a9', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 204s future.result() 204s ~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 204s yield maybe_future(km.shutdown_kernel(kernel_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 204s raise self._exception.with_traceback(self._exception_tb) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 204s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 204s raise km.ready.exception() # type: ignore[misc] 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s --------------------------- Captured stderr teardown --------------------------- 204s Traceback (most recent call last): 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s "__main__", mod_spec) 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s ~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 204s from pathlib import Path 204s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 204s from ._abc import * 204s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 204s from glob import _Globber, _no_recurse_symlinks 204s File "/usr/lib/python3.13/glob.py", line 3, in 204s import contextlib 204s File "/usr/lib/python3.13/contextlib.py", line 802, in 204s class chdir(AbstractContextManager): 204s ...<11 lines>... 204s os.chdir(self._old_cwd.pop()) 204s File "/usr/lib/python3.13/abc.py", line 106, in __new__ 204s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 204s KeyboardInterrupt 204s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 204s 204s self = 204s 204s def test_kernel_handler(self): 204s # GET kernel with given id 204s kid = self.kern_api.start().json()['id'] 204s r = self.kern_api.get(kid) 204s kern1 = r.json() 204s self.assertEqual(r.status_code, 200) 204s assert isinstance(kern1, dict) 204s self.assertIn('id', kern1) 204s self.assertEqual(kern1['id'], kid) 204s 204s # Request a bad kernel id and check that a JSON 204s # message is returned! 204s bad_id = '111-111-111-111-111' 204s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 204s self.kern_api.get(bad_id) 204s 204s # DELETE kernel with id 204s > r = self.kern_api.shutdown(kid) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 204s return self._req('DELETE', id) 204s ^^^^^^^^^^^^^^^^^^^^^^^ 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 204s response.raise_for_status() 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s 204s self = 204s 204s def raise_for_status(self): 204s """Raises :class:`HTTPError`, if one occurred.""" 204s 204s http_error_msg = "" 204s if isinstance(self.reason, bytes): 204s # We attempt to decode utf-8 first because some servers 204s # choose to localize their reason strings. If the string 204s # isn't utf-8, we fall back to iso-8859-1 for all other 204s # encodings. (See PR #3538) 204s try: 204s reason = self.reason.decode("utf-8") 204s except UnicodeDecodeError: 204s reason = self.reason.decode("iso-8859-1") 204s else: 204s reason = self.reason 204s 204s if 400 <= self.status_code < 500: 204s http_error_msg = ( 204s f"{self.status_code} Client Error: {reason} for url: {self.url}" 204s ) 204s 204s elif 500 <= self.status_code < 600: 204s http_error_msg = ( 204s f"{self.status_code} Server Error: {reason} for url: {self.url}" 204s ) 204s 204s if http_error_msg: 204s > raise HTTPError(http_error_msg, response=self) 204s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/fc3a2df4-fff2-4058-8bb8-a98b39e958b8 204s 204s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 204s ----------------------------- Captured stderr call ----------------------------- 204s Traceback (most recent call last): 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s "__main__", mod_spec) 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s ~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 204s from pathlib import Path 204s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 204s from ._abc import * 204s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 204s from glob import _Globber, _no_recurse_symlinks 204s File "/usr/lib/python3.13/glob.py", line 5, in 204s import re 204s File "/usr/lib/python3.13/re/__init__.py", line 126, in 204s from . import _compiler, _parser 204s File "", line 1360, in _find_and_load 204s File "", line 1322, in _find_and_load_unlocked 204s File "", line 1262, in _find_spec 204s File "", line 1556, in find_spec 204s File "", line 1530, in _get_spec 204s File "", line 1663, in find_spec 204s File "", line 1618, in _get_spec 204s File "", line 866, in spec_from_file_location 204s KeyboardInterrupt 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp22u1w1ng/runtime/kernel-fc3a2df4-fff2-4058-8bb8-a98b39e958b8.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52857 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40453 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: fc3a2df4-fff2-4058-8bb8-a98b39e958b8, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.580000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/fc3a2df4-fff2-4058-8bb8-a98b39e958b8 (::1) 0.500000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s 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 204s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 204s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.600000ms referer=None 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fc3a2df4-fff2-4058-8bb8-a98b39e958b8 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fc3a2df4-fff2-4058-8bb8-a98b39e958b8 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/fc3a2df4-fff2-4058-8bb8-a98b39e958b8 (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/fc3a2df4-fff2-4058-8bb8-a98b39e958b8', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 204s future.result() 204s ~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 204s yield maybe_future(km.shutdown_kernel(kernel_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 204s raise self._exception.with_traceback(self._exception_tb) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 204s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 204s raise km.ready.exception() # type: ignore[misc] 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s ERROR NotebookApp:log.py:55 { 204s "Host": "localhost:12341", 204s "Accept": "*/*", 204s "User-Agent": "python-requests/2.32.5" 204s } 204s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/fc3a2df4-fff2-4058-8bb8-a98b39e958b8 (::1) 7.600000ms referer=None 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1f06efe5-ff05-411f-ab59-8a42ebeed6a9 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1f06efe5-ff05-411f-ab59-8a42ebeed6a9 204s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/1f06efe5-ff05-411f-ab59-8a42ebeed6a9 (::1) 1.810000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fc3a2df4-fff2-4058-8bb8-a98b39e958b8 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fc3a2df4-fff2-4058-8bb8-a98b39e958b8 204s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 204s 204s self = 204s 204s def test_main_kernel_handler(self): 204s # POST request 204s r = self.kern_api.start() 204s kern1 = r.json() 204s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 204s self.assertEqual(r.status_code, 201) 204s self.assertIsInstance(kern1, dict) 204s 204s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 204s expected_csp = '; '.join([ 204s "frame-ancestors 'self'", 204s 'report-uri ' + report_uri, 204s "default-src 'none'" 204s ]) 204s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 204s 204s # GET request 204s r = self.kern_api.list() 204s self.assertEqual(r.status_code, 200) 204s assert isinstance(r.json(), list) 204s self.assertEqual(r.json()[0]['id'], kern1['id']) 204s self.assertEqual(r.json()[0]['name'], kern1['name']) 204s 204s # create another kernel and check that they both are added to the 204s # list of kernels from a GET request 204s kern2 = self.kern_api.start().json() 204s assert isinstance(kern2, dict) 204s r = self.kern_api.list() 204s kernels = r.json() 204s self.assertEqual(r.status_code, 200) 204s assert isinstance(kernels, list) 204s self.assertEqual(len(kernels), 2) 204s 204s # Interrupt a kernel 204s r = self.kern_api.interrupt(kern2['id']) 204s self.assertEqual(r.status_code, 204) 204s 204s # Restart a kernel 204s > r = self.kern_api.restart(kern2['id']) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 204s return self._req('POST', url_path_join(id, 'restart')) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 204s response.raise_for_status() 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s 204s self = 204s 204s def raise_for_status(self): 204s """Raises :class:`HTTPError`, if one occurred.""" 204s 204s http_error_msg = "" 204s if isinstance(self.reason, bytes): 204s # We attempt to decode utf-8 first because some servers 204s # choose to localize their reason strings. If the string 204s # isn't utf-8, we fall back to iso-8859-1 for all other 204s # encodings. (See PR #3538) 204s try: 204s reason = self.reason.decode("utf-8") 204s except UnicodeDecodeError: 204s reason = self.reason.decode("iso-8859-1") 204s else: 204s reason = self.reason 204s 204s if 400 <= self.status_code < 500: 204s http_error_msg = ( 204s f"{self.status_code} Client Error: {reason} for url: {self.url}" 204s ) 204s 204s elif 500 <= self.status_code < 600: 204s http_error_msg = ( 204s f"{self.status_code} Server Error: {reason} for url: {self.url}" 204s ) 204s 204s if http_error_msg: 204s > raise HTTPError(http_error_msg, response=self) 204s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/77435ff3-c3a4-4741-aeb3-94ba716d3f33/restart 204s 204s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 204s ----------------------------- Captured stderr call ----------------------------- 204s Traceback (most recent call last): 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 204s from pathlib import Path 204s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 204s from ._abc import * 204s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 204s import functools 204s File "", line 1360, in _find_and_load 204s File "", line 1331, in _find_and_load_unlocked 204s File "", line 935, in _load_unlocked 204s File "", line 1019, in exec_module 204s File "", line 1152, in get_code 204s File "", line 781, in _compile_bytecode 204s KeyboardInterrupt 204s Traceback (most recent call last): 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s "__main__", mod_spec) 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s ~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 204s from ipykernel import kernelapp as app 204s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 204s from .connect import * # noqa: F403 204s ^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 204s import jupyter_client 204s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 204s from .asynchronous import AsyncKernelClient 204s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 204s from .client import AsyncKernelClient # noqa 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 204s import zmq.asyncio 204s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 204s import asyncio 204s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 204s from .base_events import * 204s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 204s import ssl 204s File "/usr/lib/python3.13/ssl.py", line 100, in 204s import _ssl # if we can't import it, let the error propagate 204s ^^^^^^^^^^^ 204s KeyboardInterrupt 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp22u1w1ng/runtime/kernel-7ec85ba3-11a1-42ec-ad6d-dcdc710da632.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47475 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52905 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7ec85ba3-11a1-42ec-ad6d-dcdc710da632, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.200000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp22u1w1ng/runtime/kernel-77435ff3-c3a4-4741-aeb3-94ba716d3f33.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55919 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40771 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: 77435ff3-c3a4-4741-aeb3-94ba716d3f33, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 22.240000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 77435ff3-c3a4-4741-aeb3-94ba716d3f33 204s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/77435ff3-c3a4-4741-aeb3-94ba716d3f33/interrupt (::1) 0.590000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 204s yield maybe_future(km.restart_kernel(kernel_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 204s raise self._exception.with_traceback(self._exception_tb) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 204s result = coro.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 204s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 204s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 204s yield self # This tells Task to wait for completion. 204s ^^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 204s future.result() 204s ~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 204s raise self._exception.with_traceback(self._exception_tb) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 204s await ensure_async(kernel.restart_kernel(now=now)) 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 204s await self._async_shutdown_kernel(now=now, restart=True) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:log.py:55 { 204s "Host": "localhost:12341", 204s "Accept": "*/*", 204s "User-Agent": "python-requests/2.32.5" 204s } 204s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/77435ff3-c3a4-4741-aeb3-94ba716d3f33/restart (::1) 7.910000ms referer=None 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.810000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7ec85ba3-11a1-42ec-ad6d-dcdc710da632 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7ec85ba3-11a1-42ec-ad6d-dcdc710da632 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/7ec85ba3-11a1-42ec-ad6d-dcdc710da632 (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/7ec85ba3-11a1-42ec-ad6d-dcdc710da632', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 204s future.result() 204s ~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 204s yield maybe_future(km.shutdown_kernel(kernel_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 204s raise self._exception.with_traceback(self._exception_tb) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 204s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 204s raise km.ready.exception() # type: ignore[misc] 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 204s 204s self = 204s 204s def test_no_kernels(self): 204s """Make sure there are no kernels running at the start""" 204s kernels = self.kern_api.list().json() 204s > self.assertEqual(kernels, []) 204s E AssertionError: Lists differ: [{'id': '7ec85ba3-11a1-42ec-ad6d-dcdc710da[281 chars]: 0}] != [] 204s E 204s E First list contains 2 additional elements. 204s E First extra element 0: 204s E {'id': '7ec85ba3-11a1-42ec-ad6d-dcdc710da632', 'name': 'python3', 'last_activity': '2026-01-30T06:18:01.483313Z', 'execution_state': 'starting', 'connections': 0} 204s E 204s E + [] 204s E - [{'connections': 0, 204s E - 'execution_state': 'starting', 204s E - 'id': '7ec85ba3-11a1-42ec-ad6d-dcdc710da632', 204s E - 'last_activity': '2026-01-30T06:18:01.483313Z', 204s E - 'name': 'python3'}, 204s E - {'connections': 0, 204s E - 'execution_state': 'starting', 204s E - 'id': '77435ff3-c3a4-4741-aeb3-94ba716d3f33', 204s E - 'last_activity': '2026-01-30T06:18:01.505102Z', 204s E - 'name': 'python3'}] 204s 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.560000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.840000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7ec85ba3-11a1-42ec-ad6d-dcdc710da632 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7ec85ba3-11a1-42ec-ad6d-dcdc710da632 204s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/7ec85ba3-11a1-42ec-ad6d-dcdc710da632 (::1) 0.630000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 77435ff3-c3a4-4741-aeb3-94ba716d3f33 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 77435ff3-c3a4-4741-aeb3-94ba716d3f33 204s ---------------------------- Captured log teardown ----------------------------- 204s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7ec85ba3-11a1-42ec-ad6d-dcdc710da632 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fc3a2df4-fff2-4058-8bb8-a98b39e958b8 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1f06efe5-ff05-411f-ab59-8a42ebeed6a9 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 82ebd55f-0313-4bd3-a294-06e228b189b5 204s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 204s __________________________ SessionAPITest.test_create __________________________ 204s 204s @self.addCleanup 204s def cleanup_sessions(): 204s for session in self.sess_api.list().json(): 204s > self.sess_api.delete(session['id']) 204s 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 204s return self._req('DELETE', id) 204s ^^^^^^^^^^^^^^^^^^^^^^^ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 204s response.raise_for_status() 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s 204s self = 204s 204s def raise_for_status(self): 204s """Raises :class:`HTTPError`, if one occurred.""" 204s 204s http_error_msg = "" 204s if isinstance(self.reason, bytes): 204s # We attempt to decode utf-8 first because some servers 204s # choose to localize their reason strings. If the string 204s # isn't utf-8, we fall back to iso-8859-1 for all other 204s # encodings. (See PR #3538) 204s try: 204s reason = self.reason.decode("utf-8") 204s except UnicodeDecodeError: 204s reason = self.reason.decode("iso-8859-1") 204s else: 204s reason = self.reason 204s 204s if 400 <= self.status_code < 500: 204s http_error_msg = ( 204s f"{self.status_code} Client Error: {reason} for url: {self.url}" 204s ) 204s 204s elif 500 <= self.status_code < 600: 204s http_error_msg = ( 204s f"{self.status_code} Server Error: {reason} for url: {self.url}" 204s ) 204s 204s if http_error_msg: 204s > raise HTTPError(http_error_msg, response=self) 204s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1141b117-1b26-49f7-8e49-adb36280fd03 204s 204s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 204s ------------------------------ Captured log setup ------------------------------ 204s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpgu4zrsk_/config', '/tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpgu4zrsk_/etc/jupyter'] for config files 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpgu4zrsk_/etc/jupyter 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpgu4zrsk_/config 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpgu4zrsk_/etc/jupyter 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpgu4zrsk_/config 204s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpgu4zrsk_/notebooks 204s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 204s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 204s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 204s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 204s WARNING NotebookApp:handlers.py:612 Forbidden 204s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.450000ms referer=None 204s ----------------------------- Captured stderr call ----------------------------- 204s Traceback (most recent call last): 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.870000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgu4zrsk_/runtime/kernel-fb05e823-9b4c-416b-b2c7-b0b61ee62a03.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47441 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41709 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: fb05e823-9b4c-416b-b2c7-b0b61ee62a03, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpgu4zrsk_/notebooks/foo'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.610000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.610000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/1141b117-1b26-49f7-8e49-adb36280fd03 (::1) 0.630000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.640000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fb05e823-9b4c-416b-b2c7-b0b61ee62a03 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fb05e823-9b4c-416b-b2c7-b0b61ee62a03 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1141b117-1b26-49f7-8e49-adb36280fd03 (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1141b117-1b26-49f7-8e49-adb36280fd03', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 204s yield maybe_future(sm.delete_session(session_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 204s yielded = self.gen.send(value) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 204s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 204s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 204s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 204s return _runner_map[name].run(inner) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 204s return fut.result(None) 204s ~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 204s return self.__get_result() 204s ~~~~~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 204s raise self._exception 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 204s stopper = ensure_async(km.shutdown_kernel(now, restart)) 204s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 204s return _runner_map[name].run(inner) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 204s return fut.result(None) 204s ~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 204s return self.__get_result() 204s ~~~~~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 204s raise self._exception 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s ERROR NotebookApp:log.py:55 { 204s "Host": "localhost:12341", 204s "Accept": "*/*", 204s "User-Agent": "python-requests/2.32.5" 204s } 204s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1141b117-1b26-49f7-8e49-adb36280fd03 (::1) 11.190000ms referer=None 204s --------------------------- Captured stderr teardown --------------------------- 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s "__main__", mod_spec) 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s ~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 204s from ipykernel import kernelapp as app 204s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 204s from .connect import * # noqa: F403 204s ^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 204s import json 204s File "/usr/lib/python3.13/json/__init__.py", line 107, in 204s from .encoder import JSONEncoder 204s File "", line 1360, in _find_and_load 204s File "", line 1331, in _find_and_load_unlocked 204s File "", line 946, in _load_unlocked 204s KeyboardInterrupt 204s __________________ SessionAPITest.test_create_console_session __________________ 204s 204s @self.addCleanup 204s def cleanup_sessions(): 204s for session in self.sess_api.list().json(): 204s > self.sess_api.delete(session['id']) 204s 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 204s return self._req('DELETE', id) 204s ^^^^^^^^^^^^^^^^^^^^^^^ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 204s response.raise_for_status() 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s 204s self = 204s 204s def raise_for_status(self): 204s """Raises :class:`HTTPError`, if one occurred.""" 204s 204s http_error_msg = "" 204s if isinstance(self.reason, bytes): 204s # We attempt to decode utf-8 first because some servers 204s # choose to localize their reason strings. If the string 204s # isn't utf-8, we fall back to iso-8859-1 for all other 204s # encodings. (See PR #3538) 204s try: 204s reason = self.reason.decode("utf-8") 204s except UnicodeDecodeError: 204s reason = self.reason.decode("iso-8859-1") 204s else: 204s reason = self.reason 204s 204s if 400 <= self.status_code < 500: 204s http_error_msg = ( 204s f"{self.status_code} Client Error: {reason} for url: {self.url}" 204s ) 204s 204s elif 500 <= self.status_code < 600: 204s http_error_msg = ( 204s f"{self.status_code} Server Error: {reason} for url: {self.url}" 204s ) 204s 204s if http_error_msg: 204s > raise HTTPError(http_error_msg, response=self) 204s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/2a35784e-0c57-483c-906c-013fc39fa998 204s 204s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 204s ----------------------------- Captured stderr call ----------------------------- 204s ine 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s "__main__", mod_spec) 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s ~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 204s from ipykernel import kernelapp as app 204s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 204s from ._version import ( 204s ...<4 lines>... 204s ) 204s File "", line 1360, in _find_and_load 204s File "", line 1331, in _find_and_load_unlocked 204s File "", line 935, in _load_unlocked 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgu4zrsk_/runtime/kernel-89c33de4-f54b-4a3d-84c2-db534dea8767.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39313 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40621 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: 89c33de4-f54b-4a3d-84c2-db534dea8767, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpgu4zrsk_/notebooks/foo'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.120000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.760000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fb05e823-9b4c-416b-b2c7-b0b61ee62a03 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fb05e823-9b4c-416b-b2c7-b0b61ee62a03 204s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/1141b117-1b26-49f7-8e49-adb36280fd03 (::1) 2.170000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 89c33de4-f54b-4a3d-84c2-db534dea8767 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 89c33de4-f54b-4a3d-84c2-db534dea8767 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/2a35784e-0c57-483c-906c-013fc39fa998 (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/2a35784e-0c57-483c-906c-013fc39fa998', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 204s yield maybe_future(sm.delete_session(session_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 204s yielded = self.gen.send(value) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 204s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 204s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 204s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 204s return _runner_map[name].run(inner) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 204s return fut.result(None) 204s ~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 204s return self.__get_result() 204s ~~~~~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 204s raise self._exception 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 204s stopper = ensure_async(km.shutdown_kernel(now, restart)) 204s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 204s return _runner_map[name].run(inner) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 204s return fut.result(None) 204s ~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 204s return self.__get_result() 204s ~~~~~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 204s raise self._exception 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s --------------------------- Captured stderr teardown --------------------------- 204s KeyboardInterrupt 204s ____________________ SessionAPITest.test_create_deprecated _____________________ 204s 204s @self.addCleanup 204s def cleanup_sessions(): 204s for session in self.sess_api.list().json(): 204s > self.sess_api.delete(session['id']) 204s 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 204s return self._req('DELETE', id) 204s ^^^^^^^^^^^^^^^^^^^^^^^ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 204s response.raise_for_status() 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s 204s self = 204s 204s def raise_for_status(self): 204s """Raises :class:`HTTPError`, if one occurred.""" 204s 204s http_error_msg = "" 204s if isinstance(self.reason, bytes): 204s # We attempt to decode utf-8 first because some servers 204s # choose to localize their reason strings. If the string 204s # isn't utf-8, we fall back to iso-8859-1 for all other 204s # encodings. (See PR #3538) 204s try: 204s reason = self.reason.decode("utf-8") 204s except UnicodeDecodeError: 204s reason = self.reason.decode("iso-8859-1") 204s else: 204s reason = self.reason 204s 204s if 400 <= self.status_code < 500: 204s http_error_msg = ( 204s f"{self.status_code} Client Error: {reason} for url: {self.url}" 204s ) 204s 204s elif 500 <= self.status_code < 600: 204s http_error_msg = ( 204s f"{self.status_code} Server Error: {reason} for url: {self.url}" 204s ) 204s 204s if http_error_msg: 204s > raise HTTPError(http_error_msg, response=self) 204s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/2d7bba4e-fb7d-4ddb-96ec-bb5ca8f00f69 204s 204s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 204s ----------------------------- Captured stderr call ----------------------------- 204s Traceback (most recent call last): 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgu4zrsk_/runtime/kernel-920c71be-f8a9-45a8-9f28-e73d54289af1.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34107 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58539 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: 920c71be-f8a9-45a8-9f28-e73d54289af1, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpgu4zrsk_/notebooks/foo'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.920000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.830000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 89c33de4-f54b-4a3d-84c2-db534dea8767 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 89c33de4-f54b-4a3d-84c2-db534dea8767 204s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/2a35784e-0c57-483c-906c-013fc39fa998 (::1) 0.900000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 920c71be-f8a9-45a8-9f28-e73d54289af1 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 920c71be-f8a9-45a8-9f28-e73d54289af1 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/2d7bba4e-fb7d-4ddb-96ec-bb5ca8f00f69 (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/2d7bba4e-fb7d-4ddb-96ec-bb5ca8f00f69', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 204s yield maybe_future(sm.delete_session(session_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 204s yielded = self.gen.send(value) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 204s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 204s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 204s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 204s return _runner_map[name].run(inner) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 204s return fut.result(None) 204s ~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 204s return self.__get_result() 204s ~~~~~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 204s raise self._exception 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 204s stopper = ensure_async(km.shutdown_kernel(now, restart)) 204s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 204s return _runner_map[name].run(inner) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 204s return fut.result(None) 204s ~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 204s return self.__get_result() 204s ~~~~~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 204s raise self._exception 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s --------------------------- Captured stderr teardown --------------------------- 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s "__main__", mod_spec) 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s ~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 204s from pathlib import Path 204s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 204s from ._abc import * 204s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 204s from glob import _Globber, _no_recurse_symlinks 204s File "/usr/lib/python3.13/glob.py", line 5, in 204s import re 204s File "/usr/lib/python3.13/re/__init__.py", line 126, in 204s from . import _compiler, _parser 204s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 204s from . import _parser 204s File "/usr/lib/python3.13/re/_parser.py", line 229, in 204s class Tokenizer: 204s ...<79 lines>... 204s raise self.error(msg, len(name) + offset) 204s KeyboardInterrupt 204s ___________________ SessionAPITest.test_create_file_session ____________________ 204s 204s @self.addCleanup 204s def cleanup_sessions(): 204s for session in self.sess_api.list().json(): 204s > self.sess_api.delete(session['id']) 204s 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 204s return self._req('DELETE', id) 204s ^^^^^^^^^^^^^^^^^^^^^^^ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 204s response.raise_for_status() 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s 204s self = 204s 204s def raise_for_status(self): 204s """Raises :class:`HTTPError`, if one occurred.""" 204s 204s http_error_msg = "" 204s if isinstance(self.reason, bytes): 204s # We attempt to decode utf-8 first because some servers 204s # choose to localize their reason strings. If the string 204s # isn't utf-8, we fall back to iso-8859-1 for all other 204s # encodings. (See PR #3538) 204s try: 204s reason = self.reason.decode("utf-8") 204s except UnicodeDecodeError: 204s reason = self.reason.decode("iso-8859-1") 204s else: 204s reason = self.reason 204s 204s if 400 <= self.status_code < 500: 204s http_error_msg = ( 204s f"{self.status_code} Client Error: {reason} for url: {self.url}" 204s ) 204s 204s elif 500 <= self.status_code < 600: 204s http_error_msg = ( 204s f"{self.status_code} Server Error: {reason} for url: {self.url}" 204s ) 204s 204s if http_error_msg: 204s > raise HTTPError(http_error_msg, response=self) 204s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d03c1f2b-9a3c-4909-8c02-1ed7fccae4b0 204s 204s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgu4zrsk_/runtime/kernel-14c1db46-9029-4391-8000-6bbd421c655f.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34981 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58713 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: 14c1db46-9029-4391-8000-6bbd421c655f, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpgu4zrsk_/notebooks/foo'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.610000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.690000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 920c71be-f8a9-45a8-9f28-e73d54289af1 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 920c71be-f8a9-45a8-9f28-e73d54289af1 204s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/2d7bba4e-fb7d-4ddb-96ec-bb5ca8f00f69 (::1) 4.690000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 14c1db46-9029-4391-8000-6bbd421c655f 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 14c1db46-9029-4391-8000-6bbd421c655f 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d03c1f2b-9a3c-4909-8c02-1ed7fccae4b0 (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d03c1f2b-9a3c-4909-8c02-1ed7fccae4b0', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 204s yield maybe_future(sm.delete_session(session_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 204s yielded = self.gen.send(value) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 204s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 204s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 204s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 204s return _runner_map[name].run(inner) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 204s return fut.result(None) 204s ~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 204s return self.__get_result() 204s ~~~~~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 204s raise self._exception 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 204s stopper = ensure_async(km.shutdown_kernel(now, restart)) 204s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 204s return _runner_map[name].run(inner) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 204s return fut.result(None) 204s ~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 204s return self.__get_result() 204s ~~~~~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 204s raise self._exception 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s ERROR NotebookApp:log.py:55 { 204s "Host": "localhost:12341", 204s "Accept": "*/*", 204s "User-Agent": "python-requests/2.32.5" 204s } 204s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/d03c1f2b-9a3c-4909-8c02-1ed7fccae4b0 (::1) 7.310000ms referer=None 204s --------------------------- Captured stderr teardown --------------------------- 204s Traceback (most recent call last): 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s "__main__", mod_spec) 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s ~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 204s from pathlib import Path 204s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 204s from ._local import * 204s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 204s class PureWindowsPath(PurePath): 204s ...<7 lines>... 204s __slots__ = () 204s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 204s import ntpath 204s File "/usr/lib/python3.13/ntpath.py", line 557, in 204s from nt import _findfirstfile, _getfinalpathname, readlink as _nt_readlink 204s File "", line 1357, in _find_and_load 204s File "", line 418, in __enter__ 204s File "", line 311, in acquire 204s File "", line 173, in __exit__ 204s KeyboardInterrupt 204s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 204s 204s self = 204s 204s def test_create_with_kernel_id(self): 204s # create a new kernel 204s r = self.request('POST', 'api/kernels') 204s r.raise_for_status() 204s kernel = r.json() 204s 204s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 204s self.assertEqual(resp.status_code, 201) 204s newsession = resp.json() 204s self.assertIn('id', newsession) 204s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 204s self.assertEqual(newsession['kernel']['id'], kernel['id']) 204s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 204s 204s sessions = self.sess_api.list().json() 204s > self.assertEqual(sessions, [newsession]) 204s E AssertionError: Lists differ: [{'id': 'd03c1f2b-9a3c-4909-8c02-1ed7fccae4b0', 'p[553 chars]ne}}] != [{'id': 'effd1168-fee4-492d-a149-ec0aedbd6242', 'p[279 chars]ne}}] 204s E 204s E First differing element 0: 204s E {'id': 'd03c1f2b-9a3c-4909-8c02-1ed7fccae4b0', 'p[218 chars]: 0}} 204s E {'id': 'effd1168-fee4-492d-a149-ec0aedbd6242', 'p[278 chars]one}} 204s E 204s E First list contains 1 additional elements. 204s E First extra element 1: 204s E {'id': 'effd1168-fee4-492d-a149-ec0aedbd6242', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '528b4e19-8d02-420e-96d4-c3aeec868add', 'name': 'python3', 'last_activity': '2026-01-30T06:18:01.967959Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 204s E 204s E Diff is 830 characters long. Set self.maxDiff to None to see it. 204s 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 204s ----------------------------- Captured stderr call ----------------------------- 204s Traceback (most recent call last): 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgu4zrsk_/runtime/kernel-528b4e19-8d02-420e-96d4-c3aeec868add.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43833 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60005 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: 528b4e19-8d02-420e-96d4-c3aeec868add, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.080000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.810000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 14c1db46-9029-4391-8000-6bbd421c655f 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 14c1db46-9029-4391-8000-6bbd421c655f 204s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d03c1f2b-9a3c-4909-8c02-1ed7fccae4b0 (::1) 5.250000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 528b4e19-8d02-420e-96d4-c3aeec868add 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 528b4e19-8d02-420e-96d4-c3aeec868add 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/effd1168-fee4-492d-a149-ec0aedbd6242 (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/effd1168-fee4-492d-a149-ec0aedbd6242', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 204s yield maybe_future(sm.delete_session(session_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 204s yielded = self.gen.send(value) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 204s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 204s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 204s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 204s return _runner_map[name].run(inner) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 204s return fut.result(None) 204s ~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 204s return self.__get_result() 204s ~~~~~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 204s raise self._exception 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 204s stopper = ensure_async(km.shutdown_kernel(now, restart)) 204s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 204s return _runner_map[name].run(inner) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 204s return fut.result(None) 204s ~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 204s return self.__get_result() 204s ~~~~~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 204s raise self._exception 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s ERROR NotebookApp:log.py:55 { 204s "Host": "localhost:12341", 204s "Accept": "*/*", 204s "User-Agent": "python-requests/2.32.5" 204s } 204s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/effd1168-fee4-492d-a149-ec0aedbd6242 (::1) 7.380000ms referer=None 204s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 204s 204s @self.addCleanup 204s def cleanup_sessions(): 204s for session in self.sess_api.list().json(): 204s > self.sess_api.delete(session['id']) 204s 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 204s return self._req('DELETE', id) 204s ^^^^^^^^^^^^^^^^^^^^^^^ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 204s response.raise_for_status() 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s 204s self = 204s 204s def raise_for_status(self): 204s """Raises :class:`HTTPError`, if one occurred.""" 204s 204s http_error_msg = "" 204s if isinstance(self.reason, bytes): 204s # We attempt to decode utf-8 first because some servers 204s # choose to localize their reason strings. If the string 204s # isn't utf-8, we fall back to iso-8859-1 for all other 204s # encodings. (See PR #3538) 204s try: 204s reason = self.reason.decode("utf-8") 204s except UnicodeDecodeError: 204s reason = self.reason.decode("iso-8859-1") 204s else: 204s reason = self.reason 204s 204s if 400 <= self.status_code < 500: 204s http_error_msg = ( 204s f"{self.status_code} Client Error: {reason} for url: {self.url}" 204s ) 204s 204s elif 500 <= self.status_code < 600: 204s http_error_msg = ( 204s f"{self.status_code} Server Error: {reason} for url: {self.url}" 204s ) 204s 204s if http_error_msg: 204s > raise HTTPError(http_error_msg, response=self) 204s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/effd1168-fee4-492d-a149-ec0aedbd6242 204s 204s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 204s ----------------------------- Captured stderr call ----------------------------- 204s Traceback (most recent call last): 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.890000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgu4zrsk_/runtime/kernel-767bad30-27a8-4a5d-b947-d3defa97f939.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56139 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47001 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: 767bad30-27a8-4a5d-b947-d3defa97f939, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.740000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 528b4e19-8d02-420e-96d4-c3aeec868add 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 528b4e19-8d02-420e-96d4-c3aeec868add 204s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/effd1168-fee4-492d-a149-ec0aedbd6242 (::1) 1.150000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.740000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.580000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 767bad30-27a8-4a5d-b947-d3defa97f939 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 767bad30-27a8-4a5d-b947-d3defa97f939 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/effd1168-fee4-492d-a149-ec0aedbd6242 (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/effd1168-fee4-492d-a149-ec0aedbd6242', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 204s yield maybe_future(sm.delete_session(session_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 204s yielded = self.gen.send(value) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 204s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 204s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 204s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 204s return _runner_map[name].run(inner) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 204s return fut.result(None) 204s ~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 204s return self.__get_result() 204s ~~~~~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 204s raise self._exception 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 204s stopper = ensure_async(km.shutdown_kernel(now, restart)) 204s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 204s return _runner_map[name].run(inner) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 204s return fut.result(None) 204s ~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 204s return self.__get_result() 204s ~~~~~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 204s raise self._exception 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s --------------------------- Captured stderr teardown --------------------------- 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s "__main__", mod_spec) 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s ~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 204s from pathlib import Path 204s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 204s from ._local import * 204s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 204s class PureWindowsPath(PurePath): 204s ...<7 lines>... 204s __slots__ = () 204s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 204s import ntpath 204s File "", line 1360, in _find_and_load 204s File "", line 1322, in _find_and_load_unlocked 204s File "", line 1262, in _find_spec 204s File "", line 1556, in find_spec 204s File "", line 1530, in _get_spec 204s File "", line 1657, in find_spec 204s File "", line 133, in _path_join 204s KeyboardInterrupt 204s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 204s 204s @self.addCleanup 204s def cleanup_sessions(): 204s for session in self.sess_api.list().json(): 204s > self.sess_api.delete(session['id']) 204s 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 204s return self._req('DELETE', id) 204s ^^^^^^^^^^^^^^^^^^^^^^^ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 204s response.raise_for_status() 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s 204s self = 204s 204s def raise_for_status(self): 204s """Raises :class:`HTTPError`, if one occurred.""" 204s 204s http_error_msg = "" 204s if isinstance(self.reason, bytes): 204s # We attempt to decode utf-8 first because some servers 204s # choose to localize their reason strings. If the string 204s # isn't utf-8, we fall back to iso-8859-1 for all other 204s # encodings. (See PR #3538) 204s try: 204s reason = self.reason.decode("utf-8") 204s except UnicodeDecodeError: 204s reason = self.reason.decode("iso-8859-1") 204s else: 204s reason = self.reason 204s 204s if 400 <= self.status_code < 500: 204s http_error_msg = ( 204s f"{self.status_code} Client Error: {reason} for url: {self.url}" 204s ) 204s 204s elif 500 <= self.status_code < 600: 204s http_error_msg = ( 204s f"{self.status_code} Server Error: {reason} for url: {self.url}" 204s ) 204s 204s if http_error_msg: 204s > raise HTTPError(http_error_msg, response=self) 204s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/effd1168-fee4-492d-a149-ec0aedbd6242 204s 204s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 204s ----------------------------- Captured stderr call ----------------------------- 204s Traceback (most recent call last): 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.780000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgu4zrsk_/runtime/kernel-cbeb7aa1-9077-4979-9819-0f50729f8878.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50581 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58465 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: cbeb7aa1-9077-4979-9819-0f50729f8878, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpgu4zrsk_/notebooks/foo'} 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 767bad30-27a8-4a5d-b947-d3defa97f939 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 767bad30-27a8-4a5d-b947-d3defa97f939 204s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/effd1168-fee4-492d-a149-ec0aedbd6242 (::1) 15.230000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.700000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.540000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cbeb7aa1-9077-4979-9819-0f50729f8878 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cbeb7aa1-9077-4979-9819-0f50729f8878 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/effd1168-fee4-492d-a149-ec0aedbd6242 (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/effd1168-fee4-492d-a149-ec0aedbd6242', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 204s yield maybe_future(sm.delete_session(session_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 204s yielded = self.gen.send(value) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 204s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 204s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 204s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 204s return _runner_map[name].run(inner) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 204s return fut.result(None) 204s ~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 204s return self.__get_result() 204s ~~~~~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 204s raise self._exception 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 204s stopper = ensure_async(km.shutdown_kernel(now, restart)) 204s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 204s return _runner_map[name].run(inner) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 204s gc.collect() 204s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 204s line 128, in run 204s return fut.result(None) 204s ~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 204s return self.__get_result() 204s ~~~~~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 204s raise self._exception 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s --------------------------- Captured stderr teardown --------------------------- 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s "__main__", mod_spec) 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s ~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 204s from pathlib import Path 204s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 204s from ._abc import * 204s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 204s from glob import _Globber, _no_recurse_symlinks 204s File "/usr/lib/python3.13/glob.py", line 5, in 204s import re 204s File "/usr/lib/python3.13/re/__init__.py", line 126, in 204s from . import _compiler, _parser 204s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 204s from . import _parser 204s File "/usr/lib/python3.13/re/_parser.py", line 15, in 204s from ._constants import * 204s File "", line 1360, in _find_and_load 204s File "", line 1331, in _find_and_load_unlocked 204s File "", line 921, in _load_unlocked 204s File "", line 819, in module_from_spec 204s File "", line 782, in _init_module_attrs 204s KeyboardInterrupt 204s _______________________ AsyncSessionAPITest.test_create ________________________ 204s 204s @self.addCleanup 204s def cleanup_sessions(): 204s for session in self.sess_api.list().json(): 204s > self.sess_api.delete(session['id']) 204s 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 204s return self._req('DELETE', id) 204s ^^^^^^^^^^^^^^^^^^^^^^^ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 204s response.raise_for_status() 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s 204s self = 204s 204s def raise_for_status(self): 204s """Raises :class:`HTTPError`, if one occurred.""" 204s 204s http_error_msg = "" 204s if isinstance(self.reason, bytes): 204s # We attempt to decode utf-8 first because some servers 204s # choose to localize their reason strings. If the string 204s # isn't utf-8, we fall back to iso-8859-1 for all other 204s # encodings. (See PR #3538) 204s try: 204s reason = self.reason.decode("utf-8") 204s except UnicodeDecodeError: 204s reason = self.reason.decode("iso-8859-1") 204s else: 204s reason = self.reason 204s 204s if 400 <= self.status_code < 500: 204s http_error_msg = ( 204s f"{self.status_code} Client Error: {reason} for url: {self.url}" 204s ) 204s 204s elif 500 <= self.status_code < 600: 204s http_error_msg = ( 204s f"{self.status_code} Server Error: {reason} for url: {self.url}" 204s ) 204s 204s if http_error_msg: 204s > raise HTTPError(http_error_msg, response=self) 204s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5602b423-b4e9-48d7-a136-0199e8e0198b 204s 204s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 204s ------------------------------ Captured log setup ------------------------------ 204s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp5zh2bsm3/config', '/tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp5zh2bsm3/etc/jupyter'] for config files 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp5zh2bsm3/etc/jupyter 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp5zh2bsm3/config 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp5zh2bsm3/etc/jupyter 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 204s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp5zh2bsm3/config 204s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp5zh2bsm3/notebooks 204s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 204s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 204s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 204s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 204s WARNING NotebookApp:handlers.py:612 Forbidden 204s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.430000ms referer=None 204s ----------------------------- Captured stderr call ----------------------------- 204s Traceback (most recent call last): 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.740000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5zh2bsm3/runtime/kernel-264df8e3-250f-4f9e-8cbd-69b2ca13642d.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40793 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39383 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: 264df8e3-250f-4f9e-8cbd-69b2ca13642d, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp5zh2bsm3/notebooks/foo'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.470000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.540000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/5602b423-b4e9-48d7-a136-0199e8e0198b (::1) 0.570000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.550000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 264df8e3-250f-4f9e-8cbd-69b2ca13642d 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 264df8e3-250f-4f9e-8cbd-69b2ca13642d 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5602b423-b4e9-48d7-a136-0199e8e0198b (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5602b423-b4e9-48d7-a136-0199e8e0198b', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 204s future.result() 204s ~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 204s yield maybe_future(sm.delete_session(session_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 204s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 204s raise self._exception.with_traceback(self._exception_tb) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 204s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 204s raise km.ready.exception() # type: ignore[misc] 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s ERROR NotebookApp:log.py:55 { 204s "Host": "localhost:12341", 204s "Accept": "*/*", 204s "User-Agent": "python-requests/2.32.5" 204s } 204s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/5602b423-b4e9-48d7-a136-0199e8e0198b (::1) 6.920000ms referer=None 204s --------------------------- Captured stderr teardown --------------------------- 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s "__main__", mod_spec) 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s ~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 204s from ipykernel import kernelapp as app 204s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 204s from .connect import * # noqa: F403 204s ^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 204s from subprocess import PIPE, Popen 204s File "/usr/lib/python3.13/subprocess.py", line 49, in 204s import signal 204s File "/usr/lib/python3.13/signal.py", line 7, in 204s _IntEnum._convert_( 204s ~~~~~~~~~~~~~~~~~~^ 204s 'Signals', __name__, 204s ^^^^^^^^^^^^^^^^^^^^ 204s ...<2 lines>... 204s and (name.startswith('SIG') and not name.startswith('SIG_')) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s or name.startswith('CTRL_')) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3.13/enum.py", line 928, in _convert_ 204s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 204s File "/usr/lib/python3.13/enum.py", line 1901, in convert_class 204s contained._add_alias_(name) 204s ~~~~~~~~~~~~~~~~~~~~~^^^^^^ 204s File "/usr/lib/python3.13/enum.py", line 1221, in _add_alias_ 204s self.__class__._add_member_(name, self) 204s ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ 204s File "/usr/lib/python3.13/enum.py", line 1102, in _add_member_ 204s setattr(cls, name, member) 204s ~~~~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3.13/enum.py", line 840, in __setattr__ 204s super().__setattr__(name, value) 204s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ 204s KeyboardInterrupt 204s _______________ AsyncSessionAPITest.test_create_console_session ________________ 204s 204s @self.addCleanup 204s def cleanup_sessions(): 204s for session in self.sess_api.list().json(): 204s > self.sess_api.delete(session['id']) 204s 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 204s return self._req('DELETE', id) 204s ^^^^^^^^^^^^^^^^^^^^^^^ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 204s response.raise_for_status() 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s 204s self = 204s 204s def raise_for_status(self): 204s """Raises :class:`HTTPError`, if one occurred.""" 204s 204s http_error_msg = "" 204s if isinstance(self.reason, bytes): 204s # We attempt to decode utf-8 first because some servers 204s # choose to localize their reason strings. If the string 204s # isn't utf-8, we fall back to iso-8859-1 for all other 204s # encodings. (See PR #3538) 204s try: 204s reason = self.reason.decode("utf-8") 204s except UnicodeDecodeError: 204s reason = self.reason.decode("iso-8859-1") 204s else: 204s reason = self.reason 204s 204s if 400 <= self.status_code < 500: 204s http_error_msg = ( 204s f"{self.status_code} Client Error: {reason} for url: {self.url}" 204s ) 204s 204s elif 500 <= self.status_code < 600: 204s http_error_msg = ( 204s f"{self.status_code} Server Error: {reason} for url: {self.url}" 204s ) 204s 204s if http_error_msg: 204s > raise HTTPError(http_error_msg, response=self) 204s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a266d3ff-7c66-47ac-953c-5f67f754e00c 204s 204s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5zh2bsm3/runtime/kernel-68588489-9519-4929-b026-a121437001bb.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37363 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56655 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: 68588489-9519-4929-b026-a121437001bb, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp5zh2bsm3/notebooks/foo'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.460000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.620000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 264df8e3-250f-4f9e-8cbd-69b2ca13642d 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 264df8e3-250f-4f9e-8cbd-69b2ca13642d 204s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/5602b423-b4e9-48d7-a136-0199e8e0198b (::1) 0.790000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 68588489-9519-4929-b026-a121437001bb 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 68588489-9519-4929-b026-a121437001bb 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a266d3ff-7c66-47ac-953c-5f67f754e00c (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a266d3ff-7c66-47ac-953c-5f67f754e00c', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 204s future.result() 204s ~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 204s yield maybe_future(sm.delete_session(session_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 204s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 204s raise self._exception.with_traceback(self._exception_tb) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 204s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 204s raise km.ready.exception() # type: ignore[misc] 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s --------------------------- Captured stderr teardown --------------------------- 204s Traceback (most recent call last): 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s "__main__", mod_spec) 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s ~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 204s from pathlib import Path 204s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 204s from ._abc import * 204s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 204s from glob import _Globber, _no_recurse_symlinks 204s File "/usr/lib/python3.13/glob.py", line 5, in 204s import re 204s File "/usr/lib/python3.13/re/__init__.py", line 125, in 204s import enum 204s File "/usr/lib/python3.13/enum.py", line 1645, in 204s class IntFlag(int, ReprEnum, Flag, boundary=KEEP): 204s ...<2 lines>... 204s """ 204s File "/usr/lib/python3.13/enum.py", line 568, in __new__ 204s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 204s KeyboardInterrupt 204s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 204s 204s @self.addCleanup 204s def cleanup_sessions(): 204s for session in self.sess_api.list().json(): 204s > self.sess_api.delete(session['id']) 204s 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 204s return self._req('DELETE', id) 204s ^^^^^^^^^^^^^^^^^^^^^^^ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 204s response.raise_for_status() 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s 204s self = 204s 204s def raise_for_status(self): 204s """Raises :class:`HTTPError`, if one occurred.""" 204s 204s http_error_msg = "" 204s if isinstance(self.reason, bytes): 204s # We attempt to decode utf-8 first because some servers 204s # choose to localize their reason strings. If the string 204s # isn't utf-8, we fall back to iso-8859-1 for all other 204s # encodings. (See PR #3538) 204s try: 204s reason = self.reason.decode("utf-8") 204s except UnicodeDecodeError: 204s reason = self.reason.decode("iso-8859-1") 204s else: 204s reason = self.reason 204s 204s if 400 <= self.status_code < 500: 204s http_error_msg = ( 204s f"{self.status_code} Client Error: {reason} for url: {self.url}" 204s ) 204s 204s elif 500 <= self.status_code < 600: 204s http_error_msg = ( 204s f"{self.status_code} Server Error: {reason} for url: {self.url}" 204s ) 204s 204s if http_error_msg: 204s > raise HTTPError(http_error_msg, response=self) 204s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/48127910-dec1-4267-90a2-266be6f2974b 204s 204s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 204s ----------------------------- Captured stderr call ----------------------------- 204s Traceback (most recent call last): 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5zh2bsm3/runtime/kernel-e27e24b7-aacd-4837-bade-186e5ab013ea.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55489 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39289 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: e27e24b7-aacd-4837-bade-186e5ab013ea, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp5zh2bsm3/notebooks/foo'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.210000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.630000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 68588489-9519-4929-b026-a121437001bb 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 68588489-9519-4929-b026-a121437001bb 204s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a266d3ff-7c66-47ac-953c-5f67f754e00c (::1) 1.940000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e27e24b7-aacd-4837-bade-186e5ab013ea 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e27e24b7-aacd-4837-bade-186e5ab013ea 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/48127910-dec1-4267-90a2-266be6f2974b (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/48127910-dec1-4267-90a2-266be6f2974b', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 204s future.result() 204s ~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 204s yield maybe_future(sm.delete_session(session_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 204s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 204s raise self._exception.with_traceback(self._exception_tb) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 204s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 204s raise km.ready.exception() # type: ignore[misc] 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s --------------------------- Captured stderr teardown --------------------------- 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s "__main__", mod_spec) 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s ~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 204s from pathlib import Path 204s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 204s from ._abc import * 204s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 204s from glob import _Globber, _no_recurse_symlinks 204s File "/usr/lib/python3.13/glob.py", line 5, in 204s import re 204s File "/usr/lib/python3.13/re/__init__.py", line 126, in 204s from . import _compiler, _parser 204s File "/usr/lib/python3.13/re/_compiler.py", line 13, in 204s import _sre 204s KeyboardInterrupt 204s _________________ AsyncSessionAPITest.test_create_file_session _________________ 204s 204s @self.addCleanup 204s def cleanup_sessions(): 204s for session in self.sess_api.list().json(): 204s > self.sess_api.delete(session['id']) 204s 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 204s return self._req('DELETE', id) 204s ^^^^^^^^^^^^^^^^^^^^^^^ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 204s response.raise_for_status() 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s 204s self = 204s 204s def raise_for_status(self): 204s """Raises :class:`HTTPError`, if one occurred.""" 204s 204s http_error_msg = "" 204s if isinstance(self.reason, bytes): 204s # We attempt to decode utf-8 first because some servers 204s # choose to localize their reason strings. If the string 204s # isn't utf-8, we fall back to iso-8859-1 for all other 204s # encodings. (See PR #3538) 204s try: 204s reason = self.reason.decode("utf-8") 204s except UnicodeDecodeError: 204s reason = self.reason.decode("iso-8859-1") 204s else: 204s reason = self.reason 204s 204s if 400 <= self.status_code < 500: 204s http_error_msg = ( 204s f"{self.status_code} Client Error: {reason} for url: {self.url}" 204s ) 204s 204s elif 500 <= self.status_code < 600: 204s http_error_msg = ( 204s f"{self.status_code} Server Error: {reason} for url: {self.url}" 204s ) 204s 204s if http_error_msg: 204s > raise HTTPError(http_error_msg, response=self) 204s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f83adffe-efc9-4440-b969-0a9d968cd2d3 204s 204s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 204s ----------------------------- Captured stderr call ----------------------------- 204s Traceback (most recent call last): 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5zh2bsm3/runtime/kernel-fab8a425-ac9a-4976-a238-e4f67b7fcebf.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59495 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58699 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: fab8a425-ac9a-4976-a238-e4f67b7fcebf, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp5zh2bsm3/notebooks/foo'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.550000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.790000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e27e24b7-aacd-4837-bade-186e5ab013ea 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e27e24b7-aacd-4837-bade-186e5ab013ea 204s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/48127910-dec1-4267-90a2-266be6f2974b (::1) 1.870000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fab8a425-ac9a-4976-a238-e4f67b7fcebf 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fab8a425-ac9a-4976-a238-e4f67b7fcebf 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f83adffe-efc9-4440-b969-0a9d968cd2d3 (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f83adffe-efc9-4440-b969-0a9d968cd2d3', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 204s future.result() 204s ~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 204s yield maybe_future(sm.delete_session(session_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 204s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 204s raise self._exception.with_traceback(self._exception_tb) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 204s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 204s raise km.ready.exception() # type: ignore[misc] 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s ERROR NotebookApp:log.py:55 { 204s "Host": "localhost:12341", 204s "Accept": "*/*", 204s "User-Agent": "python-requests/2.32.5" 204s } 204s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/f83adffe-efc9-4440-b969-0a9d968cd2d3 (::1) 6.820000ms referer=None 204s --------------------------- Captured stderr teardown --------------------------- 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s "__main__", mod_spec) 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s ~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 204s from pathlib import Path 204s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 204s from ._abc import * 204s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 204s from glob import _Globber, _no_recurse_symlinks 204s File "/usr/lib/python3.13/glob.py", line 5, in 204s import re 204s File "/usr/lib/python3.13/re/__init__.py", line 126, in 204s from . import _compiler, _parser 204s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 204s from . import _parser 204s File "/usr/lib/python3.13/re/_parser.py", line 15, in 204s from ._constants import * 204s File "/usr/lib/python3.13/re/_constants.py", line 130, in 204s ATCODES = _makecodes( 204s 'AT_BEGINNING', 'AT_BEGINNING_LINE', 'AT_BEGINNING_STRING', 204s ...<5 lines>... 204s 'AT_UNI_BOUNDARY', 'AT_UNI_NON_BOUNDARY', 204s ) 204s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 204s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 204s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 204s KeyboardInterrupt 204s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 204s 204s self = 204s 204s def test_create_with_kernel_id(self): 204s # create a new kernel 204s r = self.request('POST', 'api/kernels') 204s r.raise_for_status() 204s kernel = r.json() 204s 204s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 204s self.assertEqual(resp.status_code, 201) 204s newsession = resp.json() 204s self.assertIn('id', newsession) 204s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 204s self.assertEqual(newsession['kernel']['id'], kernel['id']) 204s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 204s 204s sessions = self.sess_api.list().json() 204s > self.assertEqual(sessions, [newsession]) 204s E AssertionError: Lists differ: [{'id': 'f83adffe-efc9-4440-b969-0a9d968cd2d3', 'p[553 chars]ne}}] != [{'id': '5fc80c3f-ab81-4044-b921-141bb981e449', 'p[279 chars]ne}}] 204s E 204s E First differing element 0: 204s E {'id': 'f83adffe-efc9-4440-b969-0a9d968cd2d3', 'p[218 chars]: 0}} 204s E {'id': '5fc80c3f-ab81-4044-b921-141bb981e449', 'p[278 chars]one}} 204s E 204s E First list contains 1 additional elements. 204s E First extra element 1: 204s E {'id': '5fc80c3f-ab81-4044-b921-141bb981e449', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'c079f608-ec31-4bc0-888e-cb48f240ba81', 'name': 'python3', 'last_activity': '2026-01-30T06:18:02.553537Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 204s E 204s E Diff is 830 characters long. Set self.maxDiff to None to see it. 204s 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 204s ----------------------------- Captured stderr call ----------------------------- 204s Traceback (most recent call last): 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5zh2bsm3/runtime/kernel-c079f608-ec31-4bc0-888e-cb48f240ba81.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58909 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55019 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: c079f608-ec31-4bc0-888e-cb48f240ba81, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.180000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.650000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.550000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fab8a425-ac9a-4976-a238-e4f67b7fcebf 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fab8a425-ac9a-4976-a238-e4f67b7fcebf 204s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/f83adffe-efc9-4440-b969-0a9d968cd2d3 (::1) 1.940000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c079f608-ec31-4bc0-888e-cb48f240ba81 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c079f608-ec31-4bc0-888e-cb48f240ba81 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5fc80c3f-ab81-4044-b921-141bb981e449 (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5fc80c3f-ab81-4044-b921-141bb981e449', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 204s future.result() 204s ~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 204s yield maybe_future(sm.delete_session(session_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 204s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 204s raise self._exception.with_traceback(self._exception_tb) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 204s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 204s raise km.ready.exception() # type: ignore[misc] 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 204s 204s @self.addCleanup 204s def cleanup_sessions(): 204s for session in self.sess_api.list().json(): 204s > self.sess_api.delete(session['id']) 204s 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 204s return self._req('DELETE', id) 204s ^^^^^^^^^^^^^^^^^^^^^^^ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 204s response.raise_for_status() 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s 204s self = 204s 204s def raise_for_status(self): 204s """Raises :class:`HTTPError`, if one occurred.""" 204s 204s http_error_msg = "" 204s if isinstance(self.reason, bytes): 204s # We attempt to decode utf-8 first because some servers 204s # choose to localize their reason strings. If the string 204s # isn't utf-8, we fall back to iso-8859-1 for all other 204s # encodings. (See PR #3538) 204s try: 204s reason = self.reason.decode("utf-8") 204s except UnicodeDecodeError: 204s reason = self.reason.decode("iso-8859-1") 204s else: 204s reason = self.reason 204s 204s if 400 <= self.status_code < 500: 204s http_error_msg = ( 204s f"{self.status_code} Client Error: {reason} for url: {self.url}" 204s ) 204s 204s elif 500 <= self.status_code < 600: 204s http_error_msg = ( 204s f"{self.status_code} Server Error: {reason} for url: {self.url}" 204s ) 204s 204s if http_error_msg: 204s > raise HTTPError(http_error_msg, response=self) 204s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5fc80c3f-ab81-4044-b921-141bb981e449 204s 204s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 204s ----------------------------- Captured stderr call ----------------------------- 204s Traceback (most recent call last): 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s "__main__", mod_spec) 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s ~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 204s from pathlib import Path 204s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 204s from ._local import * 204s File "/usr/lib/python3.13/pathlib/_local.py", line 12, in 204s import pwd 204s File "", line 1360, in _find_and_load 204s File "", line 1322, in _find_and_load_unlocked 204s File "", line 1256, in _find_spec 204s File "", line 1224, in __enter__ 204s KeyboardInterrupt 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.790000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5zh2bsm3/runtime/kernel-b1995b58-2e45-4448-b6c3-9f7f90392e74.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37331 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36085 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: b1995b58-2e45-4448-b6c3-9f7f90392e74, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.170000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c079f608-ec31-4bc0-888e-cb48f240ba81 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c079f608-ec31-4bc0-888e-cb48f240ba81 204s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/5fc80c3f-ab81-4044-b921-141bb981e449 (::1) 1.050000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.470000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.740000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b1995b58-2e45-4448-b6c3-9f7f90392e74 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b1995b58-2e45-4448-b6c3-9f7f90392e74 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5fc80c3f-ab81-4044-b921-141bb981e449 (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5fc80c3f-ab81-4044-b921-141bb981e449', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 204s future.result() 204s ~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 204s yield maybe_future(sm.delete_session(session_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 204s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 204s raise self._exception.with_traceback(self._exception_tb) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 204s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 204s raise km.ready.exception() # type: ignore[misc] 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s ERROR NotebookApp:log.py:55 { 204s "Host": "localhost:12341", 204s "Accept": "*/*", 204s "User-Agent": "python-requests/2.32.5" 204s } 204s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/5fc80c3f-ab81-4044-b921-141bb981e449 (::1) 7.150000ms referer=None 204s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 204s 204s @self.addCleanup 204s def cleanup_sessions(): 204s for session in self.sess_api.list().json(): 204s > self.sess_api.delete(session['id']) 204s 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 204s return self._req('DELETE', id) 204s ^^^^^^^^^^^^^^^^^^^^^^^ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 204s response.raise_for_status() 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s 204s self = 204s 204s def raise_for_status(self): 204s """Raises :class:`HTTPError`, if one occurred.""" 204s 204s http_error_msg = "" 204s if isinstance(self.reason, bytes): 204s # We attempt to decode utf-8 first because some servers 204s # choose to localize their reason strings. If the string 204s # isn't utf-8, we fall back to iso-8859-1 for all other 204s # encodings. (See PR #3538) 204s try: 204s reason = self.reason.decode("utf-8") 204s except UnicodeDecodeError: 204s reason = self.reason.decode("iso-8859-1") 204s else: 204s reason = self.reason 204s 204s if 400 <= self.status_code < 500: 204s http_error_msg = ( 204s f"{self.status_code} Client Error: {reason} for url: {self.url}" 204s ) 204s 204s elif 500 <= self.status_code < 600: 204s http_error_msg = ( 204s f"{self.status_code} Server Error: {reason} for url: {self.url}" 204s ) 204s 204s if http_error_msg: 204s > raise HTTPError(http_error_msg, response=self) 204s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5fc80c3f-ab81-4044-b921-141bb981e449 204s 204s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 204s ----------------------------- Captured stderr call ----------------------------- 204s Traceback (most recent call last): 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.030000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5zh2bsm3/runtime/kernel-41f81351-184a-4abc-995c-2dbe878df4ff.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41837 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38525 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: 41f81351-184a-4abc-995c-2dbe878df4ff, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp5zh2bsm3/notebooks/foo'} 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b1995b58-2e45-4448-b6c3-9f7f90392e74 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b1995b58-2e45-4448-b6c3-9f7f90392e74 204s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/5fc80c3f-ab81-4044-b921-141bb981e449 (::1) 14.570000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.590000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.520000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 41f81351-184a-4abc-995c-2dbe878df4ff 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 41f81351-184a-4abc-995c-2dbe878df4ff 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5fc80c3f-ab81-4044-b921-141bb981e449 (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5fc80c3f-ab81-4044-b921-141bb981e449', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 204s future.result() 204s ~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 204s yield maybe_future(sm.delete_session(session_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 204s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 204s raise self._exception.with_traceback(self._exception_tb) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 204s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 204s raise km.ready.exception() # type: ignore[misc] 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s --------------------------- Captured stderr teardown --------------------------- 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s "__main__", mod_spec) 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s ~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 204s from pathlib import Path 204s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 204s from ._abc import * 204s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 204s from glob import _Globber, _no_recurse_symlinks 204s File "/usr/lib/python3.13/glob.py", line 5, in 204s import re 204s File "/usr/lib/python3.13/re/__init__.py", line 126, in 204s from . import _compiler, _parser 204s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 204s from . import _parser 204s File "", line 1360, in _find_and_load 204s File "", line 1331, in _find_and_load_unlocked 204s File "", line 935, in _load_unlocked 204s File "", line 1019, in exec_module 204s File "", line 1115, in get_code 204s File "", line 1215, in get_data 204s KeyboardInterrupt 204s =============================== warnings summary =============================== 204s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 204s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 204s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 204s return LooseVersion(v) >= LooseVersion(check) 204s 204s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 204s services/kernels/tests/test_kernels_api.py: 66 warnings 204s services/sessions/tests/test_sessions_api.py: 96 warnings 204s /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). 204s dt = unaware(*args, **kwargs) 204s 204s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 204s /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 204s pytestmark = pytest.mark.integration_tests 204s 204s services/kernels/tests/test_kernels_api.py: 6 warnings 204s services/sessions/tests/test_sessions_api.py: 6 warnings 204s /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 204s policy = events.get_event_loop_policy() 204s 204s services/kernels/tests/test_kernels_api.py: 24 warnings 204s services/sessions/tests/test_sessions_api.py: 19 warnings 204s /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 204s loop = events.get_event_loop_policy().get_event_loop() 204s 204s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 204s loop.make_current() 204s 204s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 204s =========================== short test summary info ============================ 204s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 204s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 204s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 204s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 204s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 204s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 204s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 204s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 204s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 204s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 204s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 204s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 204s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 204s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 204s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 204s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 204s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 204s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 204s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 204s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 204s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 204s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 204s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 204s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 204s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 204s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 204s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 204s ===== 23 failed, 2 passed, 305 deselected, 222 warnings, 4 errors in 6.60s ===== 204s *** END OF RUN 3: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 204s *** 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 208s ============================= test session starts ============================== 208s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 208s rootdir: /tmp/autopkgtest.XnQU0x/autopkgtest_tmp 208s plugins: typeguard-4.4.4 208s collected 330 items / 307 deselected / 23 selected 208s run-last-failure: rerun previous 23 failures 208s 210s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 39%] 211s services/sessions/tests/test_sessions_api.py FFFFFEFFFFFFFEFF [100%] 211s 211s ==================================== ERRORS ==================================== 211s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 211s 211s self = 211s 211s def tearDown(self): 211s for k in self.kern_api.list().json(): 211s > self.kern_api.shutdown(k['id']) 211s 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 211s return self._req('DELETE', id) 211s ^^^^^^^^^^^^^^^^^^^^^^^ 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 211s response.raise_for_status() 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s 211s self = 211s 211s def raise_for_status(self): 211s """Raises :class:`HTTPError`, if one occurred.""" 211s 211s http_error_msg = "" 211s if isinstance(self.reason, bytes): 211s # We attempt to decode utf-8 first because some servers 211s # choose to localize their reason strings. If the string 211s # isn't utf-8, we fall back to iso-8859-1 for all other 211s # encodings. (See PR #3538) 211s try: 211s reason = self.reason.decode("utf-8") 211s except UnicodeDecodeError: 211s reason = self.reason.decode("iso-8859-1") 211s else: 211s reason = self.reason 211s 211s if 400 <= self.status_code < 500: 211s http_error_msg = ( 211s f"{self.status_code} Client Error: {reason} for url: {self.url}" 211s ) 211s 211s elif 500 <= self.status_code < 600: 211s http_error_msg = ( 211s f"{self.status_code} Server Error: {reason} for url: {self.url}" 211s ) 211s 211s if http_error_msg: 211s > raise HTTPError(http_error_msg, response=self) 211s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/89b2e4a0-f615-48e4-8865-2164d0f70e9a 211s 211s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 211s ----------------------------- Captured stderr call ----------------------------- 211s Traceback (most recent call last): 211s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 211s return _run_code(code, main_globals, None, 211s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 211s exec(code, run_globals) 211s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 211s from ipykernel import kernelapp as app 211s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 211s from .connect import * # noqa: F403 211s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 211s import json 211s File "/usr/lib/python3.13/json/__init__.py", line 106, in 211s from .decoder import JSONDecoder, JSONDecodeError 211s File "", line 645, in parent 211s KeyboardInterrupt 211s Traceback (most recent call last): 211s ------------------------------ Captured log call ------------------------------- 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptgh4mzx7/runtime/kernel-89b2e4a0-f615-48e4-8865-2164d0f70e9a.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48779 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57809 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: 89b2e4a0-f615-48e4-8865-2164d0f70e9a, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.240000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptgh4mzx7/runtime/kernel-5bb1ebdc-4098-4c2a-9912-2eba1693b50c.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46885 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48789 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5bb1ebdc-4098-4c2a-9912-2eba1693b50c, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.910000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 5bb1ebdc-4098-4c2a-9912-2eba1693b50c 211s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/5bb1ebdc-4098-4c2a-9912-2eba1693b50c/interrupt (::1) 1.870000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 211s yield maybe_future(km.restart_kernel(kernel_id)) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 211s raise self._exception.with_traceback(self._exception_tb) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 211s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 211s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 211s return _runner_map[name].run(inner) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 211s return fut.result(None) 211s ~~~~~~~~~~^^^^^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 211s return self.__get_result() 211s ~~~~~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 211s raise self._exception 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 211s await ensure_async(kernel.restart_kernel(now=now)) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 211s return _runner_map[name].run(inner) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 211s return fut.result(None) 211s ~~~~~~~~~~^^^^^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 211s return self.__get_result() 211s ~~~~~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 211s raise self._exception 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 211s await self._async_shutdown_kernel(now=now, restart=True) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:log.py:55 { 211s "Host": "localhost:12341", 211s "Accept": "*/*", 211s "User-Agent": "python-requests/2.32.5" 211s } 211s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/5bb1ebdc-4098-4c2a-9912-2eba1693b50c/restart (::1) 6.130000ms referer=None 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.590000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 89b2e4a0-f615-48e4-8865-2164d0f70e9a 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 89b2e4a0-f615-48e4-8865-2164d0f70e9a 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/89b2e4a0-f615-48e4-8865-2164d0f70e9a (::1) 211s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/89b2e4a0-f615-48e4-8865-2164d0f70e9a', version='HTTP/1.1', remote_ip='::1') 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 211s result = await result 211s ^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 211s yielded = ctx_run(next, result) 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 211s yield maybe_future(km.shutdown_kernel(kernel_id)) 211s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 211s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 211s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 211s return _runner_map[name].run(inner) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 211s return fut.result(None) 211s ~~~~~~~~~~^^^^^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 211s return self.__get_result() 211s ~~~~~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 211s raise self._exception 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 211s stopper = ensure_async(km.shutdown_kernel(now, restart)) 211s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 211s return _runner_map[name].run(inner) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 211s return fut.result(None) 211s ~~~~~~~~~~^^^^^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 211s return self.__get_result() 211s ~~~~~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 211s raise self._exception 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s WARNING NotebookApp:handlers.py:612 Unhandled error 211s --------------------------- Captured stderr teardown --------------------------- 211s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 211s return _run_code(code, main_globals, None, 211s "__main__", mod_spec) 211s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 211s exec(code, run_globals) 211s ~~~~^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 211s from ipykernel import kernelapp as app 211s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 211s from .connect import * # noqa: F403 211s ^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 211s import jupyter_client 211s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 211s from .asynchronous import AsyncKernelClient 211s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 211s from .client import AsyncKernelClient # noqa 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 211s import zmq.asyncio 211s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 211s from zmq import backend 211s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 211s _ns = select_backend(first) 211s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 211s mod = import_module(name) 211s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 211s return _bootstrap._gcd_import(name[level:], package, level) 211s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 211s from . import _zmq 211s File "_zmq.py", line 156, in init zmq.backend.cython._zmq 211s File "/usr/lib/python3/dist-packages/zmq/constants.py", line 134, in 211s class SocketOption(IntEnum): 211s ...<138 lines>... 211s NORM_PUSH = 124 211s File "/usr/lib/python3.13/enum.py", line 544, in __new__ 211s classdict[name] = _proto_member(value) 211s ~~~~~~~~~^^^^^^ 211s KeyboardInterrupt 211s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 211s 211s self = 211s 211s def tearDown(self): 211s for k in self.kern_api.list().json(): 211s > self.kern_api.shutdown(k['id']) 211s 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 211s return self._req('DELETE', id) 211s ^^^^^^^^^^^^^^^^^^^^^^^ 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 211s response.raise_for_status() 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s 211s self = 211s 211s def raise_for_status(self): 211s """Raises :class:`HTTPError`, if one occurred.""" 211s 211s http_error_msg = "" 211s if isinstance(self.reason, bytes): 211s # We attempt to decode utf-8 first because some servers 211s # choose to localize their reason strings. If the string 211s # isn't utf-8, we fall back to iso-8859-1 for all other 211s # encodings. (See PR #3538) 211s try: 211s reason = self.reason.decode("utf-8") 211s except UnicodeDecodeError: 211s reason = self.reason.decode("iso-8859-1") 211s else: 211s reason = self.reason 211s 211s if 400 <= self.status_code < 500: 211s http_error_msg = ( 211s f"{self.status_code} Client Error: {reason} for url: {self.url}" 211s ) 211s 211s elif 500 <= self.status_code < 600: 211s http_error_msg = ( 211s f"{self.status_code} Server Error: {reason} for url: {self.url}" 211s ) 211s 211s if http_error_msg: 211s > raise HTTPError(http_error_msg, response=self) 211s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/ec2437f0-3b9a-460c-ac8c-2e5f00c09f38 211s 211s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 211s ----------------------------- Captured stderr call ----------------------------- 211s Traceback (most recent call last): 211s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 211s return _run_code(code, main_globals, None, 211s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 211s exec(code, run_globals) 211s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 211s from pathlib import Path 211s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 211s from ._local import * 211s File "/usr/lib/python3.13/pathlib/_local.py", line 58, in 211s class PurePath(PurePathBase): 211s KeyboardInterrupt 211s Traceback (most recent call last): 211s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 211s return _run_code(code, main_globals, None, 211s "__main__", mod_spec) 211s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 211s exec(code, run_globals) 211s ~~~~^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 211s from ipykernel import kernelapp as app 211s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 211s from .connect import * # noqa: F403 211s ^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 211s import jupyter_client 211s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 211s from .asynchronous import AsyncKernelClient 211s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 211s from .client import AsyncKernelClient # noqa 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 211s import zmq.asyncio 211s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 211s import asyncio 211s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 211s from .base_events import * 211s File "/usr/lib/python3.13/asyncio/base_events.py", line 23, in 211s import socket 211s File "", line 1360, in _find_and_load 211s File "", line 1331, in _find_and_load_unlocked 211s File "", line 935, in _load_unlocked 211s File "", line 1019, in exec_module 211s File "", line 1115, in get_code 211s File "", line 1214, in get_data 211s KeyboardInterrupt 211s ------------------------------ Captured log call ------------------------------- 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp46t2bwoi/runtime/kernel-ec2437f0-3b9a-460c-ac8c-2e5f00c09f38.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59683 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33597 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: ec2437f0-3b9a-460c-ac8c-2e5f00c09f38, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.770000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp46t2bwoi/runtime/kernel-7b42d7dd-e63f-481c-8b35-9d7afa37f6b8.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46377 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54139 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7b42d7dd-e63f-481c-8b35-9d7afa37f6b8, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.010000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.550000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 7b42d7dd-e63f-481c-8b35-9d7afa37f6b8 211s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/7b42d7dd-e63f-481c-8b35-9d7afa37f6b8/interrupt (::1) 0.590000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 211s yield maybe_future(km.restart_kernel(kernel_id)) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 211s raise self._exception.with_traceback(self._exception_tb) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 211s result = coro.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 211s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 211s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 211s yield self # This tells Task to wait for completion. 211s ^^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 211s future.result() 211s ~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 211s raise self._exception.with_traceback(self._exception_tb) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 211s await ensure_async(kernel.restart_kernel(now=now)) 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 211s result = await obj 211s ^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 211s await self._async_shutdown_kernel(now=now, restart=True) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:log.py:55 { 211s "Host": "localhost:12341", 211s "Accept": "*/*", 211s "User-Agent": "python-requests/2.32.5" 211s } 211s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/7b42d7dd-e63f-481c-8b35-9d7afa37f6b8/restart (::1) 6.740000ms referer=None 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.110000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ec2437f0-3b9a-460c-ac8c-2e5f00c09f38 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ec2437f0-3b9a-460c-ac8c-2e5f00c09f38 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 211s await kernel_awaitable 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 211s result = await obj 211s ^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/ec2437f0-3b9a-460c-ac8c-2e5f00c09f38 (::1) 211s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/ec2437f0-3b9a-460c-ac8c-2e5f00c09f38', version='HTTP/1.1', remote_ip='::1') 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 211s result = await result 211s ^^^^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 211s future.result() 211s ~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 211s yield maybe_future(km.shutdown_kernel(kernel_id)) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 211s raise self._exception.with_traceback(self._exception_tb) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 211s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 211s raise km.ready.exception() # type: ignore[misc] 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 211s await kernel_awaitable 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 211s result = await obj 211s ^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s WARNING NotebookApp:handlers.py:612 Unhandled error 211s ERROR NotebookApp:log.py:55 { 211s "Host": "localhost:12341", 211s "Accept": "*/*", 211s "User-Agent": "python-requests/2.32.5" 211s } 211s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/ec2437f0-3b9a-460c-ac8c-2e5f00c09f38 (::1) 6.100000ms referer=None 211s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 211s 211s @self.addCleanup 211s def cleanup_sessions(): 211s for session in self.sess_api.list().json(): 211s > self.sess_api.delete(session['id']) 211s 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 211s return self._req('DELETE', id) 211s ^^^^^^^^^^^^^^^^^^^^^^^ 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 211s response.raise_for_status() 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s 211s self = 211s 211s def raise_for_status(self): 211s """Raises :class:`HTTPError`, if one occurred.""" 211s 211s http_error_msg = "" 211s if isinstance(self.reason, bytes): 211s # We attempt to decode utf-8 first because some servers 211s # choose to localize their reason strings. If the string 211s # isn't utf-8, we fall back to iso-8859-1 for all other 211s # encodings. (See PR #3538) 211s try: 211s reason = self.reason.decode("utf-8") 211s except UnicodeDecodeError: 211s reason = self.reason.decode("iso-8859-1") 211s else: 211s reason = self.reason 211s 211s if 400 <= self.status_code < 500: 211s http_error_msg = ( 211s f"{self.status_code} Client Error: {reason} for url: {self.url}" 211s ) 211s 211s elif 500 <= self.status_code < 600: 211s http_error_msg = ( 211s f"{self.status_code} Server Error: {reason} for url: {self.url}" 211s ) 211s 211s if http_error_msg: 211s > raise HTTPError(http_error_msg, response=self) 211s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f0976809-ee9b-4da6-b48a-1875c28e305f 211s 211s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 211s ----------------------------- Captured stderr call ----------------------------- 211s Traceback (most recent call last): 211s ------------------------------ Captured log call ------------------------------- 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp44who2hx/runtime/kernel-d5c1378e-7541-4d11-b7dd-1891bb6506c9.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35351 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47047 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: d5c1378e-7541-4d11-b7dd-1891bb6506c9, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.980000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.650000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.580000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 04fb418b-69fe-4e13-a155-c003ee221ecb 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 04fb418b-69fe-4e13-a155-c003ee221ecb 211s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/27035be4-2ece-428c-840f-e4b97e7b0616 (::1) 1.940000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d5c1378e-7541-4d11-b7dd-1891bb6506c9 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d5c1378e-7541-4d11-b7dd-1891bb6506c9 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f0976809-ee9b-4da6-b48a-1875c28e305f (::1) 211s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f0976809-ee9b-4da6-b48a-1875c28e305f', version='HTTP/1.1', remote_ip='::1') 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 211s result = await result 211s ^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 211s yield maybe_future(sm.delete_session(session_id)) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 211s yielded = self.gen.send(value) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 211s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 211s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 211s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 211s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 211s return _runner_map[name].run(inner) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 211s return fut.result(None) 211s ~~~~~~~~~~^^^^^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 211s return self.__get_result() 211s ~~~~~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 211s raise self._exception 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 211s stopper = ensure_async(km.shutdown_kernel(now, restart)) 211s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 211s return _runner_map[name].run(inner) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 211s return fut.result(None) 211s ~~~~~~~~~~^^^^^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 211s return self.__get_result() 211s ~~~~~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 211s raise self._exception 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s WARNING NotebookApp:handlers.py:612 Unhandled error 211s --------------------------- Captured stderr teardown --------------------------- 211s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 211s return _run_code(code, main_globals, None, 211s "__main__", mod_spec) 211s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 211s exec(code, run_globals) 211s ~~~~^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 211s from ipykernel import kernelapp as app 211s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 211s from .connect import * # noqa: F403 211s ^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 211s from subprocess import PIPE, Popen 211s File "", line 1360, in _find_and_load 211s File "", line 1331, in _find_and_load_unlocked 211s File "", line 935, in _load_unlocked 211s File "", line 1019, in exec_module 211s File "", line 1152, in get_code 211s File "", line 781, in _compile_bytecode 211s KeyboardInterrupt 211s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 211s 211s @self.addCleanup 211s def cleanup_sessions(): 211s for session in self.sess_api.list().json(): 211s > self.sess_api.delete(session['id']) 211s 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 211s return self._req('DELETE', id) 211s ^^^^^^^^^^^^^^^^^^^^^^^ 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 211s response.raise_for_status() 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s 211s self = 211s 211s def raise_for_status(self): 211s """Raises :class:`HTTPError`, if one occurred.""" 211s 211s http_error_msg = "" 211s if isinstance(self.reason, bytes): 211s # We attempt to decode utf-8 first because some servers 211s # choose to localize their reason strings. If the string 211s # isn't utf-8, we fall back to iso-8859-1 for all other 211s # encodings. (See PR #3538) 211s try: 211s reason = self.reason.decode("utf-8") 211s except UnicodeDecodeError: 211s reason = self.reason.decode("iso-8859-1") 211s else: 211s reason = self.reason 211s 211s if 400 <= self.status_code < 500: 211s http_error_msg = ( 211s f"{self.status_code} Client Error: {reason} for url: {self.url}" 211s ) 211s 211s elif 500 <= self.status_code < 600: 211s http_error_msg = ( 211s f"{self.status_code} Server Error: {reason} for url: {self.url}" 211s ) 211s 211s if http_error_msg: 211s > raise HTTPError(http_error_msg, response=self) 211s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b8fce4cf-4cd8-4efb-9f88-6321c6f2ad85 211s 211s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 211s ----------------------------- Captured stderr call ----------------------------- 211s Traceback (most recent call last): 211s ------------------------------ Captured log call ------------------------------- 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp43fkdcty/runtime/kernel-7b7475e2-152f-4fe5-ad54-2517846968f4.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36983 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57153 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7b7475e2-152f-4fe5-ad54-2517846968f4, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.450000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.880000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.640000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.590000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 05f92ee5-9e93-4783-bf87-08e3cc248982 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 05f92ee5-9e93-4783-bf87-08e3cc248982 211s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/4ee256a5-5ae6-4156-82ea-2808c209f666 (::1) 0.720000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7b7475e2-152f-4fe5-ad54-2517846968f4 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7b7475e2-152f-4fe5-ad54-2517846968f4 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 211s await kernel_awaitable 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 211s result = await obj 211s ^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b8fce4cf-4cd8-4efb-9f88-6321c6f2ad85 (::1) 211s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b8fce4cf-4cd8-4efb-9f88-6321c6f2ad85', version='HTTP/1.1', remote_ip='::1') 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 211s result = await result 211s ^^^^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 211s future.result() 211s ~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 211s yield maybe_future(sm.delete_session(session_id)) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 211s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 211s raise self._exception.with_traceback(self._exception_tb) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 211s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 211s raise km.ready.exception() # type: ignore[misc] 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 211s await kernel_awaitable 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 211s result = await obj 211s ^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s WARNING NotebookApp:handlers.py:612 Unhandled error 211s --------------------------- Captured stderr teardown --------------------------- 211s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 211s return _run_code(code, main_globals, None, 211s "__main__", mod_spec) 211s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 211s exec(code, run_globals) 211s ~~~~^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 211s from ipykernel import kernelapp as app 211s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 211s from .connect import * # noqa: F403 211s ^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 211s import json 211s File "/usr/lib/python3.13/json/__init__.py", line 106, in 211s from .decoder import JSONDecoder, JSONDecodeError 211s File "/usr/lib/python3.13/json/decoder.py", line 5, in 211s from json import scanner 211s File "/usr/lib/python3.13/json/scanner.py", line 13, in 211s (re.VERBOSE | re.MULTILINE | re.DOTALL)) 211s ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 211s File "/usr/lib/python3.13/enum.py", line 1605, in __or__ 211s return self.__class__(value | other_value) 211s ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3.13/enum.py", line 726, in __call__ 211s return cls.__new__(cls, value) 211s ~~~~~~~~~~~^^^^^^^^^^^^ 211s File "/usr/lib/python3.13/enum.py", line 1188, in __new__ 211s result = cls._missing_(value) 211s File "/usr/lib/python3.13/enum.py", line 1535, in _missing_ 211s pseudo_member._name_ = '|'.join([m._name_ for m in members]) 211s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s KeyboardInterrupt 211s =================================== FAILURES =================================== 211s ______________________ KernelAPITest.test_default_kernel _______________________ 211s 211s self = 211s 211s def tearDown(self): 211s for k in self.kern_api.list().json(): 211s > self.kern_api.shutdown(k['id']) 211s 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 211s return self._req('DELETE', id) 211s ^^^^^^^^^^^^^^^^^^^^^^^ 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 211s response.raise_for_status() 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s 211s self = 211s 211s def raise_for_status(self): 211s """Raises :class:`HTTPError`, if one occurred.""" 211s 211s http_error_msg = "" 211s if isinstance(self.reason, bytes): 211s # We attempt to decode utf-8 first because some servers 211s # choose to localize their reason strings. If the string 211s # isn't utf-8, we fall back to iso-8859-1 for all other 211s # encodings. (See PR #3538) 211s try: 211s reason = self.reason.decode("utf-8") 211s except UnicodeDecodeError: 211s reason = self.reason.decode("iso-8859-1") 211s else: 211s reason = self.reason 211s 211s if 400 <= self.status_code < 500: 211s http_error_msg = ( 211s f"{self.status_code} Client Error: {reason} for url: {self.url}" 211s ) 211s 211s elif 500 <= self.status_code < 600: 211s http_error_msg = ( 211s f"{self.status_code} Server Error: {reason} for url: {self.url}" 211s ) 211s 211s if http_error_msg: 211s > raise HTTPError(http_error_msg, response=self) 211s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/db1c9502-96c5-4812-97e9-fa3dd7956881 211s 211s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 211s ------------------------------ Captured log setup ------------------------------ 211s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmptgh4mzx7/config', '/tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmptgh4mzx7/etc/jupyter'] for config files 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmptgh4mzx7/etc/jupyter 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmptgh4mzx7/config 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmptgh4mzx7/etc/jupyter 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmptgh4mzx7/config 211s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmptgh4mzx7/notebooks 211s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 211s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 211s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 211s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 211s WARNING NotebookApp:handlers.py:612 Forbidden 211s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.670000ms referer=None 211s ----------------------------- Captured stderr call ----------------------------- 211s Traceback (most recent call last): 211s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 211s return _run_code(code, main_globals, None, 211s "__main__", mod_spec) 211s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 211s exec(code, run_globals) 211s ~~~~^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 211s from ipykernel import kernelapp as app 211s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 211s from .connect import * # noqa: F403 211s ^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 211s import json 211s File "/usr/lib/python3.13/json/__init__.py", line 107, in 211s from .encoder import JSONEncoder 211s File "/usr/lib/python3.13/json/encoder.py", line 20, in 211s HAS_UTF8 = re.compile(b'[\x80-\xff]') 211s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 211s return _compile(pattern, flags) 211s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 211s p = _compiler.compile(pattern, flags) 211s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 211s code = _code(p, flags) 211s File "/usr/lib/python3.13/re/_compiler.py", line 582, in _code 211s _compile_info(code, p, flags) 211s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3.13/re/_compiler.py", line 553, in _compile_info 211s emit(lo) 211s ~~~~^^^^ 211s KeyboardInterrupt 211s ------------------------------ Captured log call ------------------------------- 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptgh4mzx7/runtime/kernel-db1c9502-96c5-4812-97e9-fa3dd7956881.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47891 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45427 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: db1c9502-96c5-4812-97e9-fa3dd7956881, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 60.200000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.670000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for db1c9502-96c5-4812-97e9-fa3dd7956881 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: db1c9502-96c5-4812-97e9-fa3dd7956881 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/db1c9502-96c5-4812-97e9-fa3dd7956881 (::1) 211s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/db1c9502-96c5-4812-97e9-fa3dd7956881', version='HTTP/1.1', remote_ip='::1') 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 211s result = await result 211s ^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 211s yielded = ctx_run(next, result) 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 211s yield maybe_future(km.shutdown_kernel(kernel_id)) 211s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 211s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 211s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 211s return _runner_map[name].run(inner) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 211s return fut.result(None) 211s ~~~~~~~~~~^^^^^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 211s return self.__get_result() 211s ~~~~~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 211s raise self._exception 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 211s stopper = ensure_async(km.shutdown_kernel(now, restart)) 211s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 211s return _runner_map[name].run(inner) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 211s return fut.result(None) 211s ~~~~~~~~~~^^^^^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 211s return self.__get_result() 211s ~~~~~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 211s raise self._exception 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s WARNING NotebookApp:handlers.py:612 Unhandled error 211s ERROR NotebookApp:log.py:55 { 211s "Host": "localhost:12341", 211s "Accept": "*/*", 211s "User-Agent": "python-requests/2.32.5" 211s } 211s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/db1c9502-96c5-4812-97e9-fa3dd7956881 (::1) 8.930000ms referer=None 211s ______________________ KernelAPITest.test_kernel_handler _______________________ 211s 211s self = 211s 211s def test_kernel_handler(self): 211s # GET kernel with given id 211s kid = self.kern_api.start().json()['id'] 211s r = self.kern_api.get(kid) 211s kern1 = r.json() 211s self.assertEqual(r.status_code, 200) 211s assert isinstance(kern1, dict) 211s self.assertIn('id', kern1) 211s self.assertEqual(kern1['id'], kid) 211s 211s # Request a bad kernel id and check that a JSON 211s # message is returned! 211s bad_id = '111-111-111-111-111' 211s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 211s self.kern_api.get(bad_id) 211s 211s # DELETE kernel with id 211s > r = self.kern_api.shutdown(kid) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 211s return self._req('DELETE', id) 211s ^^^^^^^^^^^^^^^^^^^^^^^ 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 211s response.raise_for_status() 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s 211s self = 211s 211s def raise_for_status(self): 211s """Raises :class:`HTTPError`, if one occurred.""" 211s 211s http_error_msg = "" 211s if isinstance(self.reason, bytes): 211s # We attempt to decode utf-8 first because some servers 211s # choose to localize their reason strings. If the string 211s # isn't utf-8, we fall back to iso-8859-1 for all other 211s # encodings. (See PR #3538) 211s try: 211s reason = self.reason.decode("utf-8") 211s except UnicodeDecodeError: 211s reason = self.reason.decode("iso-8859-1") 211s else: 211s reason = self.reason 211s 211s if 400 <= self.status_code < 500: 211s http_error_msg = ( 211s f"{self.status_code} Client Error: {reason} for url: {self.url}" 211s ) 211s 211s elif 500 <= self.status_code < 600: 211s http_error_msg = ( 211s f"{self.status_code} Server Error: {reason} for url: {self.url}" 211s ) 211s 211s if http_error_msg: 211s > raise HTTPError(http_error_msg, response=self) 211s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/45aeedf3-2072-4f97-bd2b-e08a07cf039a 211s 211s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 211s ----------------------------- Captured stderr call ----------------------------- 211s Traceback (most recent call last): 211s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 211s return _run_code(code, main_globals, None, 211s "__main__", mod_spec) 211s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 211s exec(code, run_globals) 211s ~~~~^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 211s from ipykernel import kernelapp as app 211s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 211s from .connect import * # noqa: F403 211s ^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 211s from subprocess import PIPE, Popen 211s File "/usr/lib/python3.13/subprocess.py", line 46, in 211s import locale 211s File "/usr/lib/python3.13/locale.py", line 180, in 211s _percent_re = re.compile(r'%(?:\((?P.*?)\))?' 211s r'(?P[-#0-9 +*.hlL]*?)[eEfFgGdiouxXcrs%]') 211s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 211s return _compile(pattern, flags) 211s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 211s p = _compiler.compile(pattern, flags) 211s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 211s code = _code(p, flags) 211s File "/usr/lib/python3.13/re/_compiler.py", line 585, in _code 211s _compile(code, p.data, flags) 211s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3.13/re/_compiler.py", line 117, in _compile 211s _compile(code, av[2], flags) 211s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3.13/re/_compiler.py", line 126, in _compile 211s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 211s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3.13/re/_compiler.py", line 109, in _compile 211s _compile(code, av[2], flags) 211s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3.13/re/_compiler.py", line 102, in _compile 211s emit(ANY) 211s ~~~~^^^^^ 211s KeyboardInterrupt 211s ------------------------------ Captured log call ------------------------------- 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptgh4mzx7/runtime/kernel-45aeedf3-2072-4f97-bd2b-e08a07cf039a.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37163 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46293 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: 45aeedf3-2072-4f97-bd2b-e08a07cf039a, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.340000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/45aeedf3-2072-4f97-bd2b-e08a07cf039a (::1) 0.540000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s 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 211s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 211s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.630000ms referer=None 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 45aeedf3-2072-4f97-bd2b-e08a07cf039a 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 45aeedf3-2072-4f97-bd2b-e08a07cf039a 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/45aeedf3-2072-4f97-bd2b-e08a07cf039a (::1) 211s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/45aeedf3-2072-4f97-bd2b-e08a07cf039a', version='HTTP/1.1', remote_ip='::1') 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 211s result = await result 211s ^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 211s yielded = ctx_run(next, result) 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 211s yield maybe_future(km.shutdown_kernel(kernel_id)) 211s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 211s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 211s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 211s return _runner_map[name].run(inner) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 211s return fut.result(None) 211s ~~~~~~~~~~^^^^^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 211s return self.__get_result() 211s ~~~~~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 211s raise self._exception 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 211s stopper = ensure_async(km.shutdown_kernel(now, restart)) 211s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 211s return _runner_map[name].run(inner) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 211s return fut.result(None) 211s ~~~~~~~~~~^^^^^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 211s return self.__get_result() 211s ~~~~~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 211s raise self._exception 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s WARNING NotebookApp:handlers.py:612 Unhandled error 211s ERROR NotebookApp:log.py:55 { 211s "Host": "localhost:12341", 211s "Accept": "*/*", 211s "User-Agent": "python-requests/2.32.5" 211s } 211s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/45aeedf3-2072-4f97-bd2b-e08a07cf039a (::1) 7.810000ms referer=None 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.680000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for db1c9502-96c5-4812-97e9-fa3dd7956881 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: db1c9502-96c5-4812-97e9-fa3dd7956881 211s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/db1c9502-96c5-4812-97e9-fa3dd7956881 (::1) 1.780000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 45aeedf3-2072-4f97-bd2b-e08a07cf039a 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 45aeedf3-2072-4f97-bd2b-e08a07cf039a 211s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 211s 211s self = 211s 211s def test_main_kernel_handler(self): 211s # POST request 211s r = self.kern_api.start() 211s kern1 = r.json() 211s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 211s self.assertEqual(r.status_code, 201) 211s self.assertIsInstance(kern1, dict) 211s 211s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 211s expected_csp = '; '.join([ 211s "frame-ancestors 'self'", 211s 'report-uri ' + report_uri, 211s "default-src 'none'" 211s ]) 211s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 211s 211s # GET request 211s r = self.kern_api.list() 211s self.assertEqual(r.status_code, 200) 211s assert isinstance(r.json(), list) 211s self.assertEqual(r.json()[0]['id'], kern1['id']) 211s self.assertEqual(r.json()[0]['name'], kern1['name']) 211s 211s # create another kernel and check that they both are added to the 211s # list of kernels from a GET request 211s kern2 = self.kern_api.start().json() 211s assert isinstance(kern2, dict) 211s r = self.kern_api.list() 211s kernels = r.json() 211s self.assertEqual(r.status_code, 200) 211s assert isinstance(kernels, list) 211s self.assertEqual(len(kernels), 2) 211s 211s # Interrupt a kernel 211s r = self.kern_api.interrupt(kern2['id']) 211s self.assertEqual(r.status_code, 204) 211s 211s # Restart a kernel 211s > r = self.kern_api.restart(kern2['id']) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 211s return self._req('POST', url_path_join(id, 'restart')) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 211s response.raise_for_status() 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s 211s self = 211s 211s def raise_for_status(self): 211s """Raises :class:`HTTPError`, if one occurred.""" 211s 211s http_error_msg = "" 211s if isinstance(self.reason, bytes): 211s # We attempt to decode utf-8 first because some servers 211s # choose to localize their reason strings. If the string 211s # isn't utf-8, we fall back to iso-8859-1 for all other 211s # encodings. (See PR #3538) 211s try: 211s reason = self.reason.decode("utf-8") 211s except UnicodeDecodeError: 211s reason = self.reason.decode("iso-8859-1") 211s else: 211s reason = self.reason 211s 211s if 400 <= self.status_code < 500: 211s http_error_msg = ( 211s f"{self.status_code} Client Error: {reason} for url: {self.url}" 211s ) 211s 211s elif 500 <= self.status_code < 600: 211s http_error_msg = ( 211s f"{self.status_code} Server Error: {reason} for url: {self.url}" 211s ) 211s 211s if http_error_msg: 211s > raise HTTPError(http_error_msg, response=self) 211s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/5bb1ebdc-4098-4c2a-9912-2eba1693b50c/restart 211s 211s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 211s ----------------------------- Captured stderr call ----------------------------- 211s Traceback (most recent call last): 211s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 211s return _run_code(code, main_globals, None, 211s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 211s exec(code, run_globals) 211s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 211s from ipykernel import kernelapp as app 211s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 211s from .connect import * # noqa: F403 211s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 211s import json 211s File "/usr/lib/python3.13/json/__init__.py", line 106, in 211s from .decoder import JSONDecoder, JSONDecodeError 211s File "", line 645, in parent 211s KeyboardInterrupt 211s Traceback (most recent call last): 211s ------------------------------ Captured log call ------------------------------- 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptgh4mzx7/runtime/kernel-89b2e4a0-f615-48e4-8865-2164d0f70e9a.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48779 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57809 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: 89b2e4a0-f615-48e4-8865-2164d0f70e9a, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.240000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptgh4mzx7/runtime/kernel-5bb1ebdc-4098-4c2a-9912-2eba1693b50c.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46885 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48789 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5bb1ebdc-4098-4c2a-9912-2eba1693b50c, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.910000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 5bb1ebdc-4098-4c2a-9912-2eba1693b50c 211s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/5bb1ebdc-4098-4c2a-9912-2eba1693b50c/interrupt (::1) 1.870000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 211s yield maybe_future(km.restart_kernel(kernel_id)) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 211s raise self._exception.with_traceback(self._exception_tb) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 211s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 211s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 211s return _runner_map[name].run(inner) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 211s return fut.result(None) 211s ~~~~~~~~~~^^^^^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 211s return self.__get_result() 211s ~~~~~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 211s raise self._exception 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 211s await ensure_async(kernel.restart_kernel(now=now)) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 211s return _runner_map[name].run(inner) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 211s return fut.result(None) 211s ~~~~~~~~~~^^^^^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 211s return self.__get_result() 211s ~~~~~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 211s raise self._exception 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 211s await self._async_shutdown_kernel(now=now, restart=True) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:log.py:55 { 211s "Host": "localhost:12341", 211s "Accept": "*/*", 211s "User-Agent": "python-requests/2.32.5" 211s } 211s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/5bb1ebdc-4098-4c2a-9912-2eba1693b50c/restart (::1) 6.130000ms referer=None 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.590000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 89b2e4a0-f615-48e4-8865-2164d0f70e9a 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 89b2e4a0-f615-48e4-8865-2164d0f70e9a 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/89b2e4a0-f615-48e4-8865-2164d0f70e9a (::1) 211s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/89b2e4a0-f615-48e4-8865-2164d0f70e9a', version='HTTP/1.1', remote_ip='::1') 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 211s result = await result 211s ^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 211s yielded = ctx_run(next, result) 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 211s yield maybe_future(km.shutdown_kernel(kernel_id)) 211s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 211s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 211s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 211s return _runner_map[name].run(inner) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 211s return fut.result(None) 211s ~~~~~~~~~~^^^^^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 211s return self.__get_result() 211s ~~~~~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 211s raise self._exception 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 211s stopper = ensure_async(km.shutdown_kernel(now, restart)) 211s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 211s return _runner_map[name].run(inner) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 211s return fut.result(None) 211s ~~~~~~~~~~^^^^^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 211s return self.__get_result() 211s ~~~~~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 211s raise self._exception 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s WARNING NotebookApp:handlers.py:612 Unhandled error 211s ________________________ KernelAPITest.test_no_kernels _________________________ 211s 211s self = 211s 211s def test_no_kernels(self): 211s """Make sure there are no kernels running at the start""" 211s kernels = self.kern_api.list().json() 211s > self.assertEqual(kernels, []) 211s E AssertionError: Lists differ: [{'id': '89b2e4a0-f615-48e4-8865-2164d0f70[281 chars]: 0}] != [] 211s E 211s E First list contains 2 additional elements. 211s E First extra element 0: 211s E {'id': '89b2e4a0-f615-48e4-8865-2164d0f70e9a', 'name': 'python3', 'last_activity': '2026-01-30T06:18:07.866110Z', 'execution_state': 'starting', 'connections': 0} 211s E 211s E + [] 211s E - [{'connections': 0, 211s E - 'execution_state': 'starting', 211s E - 'id': '89b2e4a0-f615-48e4-8865-2164d0f70e9a', 211s E - 'last_activity': '2026-01-30T06:18:07.866110Z', 211s E - 'name': 'python3'}, 211s E - {'connections': 0, 211s E - 'execution_state': 'starting', 211s E - 'id': '5bb1ebdc-4098-4c2a-9912-2eba1693b50c', 211s E - 'last_activity': '2026-01-30T06:18:07.890570Z', 211s E - 'name': 'python3'}] 211s 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 211s ------------------------------ Captured log call ------------------------------- 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.580000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.470000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 89b2e4a0-f615-48e4-8865-2164d0f70e9a 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 89b2e4a0-f615-48e4-8865-2164d0f70e9a 211s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/89b2e4a0-f615-48e4-8865-2164d0f70e9a (::1) 0.690000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5bb1ebdc-4098-4c2a-9912-2eba1693b50c 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5bb1ebdc-4098-4c2a-9912-2eba1693b50c 211s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/5bb1ebdc-4098-4c2a-9912-2eba1693b50c (::1) 0.760000ms 211s ---------------------------- Captured log teardown ----------------------------- 211s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 211s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 211s _____________________ AsyncKernelAPITest.test_connections ______________________ 211s 211s self = 211s 211s def tearDown(self): 211s for k in self.kern_api.list().json(): 211s > self.kern_api.shutdown(k['id']) 211s 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 211s return self._req('DELETE', id) 211s ^^^^^^^^^^^^^^^^^^^^^^^ 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 211s response.raise_for_status() 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s 211s self = 211s 211s def raise_for_status(self): 211s """Raises :class:`HTTPError`, if one occurred.""" 211s 211s http_error_msg = "" 211s if isinstance(self.reason, bytes): 211s # We attempt to decode utf-8 first because some servers 211s # choose to localize their reason strings. If the string 211s # isn't utf-8, we fall back to iso-8859-1 for all other 211s # encodings. (See PR #3538) 211s try: 211s reason = self.reason.decode("utf-8") 211s except UnicodeDecodeError: 211s reason = self.reason.decode("iso-8859-1") 211s else: 211s reason = self.reason 211s 211s if 400 <= self.status_code < 500: 211s http_error_msg = ( 211s f"{self.status_code} Client Error: {reason} for url: {self.url}" 211s ) 211s 211s elif 500 <= self.status_code < 600: 211s http_error_msg = ( 211s f"{self.status_code} Server Error: {reason} for url: {self.url}" 211s ) 211s 211s if http_error_msg: 211s > raise HTTPError(http_error_msg, response=self) 211s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/1b754ca3-180a-4669-a91c-bdb59c885aa1 211s 211s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 211s ------------------------------ Captured log setup ------------------------------ 211s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp46t2bwoi/config', '/tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp46t2bwoi/etc/jupyter'] for config files 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp46t2bwoi/etc/jupyter 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp46t2bwoi/config 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp46t2bwoi/etc/jupyter 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp46t2bwoi/config 211s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp46t2bwoi/notebooks 211s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 211s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 211s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 211s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 211s WARNING NotebookApp:handlers.py:612 Forbidden 211s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.460000ms referer=None 211s ------------------------------ Captured log call ------------------------------- 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp46t2bwoi/runtime/kernel-1b754ca3-180a-4669-a91c-bdb59c885aa1.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50169 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33121 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1b754ca3-180a-4669-a91c-bdb59c885aa1, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.530000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/1b754ca3-180a-4669-a91c-bdb59c885aa1 (::1) 0.540000ms 211s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/1b754ca3-180a-4669-a91c-bdb59c885aa1/channels 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 211s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 1b754ca3-180a-4669-a91c-bdb59c885aa1 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35967 211s 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/'}]} 211s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 1b754ca3-180a-4669-a91c-bdb59c885aa1) to 5.4 (client). 211s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/1b754ca3-180a-4669-a91c-bdb59c885aa1/channels (::1) 465.950000ms 211s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/1b754ca3-180a-4669-a91c-bdb59c885aa1/channels 211s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 1b754ca3-180a-4669-a91c-bdb59c885aa1 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33121 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35967 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50169 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35807 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35967 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50169 211s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 211s Setting websocket_ping_timeout=30000 211s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 1b754ca3-180a-4669-a91c-bdb59c885aa1 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/1b754ca3-180a-4669-a91c-bdb59c885aa1 (::1) 0.580000ms 211s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 1b754ca3-180a-4669-a91c-bdb59c885aa1 211s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 1b754ca3-180a-4669-a91c-bdb59c885aa1 211s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 1b754ca3-180a-4669-a91c-bdb59c885aa1 211s DEBUG NotebookApp:handlers.py:203 Nudge: resolving control future: 1b754ca3-180a-4669-a91c-bdb59c885aa1 211s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: 1b754ca3-180a-4669-a91c-bdb59c885aa1 211s DEBUG NotebookApp:handlers.py:579 Websocket closed 1b754ca3-180a-4669-a91c-bdb59c885aa1:e6140c9d-0240457b96c589f78b9e7353 211s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 1b754ca3-180a-4669-a91c-bdb59c885aa1:e6140c9d-0240457b96c589f78b9e7353 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1b754ca3-180a-4669-a91c-bdb59c885aa1 211s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 1b754ca3-180a-4669-a91c-bdb59c885aa1:iopub 211s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 1b754ca3-180a-4669-a91c-bdb59c885aa1:iopub 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 1b754ca3-180a-4669-a91c-bdb59c885aa1:iopub 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/1b754ca3-180a-4669-a91c-bdb59c885aa1 (::1) 0.630000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/1b754ca3-180a-4669-a91c-bdb59c885aa1 (::1) 0.470000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.470000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1b754ca3-180a-4669-a91c-bdb59c885aa1 211s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for 1b754ca3-180a-4669-a91c-bdb59c885aa1:e6140c9d-0240457b96c589f78b9e7353 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1b754ca3-180a-4669-a91c-bdb59c885aa1 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 211s await kernel_awaitable 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 211s result = await obj 211s ^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/1b754ca3-180a-4669-a91c-bdb59c885aa1 (::1) 211s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/1b754ca3-180a-4669-a91c-bdb59c885aa1', version='HTTP/1.1', remote_ip='::1') 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 211s result = await result 211s ^^^^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 211s future.result() 211s ~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 211s yield maybe_future(km.shutdown_kernel(kernel_id)) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 211s raise self._exception.with_traceback(self._exception_tb) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 211s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 211s raise km.ready.exception() # type: ignore[misc] 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 211s await kernel_awaitable 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 211s result = await obj 211s ^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s WARNING NotebookApp:handlers.py:612 Unhandled error 211s ERROR NotebookApp:log.py:55 { 211s "Host": "localhost:12341", 211s "Accept": "*/*", 211s "User-Agent": "python-requests/2.32.5" 211s } 211s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/1b754ca3-180a-4669-a91c-bdb59c885aa1 (::1) 6.280000ms referer=None 211s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 211s 211s self = 211s 211s def tearDown(self): 211s for k in self.kern_api.list().json(): 211s > self.kern_api.shutdown(k['id']) 211s 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 211s return self._req('DELETE', id) 211s ^^^^^^^^^^^^^^^^^^^^^^^ 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 211s response.raise_for_status() 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s 211s self = 211s 211s def raise_for_status(self): 211s """Raises :class:`HTTPError`, if one occurred.""" 211s 211s http_error_msg = "" 211s if isinstance(self.reason, bytes): 211s # We attempt to decode utf-8 first because some servers 211s # choose to localize their reason strings. If the string 211s # isn't utf-8, we fall back to iso-8859-1 for all other 211s # encodings. (See PR #3538) 211s try: 211s reason = self.reason.decode("utf-8") 211s except UnicodeDecodeError: 211s reason = self.reason.decode("iso-8859-1") 211s else: 211s reason = self.reason 211s 211s if 400 <= self.status_code < 500: 211s http_error_msg = ( 211s f"{self.status_code} Client Error: {reason} for url: {self.url}" 211s ) 211s 211s elif 500 <= self.status_code < 600: 211s http_error_msg = ( 211s f"{self.status_code} Server Error: {reason} for url: {self.url}" 211s ) 211s 211s if http_error_msg: 211s > raise HTTPError(http_error_msg, response=self) 211s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/c90044f8-a429-43cc-b891-d9c59447dfd9 211s 211s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 211s ----------------------------- Captured stderr call ----------------------------- 211s Traceback (most recent call last): 211s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 211s return _run_code(code, main_globals, None, 211s "__main__", mod_spec) 211s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 211s exec(code, run_globals) 211s ~~~~^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 211s from pathlib import Path 211s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 211s from ._local import * 211s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 211s class PureWindowsPath(PurePath): 211s ...<7 lines>... 211s __slots__ = () 211s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 211s import ntpath 211s File "/usr/lib/python3.13/ntpath.py", line 472, in 211s from nt import _path_normpath as normpath 211s File "", line 1357, in _find_and_load 211s File "", line 418, in __enter__ 211s File "", line 311, in acquire 211s File "", line 170, in __enter__ 211s File "", line 132, in setdefault 211s File "", line 75, in __new__ 211s KeyboardInterrupt 211s ------------------------------ Captured log call ------------------------------- 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp46t2bwoi/runtime/kernel-c90044f8-a429-43cc-b891-d9c59447dfd9.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57427 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41013 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: c90044f8-a429-43cc-b891-d9c59447dfd9, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.280000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.580000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1b754ca3-180a-4669-a91c-bdb59c885aa1 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1b754ca3-180a-4669-a91c-bdb59c885aa1 211s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/1b754ca3-180a-4669-a91c-bdb59c885aa1 (::1) 0.740000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c90044f8-a429-43cc-b891-d9c59447dfd9 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c90044f8-a429-43cc-b891-d9c59447dfd9 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 211s await kernel_awaitable 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 211s result = await obj 211s ^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/c90044f8-a429-43cc-b891-d9c59447dfd9 (::1) 211s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/c90044f8-a429-43cc-b891-d9c59447dfd9', version='HTTP/1.1', remote_ip='::1') 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 211s result = await result 211s ^^^^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 211s future.result() 211s ~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 211s yield maybe_future(km.shutdown_kernel(kernel_id)) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 211s raise self._exception.with_traceback(self._exception_tb) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 211s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 211s raise km.ready.exception() # type: ignore[misc] 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 211s await kernel_awaitable 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 211s result = await obj 211s ^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s WARNING NotebookApp:handlers.py:612 Unhandled error 211s ERROR NotebookApp:log.py:55 { 211s "Host": "localhost:12341", 211s "Accept": "*/*", 211s "User-Agent": "python-requests/2.32.5" 211s } 211s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/c90044f8-a429-43cc-b891-d9c59447dfd9 (::1) 15.030000ms referer=None 211s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 211s 211s self = 211s 211s def test_kernel_handler(self): 211s # GET kernel with given id 211s kid = self.kern_api.start().json()['id'] 211s r = self.kern_api.get(kid) 211s kern1 = r.json() 211s self.assertEqual(r.status_code, 200) 211s assert isinstance(kern1, dict) 211s self.assertIn('id', kern1) 211s self.assertEqual(kern1['id'], kid) 211s 211s # Request a bad kernel id and check that a JSON 211s # message is returned! 211s bad_id = '111-111-111-111-111' 211s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 211s self.kern_api.get(bad_id) 211s 211s # DELETE kernel with id 211s > r = self.kern_api.shutdown(kid) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 211s return self._req('DELETE', id) 211s ^^^^^^^^^^^^^^^^^^^^^^^ 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 211s response.raise_for_status() 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s 211s self = 211s 211s def raise_for_status(self): 211s """Raises :class:`HTTPError`, if one occurred.""" 211s 211s http_error_msg = "" 211s if isinstance(self.reason, bytes): 211s # We attempt to decode utf-8 first because some servers 211s # choose to localize their reason strings. If the string 211s # isn't utf-8, we fall back to iso-8859-1 for all other 211s # encodings. (See PR #3538) 211s try: 211s reason = self.reason.decode("utf-8") 211s except UnicodeDecodeError: 211s reason = self.reason.decode("iso-8859-1") 211s else: 211s reason = self.reason 211s 211s if 400 <= self.status_code < 500: 211s http_error_msg = ( 211s f"{self.status_code} Client Error: {reason} for url: {self.url}" 211s ) 211s 211s elif 500 <= self.status_code < 600: 211s http_error_msg = ( 211s f"{self.status_code} Server Error: {reason} for url: {self.url}" 211s ) 211s 211s if http_error_msg: 211s > raise HTTPError(http_error_msg, response=self) 211s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/9a14bf24-e98d-4156-b5b3-872cba379691 211s 211s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 211s ----------------------------- Captured stderr call ----------------------------- 211s Traceback (most recent call last): 211s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 211s return _run_code(code, main_globals, None, 211s "__main__", mod_spec) 211s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 211s exec(code, run_globals) 211s ~~~~^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 211s from pathlib import Path 211s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 211s from ._abc import * 211s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 211s from glob import _Globber, _no_recurse_symlinks 211s File "/usr/lib/python3.13/glob.py", line 3, in 211s import contextlib 211s File "/usr/lib/python3.13/contextlib.py", line 472, in 211s class _BaseExitStack: 211s ...<80 lines>... 211s self._exit_callbacks.append((is_sync, callback)) 211s KeyboardInterrupt 211s ------------------------------ Captured log call ------------------------------- 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp46t2bwoi/runtime/kernel-9a14bf24-e98d-4156-b5b3-872cba379691.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44709 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37251 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9a14bf24-e98d-4156-b5b3-872cba379691, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.230000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/9a14bf24-e98d-4156-b5b3-872cba379691 (::1) 0.570000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s 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 211s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 211s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.610000ms referer=None 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9a14bf24-e98d-4156-b5b3-872cba379691 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9a14bf24-e98d-4156-b5b3-872cba379691 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 211s await kernel_awaitable 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 211s result = await obj 211s ^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/9a14bf24-e98d-4156-b5b3-872cba379691 (::1) 211s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/9a14bf24-e98d-4156-b5b3-872cba379691', version='HTTP/1.1', remote_ip='::1') 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 211s result = await result 211s ^^^^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 211s future.result() 211s ~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 211s yield maybe_future(km.shutdown_kernel(kernel_id)) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 211s raise self._exception.with_traceback(self._exception_tb) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 211s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 211s raise km.ready.exception() # type: ignore[misc] 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 211s await kernel_awaitable 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 211s result = await obj 211s ^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s WARNING NotebookApp:handlers.py:612 Unhandled error 211s ERROR NotebookApp:log.py:55 { 211s "Host": "localhost:12341", 211s "Accept": "*/*", 211s "User-Agent": "python-requests/2.32.5" 211s } 211s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/9a14bf24-e98d-4156-b5b3-872cba379691 (::1) 6.150000ms referer=None 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c90044f8-a429-43cc-b891-d9c59447dfd9 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c90044f8-a429-43cc-b891-d9c59447dfd9 211s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/c90044f8-a429-43cc-b891-d9c59447dfd9 (::1) 0.620000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9a14bf24-e98d-4156-b5b3-872cba379691 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9a14bf24-e98d-4156-b5b3-872cba379691 211s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/9a14bf24-e98d-4156-b5b3-872cba379691 (::1) 0.580000ms 211s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 211s 211s self = 211s 211s def test_main_kernel_handler(self): 211s # POST request 211s r = self.kern_api.start() 211s kern1 = r.json() 211s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 211s self.assertEqual(r.status_code, 201) 211s self.assertIsInstance(kern1, dict) 211s 211s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 211s expected_csp = '; '.join([ 211s "frame-ancestors 'self'", 211s 'report-uri ' + report_uri, 211s "default-src 'none'" 211s ]) 211s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 211s 211s # GET request 211s r = self.kern_api.list() 211s self.assertEqual(r.status_code, 200) 211s assert isinstance(r.json(), list) 211s self.assertEqual(r.json()[0]['id'], kern1['id']) 211s self.assertEqual(r.json()[0]['name'], kern1['name']) 211s 211s # create another kernel and check that they both are added to the 211s # list of kernels from a GET request 211s kern2 = self.kern_api.start().json() 211s assert isinstance(kern2, dict) 211s r = self.kern_api.list() 211s kernels = r.json() 211s self.assertEqual(r.status_code, 200) 211s assert isinstance(kernels, list) 211s self.assertEqual(len(kernels), 2) 211s 211s # Interrupt a kernel 211s r = self.kern_api.interrupt(kern2['id']) 211s self.assertEqual(r.status_code, 204) 211s 211s # Restart a kernel 211s > r = self.kern_api.restart(kern2['id']) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 211s return self._req('POST', url_path_join(id, 'restart')) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 211s response.raise_for_status() 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s 211s self = 211s 211s def raise_for_status(self): 211s """Raises :class:`HTTPError`, if one occurred.""" 211s 211s http_error_msg = "" 211s if isinstance(self.reason, bytes): 211s # We attempt to decode utf-8 first because some servers 211s # choose to localize their reason strings. If the string 211s # isn't utf-8, we fall back to iso-8859-1 for all other 211s # encodings. (See PR #3538) 211s try: 211s reason = self.reason.decode("utf-8") 211s except UnicodeDecodeError: 211s reason = self.reason.decode("iso-8859-1") 211s else: 211s reason = self.reason 211s 211s if 400 <= self.status_code < 500: 211s http_error_msg = ( 211s f"{self.status_code} Client Error: {reason} for url: {self.url}" 211s ) 211s 211s elif 500 <= self.status_code < 600: 211s http_error_msg = ( 211s f"{self.status_code} Server Error: {reason} for url: {self.url}" 211s ) 211s 211s if http_error_msg: 211s > raise HTTPError(http_error_msg, response=self) 211s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/7b42d7dd-e63f-481c-8b35-9d7afa37f6b8/restart 211s 211s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 211s ----------------------------- Captured stderr call ----------------------------- 211s Traceback (most recent call last): 211s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 211s return _run_code(code, main_globals, None, 211s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 211s exec(code, run_globals) 211s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 211s from pathlib import Path 211s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 211s from ._local import * 211s File "/usr/lib/python3.13/pathlib/_local.py", line 58, in 211s class PurePath(PurePathBase): 211s KeyboardInterrupt 211s Traceback (most recent call last): 211s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 211s return _run_code(code, main_globals, None, 211s "__main__", mod_spec) 211s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 211s exec(code, run_globals) 211s ~~~~^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 211s from ipykernel import kernelapp as app 211s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 211s from .connect import * # noqa: F403 211s ^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 211s import jupyter_client 211s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 211s from .asynchronous import AsyncKernelClient 211s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 211s from .client import AsyncKernelClient # noqa 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 211s import zmq.asyncio 211s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 211s import asyncio 211s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 211s from .base_events import * 211s File "/usr/lib/python3.13/asyncio/base_events.py", line 23, in 211s import socket 211s File "", line 1360, in _find_and_load 211s File "", line 1331, in _find_and_load_unlocked 211s File "", line 935, in _load_unlocked 211s File "", line 1019, in exec_module 211s File "", line 1115, in get_code 211s File "", line 1214, in get_data 211s KeyboardInterrupt 211s ------------------------------ Captured log call ------------------------------- 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp46t2bwoi/runtime/kernel-ec2437f0-3b9a-460c-ac8c-2e5f00c09f38.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59683 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33597 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: ec2437f0-3b9a-460c-ac8c-2e5f00c09f38, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.770000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp46t2bwoi/runtime/kernel-7b42d7dd-e63f-481c-8b35-9d7afa37f6b8.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46377 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54139 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7b42d7dd-e63f-481c-8b35-9d7afa37f6b8, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.010000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.550000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 7b42d7dd-e63f-481c-8b35-9d7afa37f6b8 211s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/7b42d7dd-e63f-481c-8b35-9d7afa37f6b8/interrupt (::1) 0.590000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 211s yield maybe_future(km.restart_kernel(kernel_id)) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 211s raise self._exception.with_traceback(self._exception_tb) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 211s result = coro.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 211s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 211s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 211s yield self # This tells Task to wait for completion. 211s ^^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 211s future.result() 211s ~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 211s raise self._exception.with_traceback(self._exception_tb) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 211s await ensure_async(kernel.restart_kernel(now=now)) 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 211s result = await obj 211s ^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 211s await self._async_shutdown_kernel(now=now, restart=True) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:log.py:55 { 211s "Host": "localhost:12341", 211s "Accept": "*/*", 211s "User-Agent": "python-requests/2.32.5" 211s } 211s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/7b42d7dd-e63f-481c-8b35-9d7afa37f6b8/restart (::1) 6.740000ms referer=None 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.110000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ec2437f0-3b9a-460c-ac8c-2e5f00c09f38 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ec2437f0-3b9a-460c-ac8c-2e5f00c09f38 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 211s await kernel_awaitable 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 211s result = await obj 211s ^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/ec2437f0-3b9a-460c-ac8c-2e5f00c09f38 (::1) 211s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/ec2437f0-3b9a-460c-ac8c-2e5f00c09f38', version='HTTP/1.1', remote_ip='::1') 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 211s result = await result 211s ^^^^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 211s future.result() 211s ~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 211s yield maybe_future(km.shutdown_kernel(kernel_id)) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 211s raise self._exception.with_traceback(self._exception_tb) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 211s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 211s raise km.ready.exception() # type: ignore[misc] 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 211s await kernel_awaitable 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 211s result = await obj 211s ^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s WARNING NotebookApp:handlers.py:612 Unhandled error 211s ERROR NotebookApp:log.py:55 { 211s "Host": "localhost:12341", 211s "Accept": "*/*", 211s "User-Agent": "python-requests/2.32.5" 211s } 211s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/ec2437f0-3b9a-460c-ac8c-2e5f00c09f38 (::1) 6.100000ms referer=None 211s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 211s 211s self = 211s 211s def test_no_kernels(self): 211s """Make sure there are no kernels running at the start""" 211s kernels = self.kern_api.list().json() 211s > self.assertEqual(kernels, []) 211s E AssertionError: Lists differ: [{'id': 'ec2437f0-3b9a-460c-ac8c-2e5f00c09[281 chars]: 0}] != [] 211s E 211s E First list contains 2 additional elements. 211s E First extra element 0: 211s E {'id': 'ec2437f0-3b9a-460c-ac8c-2e5f00c09f38', 'name': 'python3', 'last_activity': '2026-01-30T06:18:08.730911Z', 'execution_state': 'starting', 'connections': 0} 211s E 211s E + [] 211s E - [{'connections': 0, 211s E - 'execution_state': 'starting', 211s E - 'id': 'ec2437f0-3b9a-460c-ac8c-2e5f00c09f38', 211s E - 'last_activity': '2026-01-30T06:18:08.730911Z', 211s E - 'name': 'python3'}, 211s E - {'connections': 0, 211s E - 'execution_state': 'starting', 211s E - 'id': '7b42d7dd-e63f-481c-8b35-9d7afa37f6b8', 211s E - 'last_activity': '2026-01-30T06:18:08.756934Z', 211s E - 'name': 'python3'}] 211s 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 211s ------------------------------ Captured log call ------------------------------- 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.470000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ec2437f0-3b9a-460c-ac8c-2e5f00c09f38 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ec2437f0-3b9a-460c-ac8c-2e5f00c09f38 211s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/ec2437f0-3b9a-460c-ac8c-2e5f00c09f38 (::1) 0.620000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7b42d7dd-e63f-481c-8b35-9d7afa37f6b8 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7b42d7dd-e63f-481c-8b35-9d7afa37f6b8 211s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/7b42d7dd-e63f-481c-8b35-9d7afa37f6b8 (::1) 0.630000ms 211s ---------------------------- Captured log teardown ----------------------------- 211s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ec2437f0-3b9a-460c-ac8c-2e5f00c09f38 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c90044f8-a429-43cc-b891-d9c59447dfd9 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9a14bf24-e98d-4156-b5b3-872cba379691 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1b754ca3-180a-4669-a91c-bdb59c885aa1 211s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 211s __________________________ SessionAPITest.test_create __________________________ 211s 211s @self.addCleanup 211s def cleanup_sessions(): 211s for session in self.sess_api.list().json(): 211s > self.sess_api.delete(session['id']) 211s 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 211s return self._req('DELETE', id) 211s ^^^^^^^^^^^^^^^^^^^^^^^ 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 211s response.raise_for_status() 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s 211s self = 211s 211s def raise_for_status(self): 211s """Raises :class:`HTTPError`, if one occurred.""" 211s 211s http_error_msg = "" 211s if isinstance(self.reason, bytes): 211s # We attempt to decode utf-8 first because some servers 211s # choose to localize their reason strings. If the string 211s # isn't utf-8, we fall back to iso-8859-1 for all other 211s # encodings. (See PR #3538) 211s try: 211s reason = self.reason.decode("utf-8") 211s except UnicodeDecodeError: 211s reason = self.reason.decode("iso-8859-1") 211s else: 211s reason = self.reason 211s 211s if 400 <= self.status_code < 500: 211s http_error_msg = ( 211s f"{self.status_code} Client Error: {reason} for url: {self.url}" 211s ) 211s 211s elif 500 <= self.status_code < 600: 211s http_error_msg = ( 211s f"{self.status_code} Server Error: {reason} for url: {self.url}" 211s ) 211s 211s if http_error_msg: 211s > raise HTTPError(http_error_msg, response=self) 211s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ff6beeea-8764-4ff4-beed-517a5e3cadf3 211s 211s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 211s ------------------------------ Captured log setup ------------------------------ 211s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp44who2hx/config', '/tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp44who2hx/etc/jupyter'] for config files 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp44who2hx/etc/jupyter 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp44who2hx/config 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp44who2hx/etc/jupyter 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp44who2hx/config 211s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp44who2hx/notebooks 211s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 211s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 211s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 211s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 211s WARNING NotebookApp:handlers.py:612 Forbidden 211s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.430000ms referer=None 211s ----------------------------- Captured stderr call ----------------------------- 211s Traceback (most recent call last): 211s ------------------------------ Captured log call ------------------------------- 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.810000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp44who2hx/runtime/kernel-efb92b07-3fc4-47d4-96cd-b68a5dd376d6.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59233 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58901 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: efb92b07-3fc4-47d4-96cd-b68a5dd376d6, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp44who2hx/notebooks/foo'} 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.680000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/ff6beeea-8764-4ff4-beed-517a5e3cadf3 (::1) 0.590000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for efb92b07-3fc4-47d4-96cd-b68a5dd376d6 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: efb92b07-3fc4-47d4-96cd-b68a5dd376d6 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ff6beeea-8764-4ff4-beed-517a5e3cadf3 (::1) 211s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ff6beeea-8764-4ff4-beed-517a5e3cadf3', version='HTTP/1.1', remote_ip='::1') 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 211s result = await result 211s ^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 211s yield maybe_future(sm.delete_session(session_id)) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 211s yielded = self.gen.send(value) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 211s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 211s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 211s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 211s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 211s return _runner_map[name].run(inner) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 211s return fut.result(None) 211s ~~~~~~~~~~^^^^^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 211s return self.__get_result() 211s ~~~~~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 211s raise self._exception 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 211s stopper = ensure_async(km.shutdown_kernel(now, restart)) 211s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 211s return _runner_map[name].run(inner) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 211s return fut.result(None) 211s ~~~~~~~~~~^^^^^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 211s return self.__get_result() 211s ~~~~~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 211s raise self._exception 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s WARNING NotebookApp:handlers.py:612 Unhandled error 211s ERROR NotebookApp:log.py:55 { 211s "Host": "localhost:12341", 211s "Accept": "*/*", 211s "User-Agent": "python-requests/2.32.5" 211s } 211s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/ff6beeea-8764-4ff4-beed-517a5e3cadf3 (::1) 7.410000ms referer=None 211s --------------------------- Captured stderr teardown --------------------------- 211s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 211s return _run_code(code, main_globals, None, 211s "__main__", mod_spec) 211s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 211s exec(code, run_globals) 211s ~~~~^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 211s from ipykernel import kernelapp as app 211s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 211s from .connect import * # noqa: F403 211s ^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 211s from subprocess import PIPE, Popen 211s File "", line 1360, in _find_and_load 211s File "", line 1331, in _find_and_load_unlocked 211s File "", line 935, in _load_unlocked 211s File "", line 1019, in exec_module 211s File "", line 1115, in get_code 211s File "", line 1214, in get_data 211s KeyboardInterrupt 211s __________________ SessionAPITest.test_create_console_session __________________ 211s 211s @self.addCleanup 211s def cleanup_sessions(): 211s for session in self.sess_api.list().json(): 211s > self.sess_api.delete(session['id']) 211s 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 211s return self._req('DELETE', id) 211s ^^^^^^^^^^^^^^^^^^^^^^^ 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 211s response.raise_for_status() 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s 211s self = 211s 211s def raise_for_status(self): 211s """Raises :class:`HTTPError`, if one occurred.""" 211s 211s http_error_msg = "" 211s if isinstance(self.reason, bytes): 211s # We attempt to decode utf-8 first because some servers 211s # choose to localize their reason strings. If the string 211s # isn't utf-8, we fall back to iso-8859-1 for all other 211s # encodings. (See PR #3538) 211s try: 211s reason = self.reason.decode("utf-8") 211s except UnicodeDecodeError: 211s reason = self.reason.decode("iso-8859-1") 211s else: 211s reason = self.reason 211s 211s if 400 <= self.status_code < 500: 211s http_error_msg = ( 211s f"{self.status_code} Client Error: {reason} for url: {self.url}" 211s ) 211s 211s elif 500 <= self.status_code < 600: 211s http_error_msg = ( 211s f"{self.status_code} Server Error: {reason} for url: {self.url}" 211s ) 211s 211s if http_error_msg: 211s > raise HTTPError(http_error_msg, response=self) 211s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5301295f-d542-48e2-bba5-ed140f3f04b7 211s 211s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 211s ----------------------------- Captured stderr call ----------------------------- 211s Traceback (most recent call last): 211s ------------------------------ Captured log call ------------------------------- 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp44who2hx/runtime/kernel-7a3e3fdc-70f1-488c-9bf2-92770bd3a7b9.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37957 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54517 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7a3e3fdc-70f1-488c-9bf2-92770bd3a7b9, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp44who2hx/notebooks/foo'} 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.670000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.640000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for efb92b07-3fc4-47d4-96cd-b68a5dd376d6 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: efb92b07-3fc4-47d4-96cd-b68a5dd376d6 211s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/ff6beeea-8764-4ff4-beed-517a5e3cadf3 (::1) 0.840000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7a3e3fdc-70f1-488c-9bf2-92770bd3a7b9 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7a3e3fdc-70f1-488c-9bf2-92770bd3a7b9 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5301295f-d542-48e2-bba5-ed140f3f04b7 (::1) 211s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5301295f-d542-48e2-bba5-ed140f3f04b7', version='HTTP/1.1', remote_ip='::1') 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 211s result = await result 211s ^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 211s yield maybe_future(sm.delete_session(session_id)) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 211s yielded = self.gen.send(value) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 211s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 211s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 211s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 211s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 211s return _runner_map[name].run(inner) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 211s return fut.result(None) 211s ~~~~~~~~~~^^^^^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 211s return self.__get_result() 211s ~~~~~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 211s raise self._exception 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 211s stopper = ensure_async(km.shutdown_kernel(now, restart)) 211s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 211s return _runner_map[name].run(inner) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 211s return fut.result(None) 211s ~~~~~~~~~~^^^^^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 211s return self.__get_result() 211s ~~~~~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 211s raise self._exception 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s WARNING NotebookApp:handlers.py:612 Unhandled error 211s --------------------------- Captured stderr teardown --------------------------- 211s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 211s return _run_code(code, main_globals, None, 211s "__main__", mod_spec) 211s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 211s exec(code, run_globals) 211s ~~~~^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 211s from ipykernel import kernelapp as app 211s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 211s from .connect import * # noqa: F403 211s ^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 211s import json 211s File "/usr/lib/python3.13/json/__init__.py", line 107, in 211s from .encoder import JSONEncoder 211s File "/usr/lib/python3.13/json/encoder.py", line 19, in 211s ESCAPE_ASCII = re.compile(r'([\\"]|[^\ -~])') 211s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 211s return _compile(pattern, flags) 211s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 211s p = _compiler.compile(pattern, flags) 211s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 211s p = _parser.parse(p, flags) 211s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 211s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 211s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 211s itemsappend(_parse(source, state, verbose, nested + 1, 211s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s not nested and not items)) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3.13/re/_parser.py", line 863, in _parse 211s p = _parse_sub(source, state, sub_verbose, nested + 1) 211s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 211s itemsappend(_parse(source, state, verbose, nested + 1, 211s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s not nested and not items)) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3.13/re/_parser.py", line 565, in _parse 211s this = sourceget() 211s File "/usr/lib/python3.13/re/_parser.py", line 262, in get 211s self.__next() 211s ~~~~~~~~~~~^^ 211s File "/usr/lib/python3.13/re/_parser.py", line 239, in __next 211s def __next(self): 211s 211s KeyboardInterrupt 211s ____________________ SessionAPITest.test_create_deprecated _____________________ 211s 211s @self.addCleanup 211s def cleanup_sessions(): 211s for session in self.sess_api.list().json(): 211s > self.sess_api.delete(session['id']) 211s 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 211s return self._req('DELETE', id) 211s ^^^^^^^^^^^^^^^^^^^^^^^ 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 211s response.raise_for_status() 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s 211s self = 211s 211s def raise_for_status(self): 211s """Raises :class:`HTTPError`, if one occurred.""" 211s 211s http_error_msg = "" 211s if isinstance(self.reason, bytes): 211s # We attempt to decode utf-8 first because some servers 211s # choose to localize their reason strings. If the string 211s # isn't utf-8, we fall back to iso-8859-1 for all other 211s # encodings. (See PR #3538) 211s try: 211s reason = self.reason.decode("utf-8") 211s except UnicodeDecodeError: 211s reason = self.reason.decode("iso-8859-1") 211s else: 211s reason = self.reason 211s 211s if 400 <= self.status_code < 500: 211s http_error_msg = ( 211s f"{self.status_code} Client Error: {reason} for url: {self.url}" 211s ) 211s 211s elif 500 <= self.status_code < 600: 211s http_error_msg = ( 211s f"{self.status_code} Server Error: {reason} for url: {self.url}" 211s ) 211s 211s if http_error_msg: 211s > raise HTTPError(http_error_msg, response=self) 211s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c4d3f735-8ccb-4d18-b351-4ce08061beb0 211s 211s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 211s ----------------------------- Captured stderr call ----------------------------- 211s Traceback (most recent call last): 211s ------------------------------ Captured log call ------------------------------- 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp44who2hx/runtime/kernel-cca07d1e-4005-4e23-8f47-8d993222b095.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54961 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55125 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: cca07d1e-4005-4e23-8f47-8d993222b095, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp44who2hx/notebooks/foo'} 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.820000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.590000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7a3e3fdc-70f1-488c-9bf2-92770bd3a7b9 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7a3e3fdc-70f1-488c-9bf2-92770bd3a7b9 211s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/5301295f-d542-48e2-bba5-ed140f3f04b7 (::1) 0.770000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cca07d1e-4005-4e23-8f47-8d993222b095 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cca07d1e-4005-4e23-8f47-8d993222b095 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c4d3f735-8ccb-4d18-b351-4ce08061beb0 (::1) 211s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c4d3f735-8ccb-4d18-b351-4ce08061beb0', version='HTTP/1.1', remote_ip='::1') 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 211s result = await result 211s ^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 211s yield maybe_future(sm.delete_session(session_id)) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 211s yielded = self.gen.send(value) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 211s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 211s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 211s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 211s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 211s return _runner_map[name].run(inner) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 211s return fut.result(None) 211s ~~~~~~~~~~^^^^^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 211s return self.__get_result() 211s ~~~~~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 211s raise self._exception 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 211s stopper = ensure_async(km.shutdown_kernel(now, restart)) 211s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 211s return _runner_map[name].run(inner) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 211s return fut.result(None) 211s ~~~~~~~~~~^^^^^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 211s return self.__get_result() 211s ~~~~~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 211s raise self._exception 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s WARNING NotebookApp:handlers.py:612 Unhandled error 211s --------------------------- Captured stderr teardown --------------------------- 211s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 211s return _run_code(code, main_globals, None, 211s "__main__", mod_spec) 211s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 211s exec(code, run_globals) 211s ~~~~^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 211s from pathlib import Path 211s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 211s from ._abc import * 211s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 211s from glob import _Globber, _no_recurse_symlinks 211s File "/usr/lib/python3.13/glob.py", line 5, in 211s import re 211s File "/usr/lib/python3.13/re/__init__.py", line 126, in 211s from . import _compiler, _parser 211s File "/usr/lib/python3.13/re/_compiler.py", line 16, in 211s from ._casefix import _EXTRA_CASES 211s File "", line 1360, in _find_and_load 211s File "", line 1322, in _find_and_load_unlocked 211s File "", line 1262, in _find_spec 211s File "", line 1556, in find_spec 211s File "", line 1530, in _get_spec 211s File "", line 1663, in find_spec 211s File "", line 1618, in _get_spec 211s File "", line 830, in spec_from_file_location 211s KeyboardInterrupt 211s ___________________ SessionAPITest.test_create_file_session ____________________ 211s 211s @self.addCleanup 211s def cleanup_sessions(): 211s for session in self.sess_api.list().json(): 211s > self.sess_api.delete(session['id']) 211s 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 211s return self._req('DELETE', id) 211s ^^^^^^^^^^^^^^^^^^^^^^^ 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 211s response.raise_for_status() 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s 211s self = 211s 211s def raise_for_status(self): 211s """Raises :class:`HTTPError`, if one occurred.""" 211s 211s http_error_msg = "" 211s if isinstance(self.reason, bytes): 211s # We attempt to decode utf-8 first because some servers 211s # choose to localize their reason strings. If the string 211s # isn't utf-8, we fall back to iso-8859-1 for all other 211s # encodings. (See PR #3538) 211s try: 211s reason = self.reason.decode("utf-8") 211s except UnicodeDecodeError: 211s reason = self.reason.decode("iso-8859-1") 211s else: 211s reason = self.reason 211s 211s if 400 <= self.status_code < 500: 211s http_error_msg = ( 211s f"{self.status_code} Client Error: {reason} for url: {self.url}" 211s ) 211s 211s elif 500 <= self.status_code < 600: 211s http_error_msg = ( 211s f"{self.status_code} Server Error: {reason} for url: {self.url}" 211s ) 211s 211s if http_error_msg: 211s > raise HTTPError(http_error_msg, response=self) 211s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/27035be4-2ece-428c-840f-e4b97e7b0616 211s 211s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 211s ----------------------------- Captured stderr call ----------------------------- 211s Traceback (most recent call last): 211s ------------------------------ Captured log call ------------------------------- 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp44who2hx/runtime/kernel-04fb418b-69fe-4e13-a155-c003ee221ecb.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60597 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54547 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: 04fb418b-69fe-4e13-a155-c003ee221ecb, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp44who2hx/notebooks/foo'} 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.210000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.110000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cca07d1e-4005-4e23-8f47-8d993222b095 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cca07d1e-4005-4e23-8f47-8d993222b095 211s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c4d3f735-8ccb-4d18-b351-4ce08061beb0 (::1) 0.760000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 04fb418b-69fe-4e13-a155-c003ee221ecb 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 04fb418b-69fe-4e13-a155-c003ee221ecb 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/27035be4-2ece-428c-840f-e4b97e7b0616 (::1) 211s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/27035be4-2ece-428c-840f-e4b97e7b0616', version='HTTP/1.1', remote_ip='::1') 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 211s result = await result 211s ^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 211s yield maybe_future(sm.delete_session(session_id)) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 211s yielded = self.gen.send(value) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 211s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 211s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 211s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 211s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 211s return _runner_map[name].run(inner) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 211s return fut.result(None) 211s ~~~~~~~~~~^^^^^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 211s return self.__get_result() 211s ~~~~~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 211s raise self._exception 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 211s stopper = ensure_async(km.shutdown_kernel(now, restart)) 211s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 211s return _runner_map[name].run(inner) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 211s return fut.result(None) 211s ~~~~~~~~~~^^^^^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 211s return self.__get_result() 211s ~~~~~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 211s raise self._exception 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s WARNING NotebookApp:handlers.py:612 Unhandled error 211s --------------------------- Captured stderr teardown --------------------------- 211s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 211s exec(code, run_globals) 211s ~~~~^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 211s from pathlib import Path 211s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 211s from ._abc import * 211s File "", line 1357, in _find_and_load 211s File "", line 421, in __exit__ 211s File "", line 378, in release 211s KeyboardInterrupt 211s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 211s 211s self = 211s 211s def test_create_with_kernel_id(self): 211s # create a new kernel 211s r = self.request('POST', 'api/kernels') 211s r.raise_for_status() 211s kernel = r.json() 211s 211s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 211s self.assertEqual(resp.status_code, 201) 211s newsession = resp.json() 211s self.assertIn('id', newsession) 211s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 211s self.assertEqual(newsession['kernel']['id'], kernel['id']) 211s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 211s 211s sessions = self.sess_api.list().json() 211s > self.assertEqual(sessions, [newsession]) 211s E AssertionError: Lists differ: [{'id': '27035be4-2ece-428c-840f-e4b97e7b0616', 'p[553 chars]ne}}] != [{'id': 'f0976809-ee9b-4da6-b48a-1875c28e305f', 'p[279 chars]ne}}] 211s E 211s E First differing element 0: 211s E {'id': '27035be4-2ece-428c-840f-e4b97e7b0616', 'p[218 chars]: 0}} 211s E {'id': 'f0976809-ee9b-4da6-b48a-1875c28e305f', 'p[278 chars]one}} 211s E 211s E First list contains 1 additional elements. 211s E First extra element 1: 211s E {'id': 'f0976809-ee9b-4da6-b48a-1875c28e305f', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'd5c1378e-7541-4d11-b7dd-1891bb6506c9', 'name': 'python3', 'last_activity': '2026-01-30T06:18:09.212783Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 211s E 211s E Diff is 830 characters long. Set self.maxDiff to None to see it. 211s 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 211s ----------------------------- Captured stderr call ----------------------------- 211s Traceback (most recent call last): 211s ------------------------------ Captured log call ------------------------------- 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp44who2hx/runtime/kernel-d5c1378e-7541-4d11-b7dd-1891bb6506c9.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35351 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47047 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: d5c1378e-7541-4d11-b7dd-1891bb6506c9, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.980000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.650000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.580000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 04fb418b-69fe-4e13-a155-c003ee221ecb 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 04fb418b-69fe-4e13-a155-c003ee221ecb 211s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/27035be4-2ece-428c-840f-e4b97e7b0616 (::1) 1.940000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d5c1378e-7541-4d11-b7dd-1891bb6506c9 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d5c1378e-7541-4d11-b7dd-1891bb6506c9 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f0976809-ee9b-4da6-b48a-1875c28e305f (::1) 211s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f0976809-ee9b-4da6-b48a-1875c28e305f', version='HTTP/1.1', remote_ip='::1') 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 211s result = await result 211s ^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 211s yield maybe_future(sm.delete_session(session_id)) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 211s yielded = self.gen.send(value) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 211s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 211s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 211s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 211s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 211s return _runner_map[name].run(inner) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 211s return fut.result(None) 211s ~~~~~~~~~~^^^^^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 211s return self.__get_result() 211s ~~~~~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 211s raise self._exception 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 211s stopper = ensure_async(km.shutdown_kernel(now, restart)) 211s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 211s return _runner_map[name].run(inner) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 211s return fut.result(None) 211s ~~~~~~~~~~^^^^^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 211s return self.__get_result() 211s ~~~~~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 211s raise self._exception 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s WARNING NotebookApp:handlers.py:612 Unhandled error 211s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 211s 211s @self.addCleanup 211s def cleanup_sessions(): 211s for session in self.sess_api.list().json(): 211s > self.sess_api.delete(session['id']) 211s 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 211s return self._req('DELETE', id) 211s ^^^^^^^^^^^^^^^^^^^^^^^ 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 211s response.raise_for_status() 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s 211s self = 211s 211s def raise_for_status(self): 211s """Raises :class:`HTTPError`, if one occurred.""" 211s 211s http_error_msg = "" 211s if isinstance(self.reason, bytes): 211s # We attempt to decode utf-8 first because some servers 211s # choose to localize their reason strings. If the string 211s # isn't utf-8, we fall back to iso-8859-1 for all other 211s # encodings. (See PR #3538) 211s try: 211s reason = self.reason.decode("utf-8") 211s except UnicodeDecodeError: 211s reason = self.reason.decode("iso-8859-1") 211s else: 211s reason = self.reason 211s 211s if 400 <= self.status_code < 500: 211s http_error_msg = ( 211s f"{self.status_code} Client Error: {reason} for url: {self.url}" 211s ) 211s 211s elif 500 <= self.status_code < 600: 211s http_error_msg = ( 211s f"{self.status_code} Server Error: {reason} for url: {self.url}" 211s ) 211s 211s if http_error_msg: 211s > raise HTTPError(http_error_msg, response=self) 211s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f0976809-ee9b-4da6-b48a-1875c28e305f 211s 211s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 211s ----------------------------- Captured stderr call ----------------------------- 211s Traceback (most recent call last): 211s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 211s return _run_code(code, main_globals, None, 211s "__main__", mod_spec) 211s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 211s exec(code, run_globals) 211s ~~~~^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 211s from ipykernel import kernelapp as app 211s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 211s from .connect import * # noqa: F403 211s ^^^^^^^^^^^^^^^^^^^^^^ 211s File "", line 1349, in _find_and_load 211s KeyboardInterrupt 211s ------------------------------ Captured log call ------------------------------- 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.750000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp44who2hx/runtime/kernel-a425e2be-b564-4633-895d-b7e3949dc798.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53965 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41391 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: a425e2be-b564-4633-895d-b7e3949dc798, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.360000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d5c1378e-7541-4d11-b7dd-1891bb6506c9 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d5c1378e-7541-4d11-b7dd-1891bb6506c9 211s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/f0976809-ee9b-4da6-b48a-1875c28e305f (::1) 1.650000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.450000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.050000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a425e2be-b564-4633-895d-b7e3949dc798 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a425e2be-b564-4633-895d-b7e3949dc798 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f0976809-ee9b-4da6-b48a-1875c28e305f (::1) 211s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f0976809-ee9b-4da6-b48a-1875c28e305f', version='HTTP/1.1', remote_ip='::1') 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 211s result = await result 211s ^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 211s yield maybe_future(sm.delete_session(session_id)) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 211s yielded = self.gen.send(value) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 211s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 211s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 211s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 211s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 211s return _runner_map[name].run(inner) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 211s return fut.result(None) 211s ~~~~~~~~~~^^^^^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 211s return self.__get_result() 211s ~~~~~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 211s raise self._exception 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 211s stopper = ensure_async(km.shutdown_kernel(now, restart)) 211s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 211s return _runner_map[name].run(inner) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 211s return fut.result(None) 211s ~~~~~~~~~~^^^^^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 211s return self.__get_result() 211s ~~~~~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 211s raise self._exception 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s WARNING NotebookApp:handlers.py:612 Unhandled error 211s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 211s 211s @self.addCleanup 211s def cleanup_sessions(): 211s for session in self.sess_api.list().json(): 211s > self.sess_api.delete(session['id']) 211s 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 211s return self._req('DELETE', id) 211s ^^^^^^^^^^^^^^^^^^^^^^^ 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 211s response.raise_for_status() 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s 211s self = 211s 211s def raise_for_status(self): 211s """Raises :class:`HTTPError`, if one occurred.""" 211s 211s http_error_msg = "" 211s if isinstance(self.reason, bytes): 211s # We attempt to decode utf-8 first because some servers 211s # choose to localize their reason strings. If the string 211s # isn't utf-8, we fall back to iso-8859-1 for all other 211s # encodings. (See PR #3538) 211s try: 211s reason = self.reason.decode("utf-8") 211s except UnicodeDecodeError: 211s reason = self.reason.decode("iso-8859-1") 211s else: 211s reason = self.reason 211s 211s if 400 <= self.status_code < 500: 211s http_error_msg = ( 211s f"{self.status_code} Client Error: {reason} for url: {self.url}" 211s ) 211s 211s elif 500 <= self.status_code < 600: 211s http_error_msg = ( 211s f"{self.status_code} Server Error: {reason} for url: {self.url}" 211s ) 211s 211s if http_error_msg: 211s > raise HTTPError(http_error_msg, response=self) 211s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f0976809-ee9b-4da6-b48a-1875c28e305f 211s 211s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 211s ----------------------------- Captured stderr call ----------------------------- 211s Traceback (most recent call last): 211s ------------------------------ Captured log call ------------------------------- 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.740000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp44who2hx/runtime/kernel-fd40d8f0-e392-425f-adb3-912a5a169b92.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46259 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54885 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: fd40d8f0-e392-425f-adb3-912a5a169b92, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp44who2hx/notebooks/foo'} 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a425e2be-b564-4633-895d-b7e3949dc798 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a425e2be-b564-4633-895d-b7e3949dc798 211s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/f0976809-ee9b-4da6-b48a-1875c28e305f (::1) 15.820000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.650000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.520000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fd40d8f0-e392-425f-adb3-912a5a169b92 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fd40d8f0-e392-425f-adb3-912a5a169b92 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f0976809-ee9b-4da6-b48a-1875c28e305f (::1) 211s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f0976809-ee9b-4da6-b48a-1875c28e305f', version='HTTP/1.1', remote_ip='::1') 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 211s result = await result 211s ^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 211s yield maybe_future(sm.delete_session(session_id)) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 211s yielded = self.gen.send(value) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 211s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 211s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 211s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 211s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 211s return _runner_map[name].run(inner) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 211s return fut.result(None) 211s ~~~~~~~~~~^^^^^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 211s return self.__get_result() 211s ~~~~~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 211s raise self._exception 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 211s stopper = ensure_async(km.shutdown_kernel(now, restart)) 211s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 211s return _runner_map[name].run(inner) 211s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 211s return fut.result(None) 211s ~~~~~~~~~~^^^^^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 211s return self.__get_result() 211s ~~~~~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 211s raise self._exception 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s WARNING NotebookApp:handlers.py:612 Unhandled error 211s ERROR NotebookApp:log.py:55 { 211s "Host": "localhost:12341", 211s "Accept": "*/*", 211s "User-Agent": "python-requests/2.32.5" 211s } 211s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/f0976809-ee9b-4da6-b48a-1875c28e305f (::1) 7.630000ms referer=None 211s --------------------------- Captured stderr teardown --------------------------- 211s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 211s return _run_code(code, main_globals, None, 211s "__main__", mod_spec) 211s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 211s exec(code, run_globals) 211s ~~~~^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 211s from pathlib import Path 211s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 211s from ._abc import * 211s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 211s from glob import _Globber, _no_recurse_symlinks 211s File "/usr/lib/python3.13/glob.py", line 5, in 211s import re 211s File "/usr/lib/python3.13/re/__init__.py", line 381, in 211s import copyreg 211s File "", line 1360, in _find_and_load 211s File "", line 1331, in _find_and_load_unlocked 211s File "", line 935, in _load_unlocked 211s File "", line 1019, in exec_module 211s File "", line 1152, in get_code 211s File "", line 781, in _compile_bytecode 211s KeyboardInterrupt 211s ---------------------------- Captured log teardown ----------------------------- 211s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fd40d8f0-e392-425f-adb3-912a5a169b92 211s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 211s _______________________ AsyncSessionAPITest.test_create ________________________ 211s 211s @self.addCleanup 211s def cleanup_sessions(): 211s for session in self.sess_api.list().json(): 211s > self.sess_api.delete(session['id']) 211s 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 211s return self._req('DELETE', id) 211s ^^^^^^^^^^^^^^^^^^^^^^^ 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 211s response.raise_for_status() 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s 211s self = 211s 211s def raise_for_status(self): 211s """Raises :class:`HTTPError`, if one occurred.""" 211s 211s http_error_msg = "" 211s if isinstance(self.reason, bytes): 211s # We attempt to decode utf-8 first because some servers 211s # choose to localize their reason strings. If the string 211s # isn't utf-8, we fall back to iso-8859-1 for all other 211s # encodings. (See PR #3538) 211s try: 211s reason = self.reason.decode("utf-8") 211s except UnicodeDecodeError: 211s reason = self.reason.decode("iso-8859-1") 211s else: 211s reason = self.reason 211s 211s if 400 <= self.status_code < 500: 211s http_error_msg = ( 211s f"{self.status_code} Client Error: {reason} for url: {self.url}" 211s ) 211s 211s elif 500 <= self.status_code < 600: 211s http_error_msg = ( 211s f"{self.status_code} Server Error: {reason} for url: {self.url}" 211s ) 211s 211s if http_error_msg: 211s > raise HTTPError(http_error_msg, response=self) 211s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/14560cd5-b593-4afc-9b73-b61862f2b39f 211s 211s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 211s ------------------------------ Captured log setup ------------------------------ 211s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp43fkdcty/config', '/tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp43fkdcty/etc/jupyter'] for config files 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp43fkdcty/etc/jupyter 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp43fkdcty/config 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp43fkdcty/etc/jupyter 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 211s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp43fkdcty/config 211s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp43fkdcty/notebooks 211s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 211s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 211s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 211s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 211s WARNING NotebookApp:handlers.py:612 Forbidden 211s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.470000ms referer=None 211s ----------------------------- Captured stderr call ----------------------------- 211s Traceback (most recent call last): 211s ------------------------------ Captured log call ------------------------------- 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.790000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp43fkdcty/runtime/kernel-1343bf86-15a1-4233-a054-89f2d2533237.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58949 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41881 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1343bf86-15a1-4233-a054-89f2d2533237, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp43fkdcty/notebooks/foo'} 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.770000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.810000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/14560cd5-b593-4afc-9b73-b61862f2b39f (::1) 1.800000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.610000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-aut/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 211s gc.collect() 211s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 211s henticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1343bf86-15a1-4233-a054-89f2d2533237 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1343bf86-15a1-4233-a054-89f2d2533237 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 211s await kernel_awaitable 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 211s result = await obj 211s ^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/14560cd5-b593-4afc-9b73-b61862f2b39f (::1) 211s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/14560cd5-b593-4afc-9b73-b61862f2b39f', version='HTTP/1.1', remote_ip='::1') 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 211s result = await result 211s ^^^^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 211s future.result() 211s ~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 211s yield maybe_future(sm.delete_session(session_id)) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 211s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 211s raise self._exception.with_traceback(self._exception_tb) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 211s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 211s raise km.ready.exception() # type: ignore[misc] 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 211s await kernel_awaitable 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 211s result = await obj 211s ^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s WARNING NotebookApp:handlers.py:612 Unhandled error 211s --------------------------- Captured stderr teardown --------------------------- 211s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 211s return _run_code(code, main_globals, None, 211s "__main__", mod_spec) 211s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 211s exec(code, run_globals) 211s ~~~~^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 211s from pathlib import Path 211s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 211s from ._abc import * 211s File "", line 1357, in _find_and_load 211s KeyboardInterrupt 211s _______________ AsyncSessionAPITest.test_create_console_session ________________ 211s 211s @self.addCleanup 211s def cleanup_sessions(): 211s for session in self.sess_api.list().json(): 211s > self.sess_api.delete(session['id']) 211s 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 211s return self._req('DELETE', id) 211s ^^^^^^^^^^^^^^^^^^^^^^^ 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 211s response.raise_for_status() 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s 211s self = 211s 211s def raise_for_status(self): 211s """Raises :class:`HTTPError`, if one occurred.""" 211s 211s http_error_msg = "" 211s if isinstance(self.reason, bytes): 211s # We attempt to decode utf-8 first because some servers 211s # choose to localize their reason strings. If the string 211s # isn't utf-8, we fall back to iso-8859-1 for all other 211s # encodings. (See PR #3538) 211s try: 211s reason = self.reason.decode("utf-8") 211s except UnicodeDecodeError: 211s reason = self.reason.decode("iso-8859-1") 211s else: 211s reason = self.reason 211s 211s if 400 <= self.status_code < 500: 211s http_error_msg = ( 211s f"{self.status_code} Client Error: {reason} for url: {self.url}" 211s ) 211s 211s elif 500 <= self.status_code < 600: 211s http_error_msg = ( 211s f"{self.status_code} Server Error: {reason} for url: {self.url}" 211s ) 211s 211s if http_error_msg: 211s > raise HTTPError(http_error_msg, response=self) 211s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5c36d214-4b56-43f7-b917-4d7143aa7e39 211s 211s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 211s ----------------------------- Captured stderr call ----------------------------- 211s Traceback (most recent call last): 211s ------------------------------ Captured log call ------------------------------- 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp43fkdcty/runtime/kernel-b9e60ffe-fe39-4883-b348-36d8c68e6e1c.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52021 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52183 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: b9e60ffe-fe39-4883-b348-36d8c68e6e1c, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp43fkdcty/notebooks/foo'} 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.680000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.810000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1343bf86-15a1-4233-a054-89f2d2533237 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1343bf86-15a1-4233-a054-89f2d2533237 211s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/14560cd5-b593-4afc-9b73-b61862f2b39f (::1) 1.890000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b9e60ffe-fe39-4883-b348-36d8c68e6e1c 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b9e60ffe-fe39-4883-b348-36d8c68e6e1c 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 211s await kernel_awaitable 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 211s result = await obj 211s ^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5c36d214-4b56-43f7-b917-4d7143aa7e39 (::1) 211s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5c36d214-4b56-43f7-b917-4d7143aa7e39', version='HTTP/1.1', remote_ip='::1') 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 211s result = await result 211s ^^^^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 211s future.result() 211s ~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 211s yield maybe_future(sm.delete_session(session_id)) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 211s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 211s raise self._exception.with_traceback(self._exception_tb) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 211s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 211s raise km.ready.exception() # type: ignore[misc] 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 211s await kernel_awaitable 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 211s result = await obj 211s ^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s WARNING NotebookApp:handlers.py:612 Unhandled error 211s --------------------------- Captured stderr teardown --------------------------- 211s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 211s return _run_code(code, main_globals, None, 211s "__main__", mod_spec) 211s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 211s exec(code, run_globals) 211s ~~~~^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 211s from pathlib import Path 211s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 211s from ._abc import * 211s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 211s from glob import _Globber, _no_recurse_symlinks 211s File "/usr/lib/python3.13/glob.py", line 5, in 211s import re 211s File "/usr/lib/python3.13/re/__init__.py", line 179, in 211s class _ZeroSentinel(int): 211s pass 211s KeyboardInterrupt 211s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 211s 211s @self.addCleanup 211s def cleanup_sessions(): 211s for session in self.sess_api.list().json(): 211s > self.sess_api.delete(session['id']) 211s 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 211s return self._req('DELETE', id) 211s ^^^^^^^^^^^^^^^^^^^^^^^ 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 211s response.raise_for_status() 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s 211s self = 211s 211s def raise_for_status(self): 211s """Raises :class:`HTTPError`, if one occurred.""" 211s 211s http_error_msg = "" 211s if isinstance(self.reason, bytes): 211s # We attempt to decode utf-8 first because some servers 211s # choose to localize their reason strings. If the string 211s # isn't utf-8, we fall back to iso-8859-1 for all other 211s # encodings. (See PR #3538) 211s try: 211s reason = self.reason.decode("utf-8") 211s except UnicodeDecodeError: 211s reason = self.reason.decode("iso-8859-1") 211s else: 211s reason = self.reason 211s 211s if 400 <= self.status_code < 500: 211s http_error_msg = ( 211s f"{self.status_code} Client Error: {reason} for url: {self.url}" 211s ) 211s 211s elif 500 <= self.status_code < 600: 211s http_error_msg = ( 211s f"{self.status_code} Server Error: {reason} for url: {self.url}" 211s ) 211s 211s if http_error_msg: 211s > raise HTTPError(http_error_msg, response=self) 211s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/77b8e8ac-0d3e-4d2e-a4ac-5a2280e2c7d4 211s 211s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 211s ----------------------------- Captured stderr call ----------------------------- 211s Traceback (most recent call last): 211s ------------------------------ Captured log call ------------------------------- 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp43fkdcty/runtime/kernel-ec171552-5ae2-4730-96d3-4a29bcda10e3.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60195 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43791 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: ec171552-5ae2-4730-96d3-4a29bcda10e3, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp43fkdcty/notebooks/foo'} 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.990000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b9e60ffe-fe39-4883-b348-36d8c68e6e1c 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b9e60ffe-fe39-4883-b348-36d8c68e6e1c 211s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/5c36d214-4b56-43f7-b917-4d7143aa7e39 (::1) 1.860000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ec171552-5ae2-4730-96d3-4a29bcda10e3 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ec171552-5ae2-4730-96d3-4a29bcda10e3 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 211s await kernel_awaitable 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 211s result = await obj 211s ^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/77b8e8ac-0d3e-4d2e-a4ac-5a2280e2c7d4 (::1) 211s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/77b8e8ac-0d3e-4d2e-a4ac-5a2280e2c7d4', version='HTTP/1.1', remote_ip='::1') 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 211s result = await result 211s ^^^^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 211s future.result() 211s ~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 211s yield maybe_future(sm.delete_session(session_id)) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 211s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 211s raise self._exception.with_traceback(self._exception_tb) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 211s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 211s raise km.ready.exception() # type: ignore[misc] 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 211s await kernel_awaitable 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 211s result = await obj 211s ^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s WARNING NotebookApp:handlers.py:612 Unhandled error 211s --------------------------- Captured stderr teardown --------------------------- 211s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 211s return _run_code(code, main_globals, None, 211s "__main__", mod_spec) 211s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 211s exec(code, run_globals) 211s ~~~~^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 211s from pathlib import Path 211s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 211s from ._abc import * 211s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 211s from glob import _Globber, _no_recurse_symlinks 211s File "/usr/lib/python3.13/glob.py", line 5, in 211s import re 211s File "/usr/lib/python3.13/re/__init__.py", line 315, in 211s Pattern = type(_compiler.compile('', 0)) 211s ~~~~~~~~~~~~~~~~~^^^^^^^ 211s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 211s p = _parser.parse(p, flags) 211s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 211s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 211s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 211s itemsappend(_parse(source, state, verbose, nested + 1, 211s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s not nested and not items)) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3.13/re/_parser.py", line 885, in _parse 211s for i in range(len(subpattern))[::-1]: 211s ~~~^^^^^^^^^^^^ 211s File "/usr/lib/python3.13/re/_parser.py", line 163, in __len__ 211s def __len__(self): 211s 211s KeyboardInterrupt 211s _________________ AsyncSessionAPITest.test_create_file_session _________________ 211s 211s @self.addCleanup 211s def cleanup_sessions(): 211s for session in self.sess_api.list().json(): 211s > self.sess_api.delete(session['id']) 211s 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 211s return self._req('DELETE', id) 211s ^^^^^^^^^^^^^^^^^^^^^^^ 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 211s response.raise_for_status() 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s 211s self = 211s 211s def raise_for_status(self): 211s """Raises :class:`HTTPError`, if one occurred.""" 211s 211s http_error_msg = "" 211s if isinstance(self.reason, bytes): 211s # We attempt to decode utf-8 first because some servers 211s # choose to localize their reason strings. If the string 211s # isn't utf-8, we fall back to iso-8859-1 for all other 211s # encodings. (See PR #3538) 211s try: 211s reason = self.reason.decode("utf-8") 211s except UnicodeDecodeError: 211s reason = self.reason.decode("iso-8859-1") 211s else: 211s reason = self.reason 211s 211s if 400 <= self.status_code < 500: 211s http_error_msg = ( 211s f"{self.status_code} Client Error: {reason} for url: {self.url}" 211s ) 211s 211s elif 500 <= self.status_code < 600: 211s http_error_msg = ( 211s f"{self.status_code} Server Error: {reason} for url: {self.url}" 211s ) 211s 211s if http_error_msg: 211s > raise HTTPError(http_error_msg, response=self) 211s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/4ee256a5-5ae6-4156-82ea-2808c209f666 211s 211s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 211s ----------------------------- Captured stderr call ----------------------------- 211s Traceback (most recent call last): 211s ------------------------------ Captured log call ------------------------------- 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp43fkdcty/runtime/kernel-05f92ee5-9e93-4783-bf87-08e3cc248982.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55025 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56287 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: 05f92ee5-9e93-4783-bf87-08e3cc248982, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp43fkdcty/notebooks/foo'} 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.580000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.680000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ec171552-5ae2-4730-96d3-4a29bcda10e3 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ec171552-5ae2-4730-96d3-4a29bcda10e3 211s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/77b8e8ac-0d3e-4d2e-a4ac-5a2280e2c7d4 (::1) 0.770000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 05f92ee5-9e93-4783-bf87-08e3cc248982 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 05f92ee5-9e93-4783-bf87-08e3cc248982 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 211s await kernel_awaitable 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 211s result = await obj 211s ^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/4ee256a5-5ae6-4156-82ea-2808c209f666 (::1) 211s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/4ee256a5-5ae6-4156-82ea-2808c209f666', version='HTTP/1.1', remote_ip='::1') 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 211s result = await result 211s ^^^^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 211s future.result() 211s ~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 211s yield maybe_future(sm.delete_session(session_id)) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 211s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 211s raise self._exception.with_traceback(self._exception_tb) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 211s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 211s raise km.ready.exception() # type: ignore[misc] 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 211s await kernel_awaitable 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 211s result = await obj 211s ^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s WARNING NotebookApp:handlers.py:612 Unhandled error 211s --------------------------- Captured stderr teardown --------------------------- 211s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 211s return _run_code(code, main_globals, None, 211s "__main__", mod_spec) 211s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 211s exec(code, run_globals) 211s ~~~~^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 211s from pathlib import Path 211s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 211s from ._abc import * 211s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 211s from glob import _Globber, _no_recurse_symlinks 211s File "/usr/lib/python3.13/glob.py", line 5, in 211s import re 211s File "/usr/lib/python3.13/re/__init__.py", line 126, in 211s from . import _compiler, _parser 211s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 211s from . import _parser 211s File "/usr/lib/python3.13/re/_parser.py", line 28, in 211s _REPEATCODES = frozenset({MIN_REPEAT, MAX_REPEAT, POSSESSIVE_REPEAT}) 211s KeyboardInterrupt 211s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 211s 211s self = 211s 211s def test_create_with_kernel_id(self): 211s # create a new kernel 211s r = self.request('POST', 'api/kernels') 211s r.raise_for_status() 211s kernel = r.json() 211s 211s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 211s self.assertEqual(resp.status_code, 201) 211s newsession = resp.json() 211s self.assertIn('id', newsession) 211s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 211s self.assertEqual(newsession['kernel']['id'], kernel['id']) 211s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 211s 211s sessions = self.sess_api.list().json() 211s > self.assertEqual(sessions, [newsession]) 211s E AssertionError: Lists differ: [{'id': '4ee256a5-5ae6-4156-82ea-2808c209f666', 'p[553 chars]ne}}] != [{'id': 'b8fce4cf-4cd8-4efb-9f88-6321c6f2ad85', 'p[279 chars]ne}}] 211s E 211s E First differing element 0: 211s E {'id': '4ee256a5-5ae6-4156-82ea-2808c209f666', 'p[218 chars]: 0}} 211s E {'id': 'b8fce4cf-4cd8-4efb-9f88-6321c6f2ad85', 'p[278 chars]one}} 211s E 211s E First list contains 1 additional elements. 211s E First extra element 1: 211s E {'id': 'b8fce4cf-4cd8-4efb-9f88-6321c6f2ad85', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '7b7475e2-152f-4fe5-ad54-2517846968f4', 'name': 'python3', 'last_activity': '2026-01-30T06:18:09.677111Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 211s E 211s E Diff is 830 characters long. Set self.maxDiff to None to see it. 211s 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 211s ----------------------------- Captured stderr call ----------------------------- 211s Traceback (most recent call last): 211s ------------------------------ Captured log call ------------------------------- 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp43fkdcty/runtime/kernel-7b7475e2-152f-4fe5-ad54-2517846968f4.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36983 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57153 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7b7475e2-152f-4fe5-ad54-2517846968f4, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.450000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.880000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.640000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.590000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 05f92ee5-9e93-4783-bf87-08e3cc248982 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 05f92ee5-9e93-4783-bf87-08e3cc248982 211s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/4ee256a5-5ae6-4156-82ea-2808c209f666 (::1) 0.720000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7b7475e2-152f-4fe5-ad54-2517846968f4 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7b7475e2-152f-4fe5-ad54-2517846968f4 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 211s await kernel_awaitable 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 211s result = await obj 211s ^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b8fce4cf-4cd8-4efb-9f88-6321c6f2ad85 (::1) 211s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b8fce4cf-4cd8-4efb-9f88-6321c6f2ad85', version='HTTP/1.1', remote_ip='::1') 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 211s result = await result 211s ^^^^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 211s future.result() 211s ~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 211s yield maybe_future(sm.delete_session(session_id)) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 211s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 211s raise self._exception.with_traceback(self._exception_tb) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 211s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 211s raise km.ready.exception() # type: ignore[misc] 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 211s await kernel_awaitable 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 211s result = await obj 211s ^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s WARNING NotebookApp:handlers.py:612 Unhandled error 211s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 211s 211s @self.addCleanup 211s def cleanup_sessions(): 211s for session in self.sess_api.list().json(): 211s > self.sess_api.delete(session['id']) 211s 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 211s return self._req('DELETE', id) 211s ^^^^^^^^^^^^^^^^^^^^^^^ 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 211s response.raise_for_status() 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s 211s self = 211s 211s def raise_for_status(self): 211s """Raises :class:`HTTPError`, if one occurred.""" 211s 211s http_error_msg = "" 211s if isinstance(self.reason, bytes): 211s # We attempt to decode utf-8 first because some servers 211s # choose to localize their reason strings. If the string 211s # isn't utf-8, we fall back to iso-8859-1 for all other 211s # encodings. (See PR #3538) 211s try: 211s reason = self.reason.decode("utf-8") 211s except UnicodeDecodeError: 211s reason = self.reason.decode("iso-8859-1") 211s else: 211s reason = self.reason 211s 211s if 400 <= self.status_code < 500: 211s http_error_msg = ( 211s f"{self.status_code} Client Error: {reason} for url: {self.url}" 211s ) 211s 211s elif 500 <= self.status_code < 600: 211s http_error_msg = ( 211s f"{self.status_code} Server Error: {reason} for url: {self.url}" 211s ) 211s 211s if http_error_msg: 211s > raise HTTPError(http_error_msg, response=self) 211s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b8fce4cf-4cd8-4efb-9f88-6321c6f2ad85 211s 211s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 211s ----------------------------- Captured stderr call ----------------------------- 211s Traceback (most recent call last): 211s ------------------------------ Captured log call ------------------------------- 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.780000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp43fkdcty/runtime/kernel-98d6db7f-5804-41db-beda-9e1b37951663.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39137 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40917 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: 98d6db7f-5804-41db-beda-9e1b37951663, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.980000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7b7475e2-152f-4fe5-ad54-2517846968f4 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7b7475e2-152f-4fe5-ad54-2517846968f4 211s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/b8fce4cf-4cd8-4efb-9f88-6321c6f2ad85 (::1) 1.010000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.610000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 98d6db7f-5804-41db-beda-9e1b37951663 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 98d6db7f-5804-41db-beda-9e1b37951663 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 211s await kernel_awaitable 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 211s result = await obj 211s ^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b8fce4cf-4cd8-4efb-9f88-6321c6f2ad85 (::1) 211s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b8fce4cf-4cd8-4efb-9f88-6321c6f2ad85', version='HTTP/1.1', remote_ip='::1') 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 211s result = await result 211s ^^^^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 211s future.result() 211s ~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 211s yield maybe_future(sm.delete_session(session_id)) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 211s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 211s raise self._exception.with_traceback(self._exception_tb) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 211s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 211s raise km.ready.exception() # type: ignore[misc] 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 211s await kernel_awaitable 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 211s result = await obj 211s ^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s WARNING NotebookApp:handlers.py:612 Unhandled error 211s ERROR NotebookApp:log.py:55 { 211s "Host": "localhost:12341", 211s "Accept": "*/*", 211s "User-Agent": "python-requests/2.32.5" 211s } 211s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b8fce4cf-4cd8-4efb-9f88-6321c6f2ad85 (::1) 12.980000ms referer=None 211s --------------------------- Captured stderr teardown --------------------------- 211s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 211s return _run_code(code, main_globals, None, 211s "__main__", mod_spec) 211s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 211s exec(code, run_globals) 211s ~~~~^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 211s from pathlib import Path 211s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 211s from ._abc import * 211s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 211s from glob import _Globber, _no_recurse_symlinks 211s File "/usr/lib/python3.13/glob.py", line 5, in 211s import re 211s File "/usr/lib/python3.13/re/__init__.py", line 143, in 211s @enum._simple_enum(enum.IntFlag, boundary=enum.KEEP) 211s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3.13/enum.py", line 1852, in convert_class 211s setattr(enum_class, name, member) 211s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3.13/enum.py", line 840, in __setattr__ 211s super().__setattr__(name, value) 211s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ 211s KeyboardInterrupt 211s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 211s 211s @self.addCleanup 211s def cleanup_sessions(): 211s for session in self.sess_api.list().json(): 211s > self.sess_api.delete(session['id']) 211s 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 211s return self._req('DELETE', id) 211s ^^^^^^^^^^^^^^^^^^^^^^^ 211s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 211s response.raise_for_status() 211s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 211s 211s self = 211s 211s def raise_for_status(self): 211s """Raises :class:`HTTPError`, if one occurred.""" 211s 211s http_error_msg = "" 211s if isinstance(self.reason, bytes): 211s # We attempt to decode utf-8 first because some servers 211s # choose to localize their reason strings. If the string 211s # isn't utf-8, we fall back to iso-8859-1 for all other 211s # encodings. (See PR #3538) 211s try: 211s reason = self.reason.decode("utf-8") 211s except UnicodeDecodeError: 211s reason = self.reason.decode("iso-8859-1") 211s else: 211s reason = self.reason 211s 211s if 400 <= self.status_code < 500: 211s http_error_msg = ( 211s f"{self.status_code} Client Error: {reason} for url: {self.url}" 211s ) 211s 211s elif 500 <= self.status_code < 600: 211s http_error_msg = ( 211s f"{self.status_code} Server Error: {reason} for url: {self.url}" 211s ) 211s 211s if http_error_msg: 211s > raise HTTPError(http_error_msg, response=self) 211s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b8fce4cf-4cd8-4efb-9f88-6321c6f2ad85 211s 211s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 211s ------------------------------ Captured log call ------------------------------- 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.830000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 211s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp43fkdcty/runtime/kernel-56753bdc-4187-4a25-bd4d-b3f20c095dc8.json'] 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38193 211s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53439 211s INFO NotebookApp:kernelmanager.py:179 Kernel started: 56753bdc-4187-4a25-bd4d-b3f20c095dc8, name: python3 211s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp43fkdcty/notebooks/foo'} 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 98d6db7f-5804-41db-beda-9e1b37951663 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 98d6db7f-5804-41db-beda-9e1b37951663 211s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/b8fce4cf-4cd8-4efb-9f88-6321c6f2ad85 (::1) 14.900000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 211s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 211s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 56753bdc-4187-4a25-bd4d-b3f20c095dc8 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 56753bdc-4187-4a25-bd4d-b3f20c095dc8 211s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 211s await kernel_awaitable 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 211s result = await obj 211s ^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b8fce4cf-4cd8-4efb-9f88-6321c6f2ad85 (::1) 211s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b8fce4cf-4cd8-4efb-9f88-6321c6f2ad85', version='HTTP/1.1', remote_ip='::1') 211s Traceback (most recent call last): 211s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 211s result = await result 211s ^^^^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 211s future.result() 211s ~~~~~~~~~~~~~^^ 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 211s yield maybe_future(sm.delete_session(session_id)) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 211s yielded = self.gen.throw(exc) 211s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 211s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 211s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 211s value = future.result() 211s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 211s raise self._exception.with_traceback(self._exception_tb) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 211s result = coro.send(None) 211s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 211s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 211s raise km.ready.exception() # type: ignore[misc] 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 211s await kernel_awaitable 211s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 211s result = await obj 211s ^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 211s raise e 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 211s out = await method(self, *args, **kwargs) 211s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 211s await self._async_finish_shutdown(restart=restart) 211s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 211s await asyncio.wait_for( 211s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 211s ) 211s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 211s async with timeouts.timeout(timeout): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 211s raise RuntimeError("Timeout should be used inside a task") 211s RuntimeError: Timeout should be used inside a task 211s WARNING NotebookApp:handlers.py:612 Unhandled error 211s ERROR NotebookApp:log.py:55 { 211s "Host": "localhost:12341", 211s "Accept": "*/*", 211s "User-Agent": "python-requests/2.32.5" 211s } 211s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b8fce4cf-4cd8-4efb-9f88-6321c6f2ad85 (::1) 7.380000ms referer=None 211s --------------------------- Captured stderr teardown --------------------------- 211s Traceback (most recent call last): 211s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 211s return _run_code(code, main_globals, None, 211s "__main__", mod_spec) 211s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 211s exec(code, run_globals) 211s ~~~~^^^^^^^^^^^^^^^^^^^ 211s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 211s from pathlib import Path 211s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 211s from ._abc import * 211s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 211s from glob import _Globber, _no_recurse_symlinks 211s File "/usr/lib/python3.13/glob.py", line 5, in 211s import re 211s File "/usr/lib/python3.13/re/__init__.py", line 125, in 211s import enum 211s File "/usr/lib/python3.13/enum.py", line 1932, in 211s @_simple_enum(StrEnum) 211s ~~~~~~~~~~~~^^^^^^^^^ 211s File "/usr/lib/python3.13/enum.py", line 1798, in convert_class 211s if cls.__dict__.get('__doc__') is None: 211s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 211s KeyboardInterrupt 211s ---------------------------- Captured log teardown ----------------------------- 211s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 98d6db7f-5804-41db-beda-9e1b37951663 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1343bf86-15a1-4233-a054-89f2d2533237 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 05f92ee5-9e93-4783-bf87-08e3cc248982 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 56753bdc-4187-4a25-bd4d-b3f20c095dc8 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ec171552-5ae2-4730-96d3-4a29bcda10e3 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7b7475e2-152f-4fe5-ad54-2517846968f4 211s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b9e60ffe-fe39-4883-b348-36d8c68e6e1c 211s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 211s =============================== warnings summary =============================== 211s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 211s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 211s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 211s return LooseVersion(v) >= LooseVersion(check) 211s 211s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 211s services/kernels/tests/test_kernels_api.py: 65 warnings 211s services/sessions/tests/test_sessions_api.py: 88 warnings 211s /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). 211s dt = unaware(*args, **kwargs) 211s 211s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 211s /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 211s pytestmark = pytest.mark.integration_tests 211s 211s services/kernels/tests/test_kernels_api.py: 6 warnings 211s services/sessions/tests/test_sessions_api.py: 6 warnings 211s /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 211s policy = events.get_event_loop_policy() 211s 211s services/kernels/tests/test_kernels_api.py: 24 warnings 211s services/sessions/tests/test_sessions_api.py: 19 warnings 211s /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 211s loop = events.get_event_loop_policy().get_event_loop() 211s 211s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 211s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 211s loop.make_current() 211s 211s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 211s =========================== short test summary info ============================ 211s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 211s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 211s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 211s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 211s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 211s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 211s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 211s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 211s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 211s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 211s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 211s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 211s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 211s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 211s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 211s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 211s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 211s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 211s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 211s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 211s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 211s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 211s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 211s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 211s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 211s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 211s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 211s ========== 23 failed, 307 deselected, 213 warnings, 4 errors in 6.31s ========== 211s *** END OF RUN 4: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 211s *** 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.XnQU0x/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 217s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 39%] 218s services/sessions/tests/test_sessions_api.py FFFFFEFFFFFFFEFF [100%] 218s 218s ==================================== ERRORS ==================================== 218s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 218s 218s self = 218s 218s def tearDown(self): 218s for k in self.kern_api.list().json(): 218s > self.kern_api.shutdown(k['id']) 218s 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 218s return self._req('DELETE', id) 218s ^^^^^^^^^^^^^^^^^^^^^^^ 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 218s response.raise_for_status() 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s 218s self = 218s 218s def raise_for_status(self): 218s """Raises :class:`HTTPError`, if one occurred.""" 218s 218s http_error_msg = "" 218s if isinstance(self.reason, bytes): 218s # We attempt to decode utf-8 first because some servers 218s # choose to localize their reason strings. If the string 218s # isn't utf-8, we fall back to iso-8859-1 for all other 218s # encodings. (See PR #3538) 218s try: 218s reason = self.reason.decode("utf-8") 218s except UnicodeDecodeError: 218s reason = self.reason.decode("iso-8859-1") 218s else: 218s reason = self.reason 218s 218s if 400 <= self.status_code < 500: 218s http_error_msg = ( 218s f"{self.status_code} Client Error: {reason} for url: {self.url}" 218s ) 218s 218s elif 500 <= self.status_code < 600: 218s http_error_msg = ( 218s f"{self.status_code} Server Error: {reason} for url: {self.url}" 218s ) 218s 218s if http_error_msg: 218s > raise HTTPError(http_error_msg, response=self) 218s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/5a344904-a829-4612-acbc-d6c25b98768e 218s 218s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 218s ----------------------------- Captured stderr call ----------------------------- 218s Traceback (most recent call last): 218s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 218s return _run_code(code, main_globals, None, 218s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 218s exec(code, run_globals) 218s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 218s from pathlib import Path 218s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 218s from ._abc import * 218s File "", line 1360, in _find_and_load 218s File "", line 1331, in _find_and_load_unlocked 218s File "", line 935, in _load_unlocked 218s File "", line 1019, in exec_module 218s File "", line 1152, in get_code 218s File "", line 781, in _compile_bytecode 218s KeyboardInterrupt 218s Traceback (most recent call last): 218s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 218s return _run_code(code, main_globals, None, 218s "__main__", mod_spec) 218s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 218s exec(code, run_globals) 218s ~~~~^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 218s from ipykernel import kernelapp as app 218s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 218s from .connect import * # noqa: F403 218s ^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 218s import jupyter_client 218s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 218s from .asynchronous import AsyncKernelClient 218s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 218s from .client import AsyncKernelClient # noqa 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 218s import zmq.asyncio 218s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 218s import asyncio 218s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 218s from .base_events import * 218s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 218s import ssl 218s File "/usr/lib/python3.13/ssl.py", line 128, in 218s _IntFlag._convert_( 218s ~~~~~~~~~~~~~~~~~~^ 218s 'Options', __name__, 218s ^^^^^^^^^^^^^^^^^^^^ 218s lambda name: name.startswith('OP_'), 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s source=_ssl) 218s ^^^^^^^^^^^^ 218s File "/usr/lib/python3.13/enum.py", line 928, in _convert_ 218s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 218s File "/usr/lib/python3.13/enum.py", line 1852, in convert_class 218s setattr(enum_class, name, member) 218s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3.13/enum.py", line 840, in __setattr__ 218s super().__setattr__(name, value) 218s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ 218s KeyboardInterrupt 218s ------------------------------ Captured log call ------------------------------- 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphn7oyf9m/runtime/kernel-5a344904-a829-4612-acbc-d6c25b98768e.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56699 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50609 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5a344904-a829-4612-acbc-d6c25b98768e, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.960000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphn7oyf9m/runtime/kernel-d876f032-1d1c-4fab-988a-849c74da26a1.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42067 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48803 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: d876f032-1d1c-4fab-988a-849c74da26a1, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.100000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.830000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: d876f032-1d1c-4fab-988a-849c74da26a1 218s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/d876f032-1d1c-4fab-988a-849c74da26a1/interrupt (::1) 4.180000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 218s yield maybe_future(km.restart_kernel(kernel_id)) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 218s raise self._exception.with_traceback(self._exception_tb) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 218s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 218s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 218s return _runner_map[name].run(inner) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 218s return fut.result(None) 218s ~~~~~~~~~~^^^^^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 218s return self.__get_result() 218s ~~~~~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 218s raise self._exception 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 218s await ensure_async(kernel.restart_kernel(now=now)) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 218s return _runner_map[name].run(inner) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 218s return fut.result(None) 218s ~~~~~~~~~~^^^^^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 218s return self.__get_result() 218s ~~~~~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 218s raise self._exception 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 218s await self._async_shutdown_kernel(now=now, restart=True) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:log.py:55 { 218s "Host": "localhost:12341", 218s "Accept": "*/*", 218s "User-Agent": "python-requests/2.32.5" 218s } 218s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/d876f032-1d1c-4fab-988a-849c74da26a1/restart (::1) 7.250000ms referer=None 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.990000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5a344904-a829-4612-acbc-d6c25b98768e 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5a344904-a829-4612-acbc-d6c25b98768e 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/5a344904-a829-4612-acbc-d6c25b98768e (::1) 218s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/5a344904-a829-4612-acbc-d6c25b98768e', version='HTTP/1.1', remote_ip='::1') 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 218s result = await result 218s ^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 218s yielded = ctx_run(next, result) 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 218s yield maybe_future(km.shutdown_kernel(kernel_id)) 218s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 218s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 218s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 218s return _runner_map[name].run(inner) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 218s return fut.result(None) 218s ~~~~~~~~~~^^^^^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 218s return self.__get_result() 218s ~~~~~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 218s raise self._exception 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 218s stopper = ensure_async(km.shutdown_kernel(now, restart)) 218s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 218s return _runner_map[name].run(inner) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 218s return fut.result(None) 218s ~~~~~~~~~~^^^^^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 218s return self.__get_result() 218s ~~~~~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 218s raise self._exception 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s WARNING NotebookApp:handlers.py:612 Unhandled error 218s ERROR NotebookApp:log.py:55 { 218s "Host": "localhost:12341", 218s "Accept": "*/*", 218s "User-Agent": "python-requests/2.32.5" 218s } 218s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/5a344904-a829-4612-acbc-d6c25b98768e (::1) 7.680000ms referer=None 218s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 218s 218s self = 218s 218s def tearDown(self): 218s for k in self.kern_api.list().json(): 218s > self.kern_api.shutdown(k['id']) 218s 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 218s return self._req('DELETE', id) 218s ^^^^^^^^^^^^^^^^^^^^^^^ 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 218s response.raise_for_status() 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s 218s self = 218s 218s def raise_for_status(self): 218s """Raises :class:`HTTPError`, if one occurred.""" 218s 218s http_error_msg = "" 218s if isinstance(self.reason, bytes): 218s # We attempt to decode utf-8 first because some servers 218s # choose to localize their reason strings. If the string 218s # isn't utf-8, we fall back to iso-8859-1 for all other 218s # encodings. (See PR #3538) 218s try: 218s reason = self.reason.decode("utf-8") 218s except UnicodeDecodeError: 218s reason = self.reason.decode("iso-8859-1") 218s else: 218s reason = self.reason 218s 218s if 400 <= self.status_code < 500: 218s http_error_msg = ( 218s f"{self.status_code} Client Error: {reason} for url: {self.url}" 218s ) 218s 218s elif 500 <= self.status_code < 600: 218s http_error_msg = ( 218s f"{self.status_code} Server Error: {reason} for url: {self.url}" 218s ) 218s 218s if http_error_msg: 218s > raise HTTPError(http_error_msg, response=self) 218s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/4b7c73ad-8016-46ce-ac06-b9f825996169 218s 218s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 218s ----------------------------- Captured stderr call ----------------------------- 218s Traceback (most recent call last): 218s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 218s return _run_code(code, main_globals, None, 218s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 218s exec(code, run_globals) 218s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 218s from pathlib import Path 218s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 218s from ._abc import * 218s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 218s import functools 218s File "/usr/lib/python3.13/functools.py", line 18, in 218s from collections import namedtuple 218s File "/usr/lib/python3.13/collections/__init__.py", line 41, in 218s from reprlib import recursive_repr as _recursive_repr 218s File "", line 1360, in _find_and_load 218s File "", line 1331, in _find_and_load_unlocked 218s File "", line 935, in _load_unlocked 218s File "", line 1019, in exec_module 218s File "", line 1152, in get_code 218s File "", line 781, in _compile_bytecode 218s KeyboardInterrupt 218s Traceback (most recent call last): 218s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 218s return _run_code(code, main_globals, None, 218s "__main__", mod_spec) 218s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 218s exec(code, run_globals) 218s ~~~~^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 218s from ipykernel import kernelapp as app 218s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 218s from .connect import * # noqa: F403 218s ^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 218s import jupyter_client 218s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 218s from .asynchronous import AsyncKernelClient 218s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 218s from .client import AsyncKernelClient # noqa 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 218s import zmq.asyncio 218s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 218s import asyncio 218s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 218s from .base_events import * 218s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 218s import ssl 218s File "/usr/lib/python3.13/ssl.py", line 100, in 218s import _ssl # if we can't import it, let the error propagate 218s ^^^^^^^^^^^ 218s KeyboardInterrupt 218s ------------------------------ Captured log call ------------------------------- 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpyht34k7d/runtime/kernel-4b7c73ad-8016-46ce-ac06-b9f825996169.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60349 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60525 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4b7c73ad-8016-46ce-ac06-b9f825996169, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.320000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.730000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpyht34k7d/runtime/kernel-dcfc55f1-6abb-4054-bb14-ecb386f27307.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45183 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52155 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: dcfc55f1-6abb-4054-bb14-ecb386f27307, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.770000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.810000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: dcfc55f1-6abb-4054-bb14-ecb386f27307 218s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/dcfc55f1-6abb-4054-bb14-ecb386f27307/interrupt (::1) 0.570000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 218s yield maybe_future(km.restart_kernel(kernel_id)) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 218s raise self._exception.with_traceback(self._exception_tb) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 218s result = coro.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 218s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 218s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 218s yield self # This tells Task to wait for completion. 218s ^^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 218s future.result() 218s ~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 218s raise self._exception.with_traceback(self._exception_tb) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 218s await ensure_async(kernel.restart_kernel(now=now)) 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 218s result = await obj 218s ^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 218s await self._async_shutdown_kernel(now=now, restart=True) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:log.py:55 { 218s "Host": "localhost:12341", 218s "Accept": "*/*", 218s "User-Agent": "python-requests/2.32.5" 218s } 218s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/dcfc55f1-6abb-4054-bb14-ecb386f27307/restart (::1) 8.090000ms referer=None 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.790000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4b7c73ad-8016-46ce-ac06-b9f825996169 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4b7c73ad-8016-46ce-ac06-b9f825996169 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 218s await kernel_awaitable 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 218s result = await obj 218s ^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/4b7c73ad-8016-46ce-ac06-b9f825996169 (::1) 218s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/4b7c73ad-8016-46ce-ac06-b9f825996169', version='HTTP/1.1', remote_ip='::1') 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 218s result = await result 218s ^^^^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 218s future.result() 218s ~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 218s yield maybe_future(km.shutdown_kernel(kernel_id)) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 218s raise self._exception.with_traceback(self._exception_tb) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 218s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 218s raise km.ready.exception() # type: ignore[misc] 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 218s await kernel_awaitable 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 218s result = await obj 218s ^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s WARNING NotebookApp:handlers.py:612 Unhandled error 218s ERROR NotebookApp:log.py:55 { 218s "Host": "localhost:12341", 218s "Accept": "*/*", 218s "User-Agent": "python-requests/2.32.5" 218s } 218s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/4b7c73ad-8016-46ce-ac06-b9f825996169 (::1) 6.830000ms referer=None 218s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 218s 218s @self.addCleanup 218s def cleanup_sessions(): 218s for session in self.sess_api.list().json(): 218s > self.sess_api.delete(session['id']) 218s 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 218s return self._req('DELETE', id) 218s ^^^^^^^^^^^^^^^^^^^^^^^ 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 218s response.raise_for_status() 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s 218s self = 218s 218s def raise_for_status(self): 218s """Raises :class:`HTTPError`, if one occurred.""" 218s 218s http_error_msg = "" 218s if isinstance(self.reason, bytes): 218s # We attempt to decode utf-8 first because some servers 218s # choose to localize their reason strings. If the string 218s # isn't utf-8, we fall back to iso-8859-1 for all other 218s # encodings. (See PR #3538) 218s try: 218s reason = self.reason.decode("utf-8") 218s except UnicodeDecodeError: 218s reason = self.reason.decode("iso-8859-1") 218s else: 218s reason = self.reason 218s 218s if 400 <= self.status_code < 500: 218s http_error_msg = ( 218s f"{self.status_code} Client Error: {reason} for url: {self.url}" 218s ) 218s 218s elif 500 <= self.status_code < 600: 218s http_error_msg = ( 218s f"{self.status_code} Server Error: {reason} for url: {self.url}" 218s ) 218s 218s if http_error_msg: 218s > raise HTTPError(http_error_msg, response=self) 218s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c0c66206-c46f-4c4d-8ce5-0cf53fdaaf44 218s 218s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 218s ----------------------------- Captured stderr call ----------------------------- 218s Traceback (most recent call last): 218s ------------------------------ Captured log call ------------------------------- 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4w3dwwej/runtime/kernel-3a37a5fc-82c0-4d51-8c7b-f652ec942595.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53667 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44351 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3a37a5fc-82c0-4d51-8c7b-f652ec942595, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.780000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.740000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.660000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.660000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fd93204c-ce7b-47b6-938f-fc7f82f43df3 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fd93204c-ce7b-47b6-938f-fc7f82f43df3 218s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/900655e1-45f6-408f-a706-fce55277d40a (::1) 4.760000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3a37a5fc-82c0-4d51-8c7b-f652ec942595 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3a37a5fc-82c0-4d51-8c7b-f652ec942595 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c0c66206-c46f-4c4d-8ce5-0cf53fdaaf44 (::1) 218s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c0c66206-c46f-4c4d-8ce5-0cf53fdaaf44', version='HTTP/1.1', remote_ip='::1') 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 218s result = await result 218s ^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 218s yield maybe_future(sm.delete_session(session_id)) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 218s yielded = self.gen.send(value) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 218s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 218s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 218s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 218s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 218s return _runner_map[name].run(inner) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 218s return fut.result(None) 218s ~~~~~~~~~~^^^^^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 218s return self.__get_result() 218s ~~~~~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 218s raise self._exception 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 218s stopper = ensure_async(km.shutdown_kernel(now, restart)) 218s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 218s return _runner_map[name].run(inner) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 218s return fut.result(None) 218s ~~~~~~~~~~^^^^^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 218s return self.__get_result() 218s ~~~~~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 218s raise self._exception 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s WARNING NotebookApp:handlers.py:612 Unhandled error 218s ERROR NotebookApp:log.py:55 { 218s "Host": "localhost:12341", 218s "Accept": "*/*", 218s "User-Agent": "python-requests/2.32.5" 218s } 218s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c0c66206-c46f-4c4d-8ce5-0cf53fdaaf44 (::1) 15.960000ms referer=None 218s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 218s 218s @self.addCleanup 218s def cleanup_sessions(): 218s for session in self.sess_api.list().json(): 218s > self.sess_api.delete(session['id']) 218s 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 218s return self._req('DELETE', id) 218s ^^^^^^^^^^^^^^^^^^^^^^^ 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 218s response.raise_for_status() 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s 218s self = 218s 218s def raise_for_status(self): 218s """Raises :class:`HTTPError`, if one occurred.""" 218s 218s http_error_msg = "" 218s if isinstance(self.reason, bytes): 218s # We attempt to decode utf-8 first because some servers 218s # choose to localize their reason strings. If the string 218s # isn't utf-8, we fall back to iso-8859-1 for all other 218s # encodings. (See PR #3538) 218s try: 218s reason = self.reason.decode("utf-8") 218s except UnicodeDecodeError: 218s reason = self.reason.decode("iso-8859-1") 218s else: 218s reason = self.reason 218s 218s if 400 <= self.status_code < 500: 218s http_error_msg = ( 218s f"{self.status_code} Client Error: {reason} for url: {self.url}" 218s ) 218s 218s elif 500 <= self.status_code < 600: 218s http_error_msg = ( 218s f"{self.status_code} Server Error: {reason} for url: {self.url}" 218s ) 218s 218s if http_error_msg: 218s > raise HTTPError(http_error_msg, response=self) 218s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1a70a0e8-efb9-4628-b00c-cb621a182ba6 218s 218s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 218s ----------------------------- Captured stderr call ----------------------------- 218s Traceback (most recent call last): 218s ------------------------------ Captured log call ------------------------------- 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9det5wu7/runtime/kernel-334ccb90-3440-4481-9f9e-ebba829e2b4a.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48315 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50695 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: 334ccb90-3440-4481-9f9e-ebba829e2b4a, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.550000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.880000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.830000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 37a3f721-f67e-484a-9644-c34c63584c06 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 37a3f721-f67e-484a-9644-c34c63584c06 218s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c3dcb27d-e6d3-4c85-acb9-b810af0ca61e (::1) 1.860000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 334ccb90-3440-4481-9f9e-ebba829e2b4a 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 334ccb90-3440-4481-9f9e-ebba829e2b4a 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 218s await kernel_awaitable 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 218s result = await obj 218s ^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1a70a0e8-efb9-4628-b00c-cb621a182ba6 (::1) 218s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1a70a0e8-efb9-4628-b00c-cb621a182ba6', version='HTTP/1.1', remote_ip='::1') 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 218s result = await result 218s ^^^^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 218s future.result() 218s ~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 218s yield maybe_future(sm.delete_session(session_id)) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 218s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 218s raise self._exception.with_traceback(self._exception_tb) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 218s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 218s raise km.ready.exception() # type: ignore[misc] 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 218s await kernel_awaitable 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 218s result = await obj 218s ^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s WARNING NotebookApp:handlers.py:612 Unhandled error 218s --------------------------- Captured stderr teardown --------------------------- 218s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 218s return _run_code(code, main_globals, None, 218s "__main__", mod_spec) 218s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 218s exec(code, run_globals) 218s ~~~~^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 218s from ipykernel import kernelapp as app 218s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 218s from .connect import * # noqa: F403 218s ^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 218s import json 218s File "/usr/lib/python3.13/json/__init__.py", line 107, in 218s from .encoder import JSONEncoder 218s File "", line 1360, in _find_and_load 218s File "", line 1331, in _find_and_load_unlocked 218s File "", line 935, in _load_unlocked 218s File "", line 1019, in exec_module 218s File "", line 1152, in get_code 218s File "", line 781, in _compile_bytecode 218s KeyboardInterrupt 218s =================================== FAILURES =================================== 218s ______________________ KernelAPITest.test_default_kernel _______________________ 218s 218s self = 218s 218s def tearDown(self): 218s for k in self.kern_api.list().json(): 218s > self.kern_api.shutdown(k['id']) 218s 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 218s return self._req('DELETE', id) 218s ^^^^^^^^^^^^^^^^^^^^^^^ 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 218s response.raise_for_status() 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s 218s self = 218s 218s def raise_for_status(self): 218s """Raises :class:`HTTPError`, if one occurred.""" 218s 218s http_error_msg = "" 218s if isinstance(self.reason, bytes): 218s # We attempt to decode utf-8 first because some servers 218s # choose to localize their reason strings. If the string 218s # isn't utf-8, we fall back to iso-8859-1 for all other 218s # encodings. (See PR #3538) 218s try: 218s reason = self.reason.decode("utf-8") 218s except UnicodeDecodeError: 218s reason = self.reason.decode("iso-8859-1") 218s else: 218s reason = self.reason 218s 218s if 400 <= self.status_code < 500: 218s http_error_msg = ( 218s f"{self.status_code} Client Error: {reason} for url: {self.url}" 218s ) 218s 218s elif 500 <= self.status_code < 600: 218s http_error_msg = ( 218s f"{self.status_code} Server Error: {reason} for url: {self.url}" 218s ) 218s 218s if http_error_msg: 218s > raise HTTPError(http_error_msg, response=self) 218s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/8add7b9d-0442-4c63-90e1-95577b77a3fd 218s 218s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 218s ------------------------------ Captured log setup ------------------------------ 218s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmphn7oyf9m/config', '/tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmphn7oyf9m/etc/jupyter'] for config files 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmphn7oyf9m/etc/jupyter 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmphn7oyf9m/config 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmphn7oyf9m/etc/jupyter 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmphn7oyf9m/config 218s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmphn7oyf9m/notebooks 218s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 218s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 218s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 218s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 218s WARNING NotebookApp:handlers.py:612 Forbidden 218s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.720000ms referer=None 218s ----------------------------- Captured stderr call ----------------------------- 218s Traceback (most recent call last): 218s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 218s return _run_code(code, main_globals, None, 218s "__main__", mod_spec) 218s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 218s exec(code, run_globals) 218s ~~~~^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 218s from pathlib import Path 218s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 218s from ._local import * 218s File "", line 1360, in _find_and_load 218s File "", line 1331, in _find_and_load_unlocked 218s File "", line 935, in _load_unlocked 218s File "", line 1019, in exec_module 218s File "", line 1152, in get_code 218s File "", line 781, in _compile_bytecode 218s KeyboardInterrupt 218s ------------------------------ Captured log call ------------------------------- 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphn7oyf9m/runtime/kernel-8add7b9d-0442-4c63-90e1-95577b77a3fd.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46533 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35713 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8add7b9d-0442-4c63-90e1-95577b77a3fd, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 60.540000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.740000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8add7b9d-0442-4c63-90e1-95577b77a3fd 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8add7b9d-0442-4c63-90e1-95577b77a3fd 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/8add7b9d-0442-4c63-90e1-95577b77a3fd (::1) 218s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/8add7b9d-0442-4c63-90e1-95577b77a3fd', version='HTTP/1.1', remote_ip='::1') 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 218s result = await result 218s ^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 218s yielded = ctx_run(next, result) 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 218s yield maybe_future(km.shutdown_kernel(kernel_id)) 218s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 218s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 218s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 218s return _runner_map[name].run(inner) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 218s return fut.result(None) 218s ~~~~~~~~~~^^^^^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 218s return self.__get_result() 218s ~~~~~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 218s raise self._exception 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 218s stopper = ensure_async(km.shutdown_kernel(now, restart)) 218s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 218s return _runner_map[name].run(inner) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 218s return fut.result(None) 218s ~~~~~~~~~~^^^^^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 218s return self.__get_result() 218s ~~~~~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 218s raise self._exception 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s WARNING NotebookApp:handlers.py:612 Unhandled error 218s ______________________ KernelAPITest.test_kernel_handler _______________________ 218s 218s self = 218s 218s def test_kernel_handler(self): 218s # GET kernel with given id 218s kid = self.kern_api.start().json()['id'] 218s r = self.kern_api.get(kid) 218s kern1 = r.json() 218s self.assertEqual(r.status_code, 200) 218s assert isinstance(kern1, dict) 218s self.assertIn('id', kern1) 218s self.assertEqual(kern1['id'], kid) 218s 218s # Request a bad kernel id and check that a JSON 218s # message is returned! 218s bad_id = '111-111-111-111-111' 218s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 218s self.kern_api.get(bad_id) 218s 218s # DELETE kernel with id 218s > r = self.kern_api.shutdown(kid) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 218s return self._req('DELETE', id) 218s ^^^^^^^^^^^^^^^^^^^^^^^ 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 218s response.raise_for_status() 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s 218s self = 218s 218s def raise_for_status(self): 218s """Raises :class:`HTTPError`, if one occurred.""" 218s 218s http_error_msg = "" 218s if isinstance(self.reason, bytes): 218s # We attempt to decode utf-8 first because some servers 218s # choose to localize their reason strings. If the string 218s # isn't utf-8, we fall back to iso-8859-1 for all other 218s # encodings. (See PR #3538) 218s try: 218s reason = self.reason.decode("utf-8") 218s except UnicodeDecodeError: 218s reason = self.reason.decode("iso-8859-1") 218s else: 218s reason = self.reason 218s 218s if 400 <= self.status_code < 500: 218s http_error_msg = ( 218s f"{self.status_code} Client Error: {reason} for url: {self.url}" 218s ) 218s 218s elif 500 <= self.status_code < 600: 218s http_error_msg = ( 218s f"{self.status_code} Server Error: {reason} for url: {self.url}" 218s ) 218s 218s if http_error_msg: 218s > raise HTTPError(http_error_msg, response=self) 218s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/008c84b4-fe83-46c1-9c38-b3991d9f858a 218s 218s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 218s ----------------------------- Captured stderr call ----------------------------- 218s Traceback (most recent call last): 218s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 218s return _run_code(code, main_globals, None, 218s "__main__", mod_spec) 218s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 218s exec(code, run_globals) 218s ~~~~^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 218s from pathlib import Path 218s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 218s from ._abc import * 218s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 218s from glob import _Globber, _no_recurse_symlinks 218s File "/usr/lib/python3.13/glob.py", line 5, in 218s import re 218s File "/usr/lib/python3.13/re/__init__.py", line 126, in 218s from . import _compiler, _parser 218s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 218s from . import _parser 218s File "/usr/lib/python3.13/re/_parser.py", line 15, in 218s from ._constants import * 218s File "", line 1360, in _find_and_load 218s File "", line 1331, in _find_and_load_unlocked 218s File "", line 935, in _load_unlocked 218s File "", line 1019, in exec_module 218s File "", line 1152, in get_code 218s File "", line 781, in _compile_bytecode 218s KeyboardInterrupt 218s ------------------------------ Captured log call ------------------------------- 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphn7oyf9m/runtime/kernel-008c84b4-fe83-46c1-9c38-b3991d9f858a.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56535 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57533 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: 008c84b4-fe83-46c1-9c38-b3991d9f858a, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.530000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/008c84b4-fe83-46c1-9c38-b3991d9f858a (::1) 1.740000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s 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 218s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 218s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 1.770000ms referer=None 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 008c84b4-fe83-46c1-9c38-b3991d9f858a 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 008c84b4-fe83-46c1-9c38-b3991d9f858a 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/008c84b4-fe83-46c1-9c38-b3991d9f858a (::1) 218s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/008c84b4-fe83-46c1-9c38-b3991d9f858a', version='HTTP/1.1', remote_ip='::1') 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 218s result = await result 218s ^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 218s yielded = ctx_run(next, result) 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 218s yield maybe_future(km.shutdown_kernel(kernel_id)) 218s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 218s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 218s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 218s return _runner_map[name].run(inner) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 218s return fut.result(None) 218s ~~~~~~~~~~^^^^^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 218s return self.__get_result() 218s ~~~~~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 218s raise self._exception 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 218s stopper = ensure_async(km.shutdown_kernel(now, restart)) 218s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 218s return _runner_map[name].run(inner) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 218s return fut.result(None) 218s ~~~~~~~~~~^^^^^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 218s return self.__get_result() 218s ~~~~~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 218s raise self._exception 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s WARNING NotebookApp:handlers.py:612 Unhandled error 218s ERROR NotebookApp:log.py:55 { 218s "Host": "localhost:12341", 218s "Accept": "*/*", 218s "User-Agent": "python-requests/2.32.5" 218s } 218s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/008c84b4-fe83-46c1-9c38-b3991d9f858a (::1) 9.150000ms referer=None 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8add7b9d-0442-4c63-90e1-95577b77a3fd 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8add7b9d-0442-4c63-90e1-95577b77a3fd 218s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/8add7b9d-0442-4c63-90e1-95577b77a3fd (::1) 1.890000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 008c84b4-fe83-46c1-9c38-b3991d9f858a 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 008c84b4-fe83-46c1-9c38-b3991d9f858a 218s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/008c84b4-fe83-46c1-9c38-b3991d9f858a (::1) 0.710000ms 218s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 218s 218s self = 218s 218s def test_main_kernel_handler(self): 218s # POST request 218s r = self.kern_api.start() 218s kern1 = r.json() 218s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 218s self.assertEqual(r.status_code, 201) 218s self.assertIsInstance(kern1, dict) 218s 218s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 218s expected_csp = '; '.join([ 218s "frame-ancestors 'self'", 218s 'report-uri ' + report_uri, 218s "default-src 'none'" 218s ]) 218s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 218s 218s # GET request 218s r = self.kern_api.list() 218s self.assertEqual(r.status_code, 200) 218s assert isinstance(r.json(), list) 218s self.assertEqual(r.json()[0]['id'], kern1['id']) 218s self.assertEqual(r.json()[0]['name'], kern1['name']) 218s 218s # create another kernel and check that they both are added to the 218s # list of kernels from a GET request 218s kern2 = self.kern_api.start().json() 218s assert isinstance(kern2, dict) 218s r = self.kern_api.list() 218s kernels = r.json() 218s self.assertEqual(r.status_code, 200) 218s assert isinstance(kernels, list) 218s self.assertEqual(len(kernels), 2) 218s 218s # Interrupt a kernel 218s r = self.kern_api.interrupt(kern2['id']) 218s self.assertEqual(r.status_code, 204) 218s 218s # Restart a kernel 218s > r = self.kern_api.restart(kern2['id']) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 218s return self._req('POST', url_path_join(id, 'restart')) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 218s response.raise_for_status() 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s 218s self = 218s 218s def raise_for_status(self): 218s """Raises :class:`HTTPError`, if one occurred.""" 218s 218s http_error_msg = "" 218s if isinstance(self.reason, bytes): 218s # We attempt to decode utf-8 first because some servers 218s # choose to localize their reason strings. If the string 218s # isn't utf-8, we fall back to iso-8859-1 for all other 218s # encodings. (See PR #3538) 218s try: 218s reason = self.reason.decode("utf-8") 218s except UnicodeDecodeError: 218s reason = self.reason.decode("iso-8859-1") 218s else: 218s reason = self.reason 218s 218s if 400 <= self.status_code < 500: 218s http_error_msg = ( 218s f"{self.status_code} Client Error: {reason} for url: {self.url}" 218s ) 218s 218s elif 500 <= self.status_code < 600: 218s http_error_msg = ( 218s f"{self.status_code} Server Error: {reason} for url: {self.url}" 218s ) 218s 218s if http_error_msg: 218s > raise HTTPError(http_error_msg, response=self) 218s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/d876f032-1d1c-4fab-988a-849c74da26a1/restart 218s 218s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 218s ----------------------------- Captured stderr call ----------------------------- 218s Traceback (most recent call last): 218s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 218s return _run_code(code, main_globals, None, 218s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 218s exec(code, run_globals) 218s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 218s from pathlib import Path 218s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 218s from ._abc import * 218s File "", line 1360, in _find_and_load 218s File "", line 1331, in _find_and_load_unlocked 218s File "", line 935, in _load_unlocked 218s File "", line 1019, in exec_module 218s File "", line 1152, in get_code 218s File "", line 781, in _compile_bytecode 218s KeyboardInterrupt 218s Traceback (most recent call last): 218s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 218s return _run_code(code, main_globals, None, 218s "__main__", mod_spec) 218s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 218s exec(code, run_globals) 218s ~~~~^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 218s from ipykernel import kernelapp as app 218s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 218s from .connect import * # noqa: F403 218s ^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 218s import jupyter_client 218s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 218s from .asynchronous import AsyncKernelClient 218s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 218s from .client import AsyncKernelClient # noqa 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 218s import zmq.asyncio 218s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 218s import asyncio 218s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 218s from .base_events import * 218s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 218s import ssl 218s File "/usr/lib/python3.13/ssl.py", line 128, in 218s _IntFlag._convert_( 218s ~~~~~~~~~~~~~~~~~~^ 218s 'Options', __name__, 218s ^^^^^^^^^^^^^^^^^^^^ 218s lambda name: name.startswith('OP_'), 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s source=_ssl) 218s ^^^^^^^^^^^^ 218s File "/usr/lib/python3.13/enum.py", line 928, in _convert_ 218s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 218s File "/usr/lib/python3.13/enum.py", line 1852, in convert_class 218s setattr(enum_class, name, member) 218s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3.13/enum.py", line 840, in __setattr__ 218s super().__setattr__(name, value) 218s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ 218s KeyboardInterrupt 218s ------------------------------ Captured log call ------------------------------- 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphn7oyf9m/runtime/kernel-5a344904-a829-4612-acbc-d6c25b98768e.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56699 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50609 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5a344904-a829-4612-acbc-d6c25b98768e, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.960000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphn7oyf9m/runtime/kernel-d876f032-1d1c-4fab-988a-849c74da26a1.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42067 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48803 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: d876f032-1d1c-4fab-988a-849c74da26a1, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.100000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.830000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: d876f032-1d1c-4fab-988a-849c74da26a1 218s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/d876f032-1d1c-4fab-988a-849c74da26a1/interrupt (::1) 4.180000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 218s yield maybe_future(km.restart_kernel(kernel_id)) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 218s raise self._exception.with_traceback(self._exception_tb) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 218s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 218s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 218s return _runner_map[name].run(inner) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 218s return fut.result(None) 218s ~~~~~~~~~~^^^^^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 218s return self.__get_result() 218s ~~~~~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 218s raise self._exception 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 218s await ensure_async(kernel.restart_kernel(now=now)) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 218s return _runner_map[name].run(inner) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 218s return fut.result(None) 218s ~~~~~~~~~~^^^^^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 218s return self.__get_result() 218s ~~~~~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 218s raise self._exception 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 218s await self._async_shutdown_kernel(now=now, restart=True) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:log.py:55 { 218s "Host": "localhost:12341", 218s "Accept": "*/*", 218s "User-Agent": "python-requests/2.32.5" 218s } 218s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/d876f032-1d1c-4fab-988a-849c74da26a1/restart (::1) 7.250000ms referer=None 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.990000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5a344904-a829-4612-acbc-d6c25b98768e 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5a344904-a829-4612-acbc-d6c25b98768e 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/5a344904-a829-4612-acbc-d6c25b98768e (::1) 218s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/5a344904-a829-4612-acbc-d6c25b98768e', version='HTTP/1.1', remote_ip='::1') 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 218s result = await result 218s ^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 218s yielded = ctx_run(next, result) 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 218s yield maybe_future(km.shutdown_kernel(kernel_id)) 218s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 218s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 218s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 218s return _runner_map[name].run(inner) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 218s return fut.result(None) 218s ~~~~~~~~~~^^^^^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 218s return self.__get_result() 218s ~~~~~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 218s raise self._exception 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 218s stopper = ensure_async(km.shutdown_kernel(now, restart)) 218s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 218s return _runner_map[name].run(inner) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 218s return fut.result(None) 218s ~~~~~~~~~~^^^^^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 218s return self.__get_result() 218s ~~~~~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 218s raise self._exception 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s WARNING NotebookApp:handlers.py:612 Unhandled error 218s ERROR NotebookApp:log.py:55 { 218s "Host": "localhost:12341", 218s "Accept": "*/*", 218s "User-Agent": "python-requests/2.32.5" 218s } 218s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/5a344904-a829-4612-acbc-d6c25b98768e (::1) 7.680000ms referer=None 218s ________________________ KernelAPITest.test_no_kernels _________________________ 218s 218s self = 218s 218s def test_no_kernels(self): 218s """Make sure there are no kernels running at the start""" 218s kernels = self.kern_api.list().json() 218s > self.assertEqual(kernels, []) 218s E AssertionError: Lists differ: [{'id': '5a344904-a829-4612-acbc-d6c25b987[281 chars]: 0}] != [] 218s E 218s E First list contains 2 additional elements. 218s E First extra element 0: 218s E {'id': '5a344904-a829-4612-acbc-d6c25b98768e', 'name': 'python3', 'last_activity': '2026-01-30T06:18:15.011251Z', 'execution_state': 'starting', 'connections': 0} 218s E 218s E + [] 218s E - [{'connections': 0, 218s E - 'execution_state': 'starting', 218s E - 'id': '5a344904-a829-4612-acbc-d6c25b98768e', 218s E - 'last_activity': '2026-01-30T06:18:15.011251Z', 218s E - 'name': 'python3'}, 218s E - {'connections': 0, 218s E - 'execution_state': 'starting', 218s E - 'id': 'd876f032-1d1c-4fab-988a-849c74da26a1', 218s E - 'last_activity': '2026-01-30T06:18:15.030402Z', 218s E - 'name': 'python3'}] 218s 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 218s ------------------------------ Captured log call ------------------------------- 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.010000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.460000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5a344904-a829-4612-acbc-d6c25b98768e 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5a344904-a829-4612-acbc-d6c25b98768e 218s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/5a344904-a829-4612-acbc-d6c25b98768e (::1) 3.950000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d876f032-1d1c-4fab-988a-849c74da26a1 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d876f032-1d1c-4fab-988a-849c74da26a1 218s ---------------------------- Captured log teardown ----------------------------- 218s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 218s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 218s _____________________ AsyncKernelAPITest.test_connections ______________________ 218s 218s self = 218s 218s def tearDown(self): 218s for k in self.kern_api.list().json(): 218s > self.kern_api.shutdown(k['id']) 218s 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 218s return self._req('DELETE', id) 218s ^^^^^^^^^^^^^^^^^^^^^^^ 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 218s response.raise_for_status() 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s 218s self = 218s 218s def raise_for_status(self): 218s """Raises :class:`HTTPError`, if one occurred.""" 218s 218s http_error_msg = "" 218s if isinstance(self.reason, bytes): 218s # We attempt to decode utf-8 first because some servers 218s # choose to localize their reason strings. If the string 218s # isn't utf-8, we fall back to iso-8859-1 for all other 218s # encodings. (See PR #3538) 218s try: 218s reason = self.reason.decode("utf-8") 218s except UnicodeDecodeError: 218s reason = self.reason.decode("iso-8859-1") 218s else: 218s reason = self.reason 218s 218s if 400 <= self.status_code < 500: 218s http_error_msg = ( 218s f"{self.status_code} Client Error: {reason} for url: {self.url}" 218s ) 218s 218s elif 500 <= self.status_code < 600: 218s http_error_msg = ( 218s f"{self.status_code} Server Error: {reason} for url: {self.url}" 218s ) 218s 218s if http_error_msg: 218s > raise HTTPError(http_error_msg, response=self) 218s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/8b17ea69-be0d-4d46-850d-f239bfdc1607 218s 218s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 218s ------------------------------ Captured log setup ------------------------------ 218s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpyht34k7d/config', '/tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpyht34k7d/etc/jupyter'] for config files 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpyht34k7d/etc/jupyter 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpyht34k7d/config 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpyht34k7d/etc/jupyter 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpyht34k7d/config 218s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpyht34k7d/notebooks 218s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 218s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 218s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 218s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 218s WARNING NotebookApp:handlers.py:612 Forbidden 218s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.430000ms referer=None 218s ------------------------------ Captured log call ------------------------------- 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpyht34k7d/runtime/kernel-8b17ea69-be0d-4d46-850d-f239bfdc1607.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35579 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58339 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8b17ea69-be0d-4d46-850d-f239bfdc1607, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.260000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/8b17ea69-be0d-4d46-850d-f239bfdc1607 (::1) 0.530000ms 218s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/8b17ea69-be0d-4d46-850d-f239bfdc1607/channels 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 218s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 8b17ea69-be0d-4d46-850d-f239bfdc1607 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60721 218s 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/'}]} 218s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 8b17ea69-be0d-4d46-850d-f239bfdc1607) to 5.4 (client). 218s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/8b17ea69-be0d-4d46-850d-f239bfdc1607/channels (::1) 490.700000ms 218s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/8b17ea69-be0d-4d46-850d-f239bfdc1607/channels 218s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 8b17ea69-be0d-4d46-850d-f239bfdc1607 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58339 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60721 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35579 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42645 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60721 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35579 218s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 218s Setting websocket_ping_timeout=30000 218s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 8b17ea69-be0d-4d46-850d-f239bfdc1607 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/8b17ea69-be0d-4d46-850d-f239bfdc1607 (::1) 1.420000ms 218s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 8b17ea69-be0d-4d46-850d-f239bfdc1607 218s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 8b17ea69-be0d-4d46-850d-f239bfdc1607 218s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: 8b17ea69-be0d-4d46-850d-f239bfdc1607 218s DEBUG NotebookApp:handlers.py:197 Nudge: resolving shell future: 8b17ea69-be0d-4d46-850d-f239bfdc1607 218s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 8b17ea69-be0d-4d46-850d-f239bfdc1607 218s DEBUG NotebookApp:handlers.py:579 Websocket closed 8b17ea69-be0d-4d46-850d-f239bfdc1607:ef46b046-0ff2b0019bb04872214d99b5 218s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 8b17ea69-be0d-4d46-850d-f239bfdc1607:ef46b046-0ff2b0019bb04872214d99b5 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8b17ea69-be0d-4d46-850d-f239bfdc1607 218s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 8b17ea69-be0d-4d46-850d-f239bfdc1607:iopub 218s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 8b17ea69-be0d-4d46-850d-f239bfdc1607:iopub 218s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 8b17ea69-be0d-4d46-850d-f239bfdc1607:iopub 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/8b17ea69-be0d-4d46-850d-f239bfdc1607 (::1) 0.510000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/8b17ea69-be0d-4d46-850d-f239bfdc1607 (::1) 0.480000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.530000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8b17ea69-be0d-4d46-850d-f239bfdc1607 218s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for 8b17ea69-be0d-4d46-850d-f239bfdc1607:ef46b046-0ff2b0019bb04872214d99b5 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8b17ea69-be0d-4d46-850d-f239bfdc1607 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 218s await kernel_awaitable 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 218s result = await obj 218s ^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/8b17ea69-be0d-4d46-850d-f239bfdc1607 (::1) 218s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/8b17ea69-be0d-4d46-850d-f239bfdc1607', version='HTTP/1.1', remote_ip='::1') 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 218s result = await result 218s ^^^^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 218s future.result() 218s ~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 218s yield maybe_future(km.shutdown_kernel(kernel_id)) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 218s raise self._exception.with_traceback(self._exception_tb) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 218s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 218s raise km.ready.exception() # type: ignore[misc] 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 218s await kernel_awaitable 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 218s result = await obj 218s ^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s WARNING NotebookApp:handlers.py:612 Unhandled error 218s ERROR NotebookApp:log.py:55 { 218s "Host": "localhost:12341", 218s "Accept": "*/*", 218s "User-Agent": "python-requests/2.32.5" 218s } 218s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/8b17ea69-be0d-4d46-850d-f239bfdc1607 (::1) 9.680000ms referer=None 218s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 218s 218s self = 218s 218s def tearDown(self): 218s for k in self.kern_api.list().json(): 218s > self.kern_api.shutdown(k['id']) 218s 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 218s return self._req('DELETE', id) 218s ^^^^^^^^^^^^^^^^^^^^^^^ 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 218s response.raise_for_status() 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s 218s self = 218s 218s def raise_for_status(self): 218s """Raises :class:`HTTPError`, if one occurred.""" 218s 218s http_error_msg = "" 218s if isinstance(self.reason, bytes): 218s # We attempt to decode utf-8 first because some servers 218s # choose to localize their reason strings. If the string 218s # isn't utf-8, we fall back to iso-8859-1 for all other 218s # encodings. (See PR #3538) 218s try: 218s reason = self.reason.decode("utf-8") 218s except UnicodeDecodeError: 218s reason = self.reason.decode("iso-8859-1") 218s else: 218s reason = self.reason 218s 218s if 400 <= self.status_code < 500: 218s http_error_msg = ( 218s f"{self.status_code} Client Error: {reason} for url: {self.url}" 218s ) 218s 218s elif 500 <= self.status_code < 600: 218s http_error_msg = ( 218s f"{self.status_code} Server Error: {reason} for url: {self.url}" 218s ) 218s 218s if http_error_msg: 218s > raise HTTPError(http_error_msg, response=self) 218s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/4bc94e50-1271-4782-b07c-548edc18b729 218s 218s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 218s ----------------------------- Captured stderr call ----------------------------- 218s Traceback (most recent call last): 218s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 218s return _run_code(code, main_globals, None, 218s "__main__", mod_spec) 218s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 218s exec(code, run_globals) 218s ~~~~^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 218s from ipykernel import kernelapp as app 218s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 218s from .connect import * # noqa: F403 218s ^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 218s from subprocess import PIPE, Popen 218s File "/usr/lib/python3.13/subprocess.py", line 125, in 218s import selectors 218s File "/usr/lib/python3.13/selectors.py", line 46, in 218s SelectorKey = namedtuple('SelectorKey', ['fileobj', 'fd', 'events', 'data']) 218s File "/usr/lib/python3.13/collections/__init__.py", line 444, in namedtuple 218s __new__ = eval(code, namespace) 218s File "", line 0, in 218s KeyboardInterrupt 218s ------------------------------ Captured log call ------------------------------- 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpyht34k7d/runtime/kernel-4bc94e50-1271-4782-b07c-548edc18b729.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56373 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47059 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4bc94e50-1271-4782-b07c-548edc18b729, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.590000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.600000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8b17ea69-be0d-4d46-850d-f239bfdc1607 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8b17ea69-be0d-4d46-850d-f239bfdc1607 218s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/8b17ea69-be0d-4d46-850d-f239bfdc1607 (::1) 0.670000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4bc94e50-1271-4782-b07c-548edc18b729 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4bc94e50-1271-4782-b07c-548edc18b729 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 218s await kernel_awaitable 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 218s result = await obj 218s ^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/4bc94e50-1271-4782-b07c-548edc18b729 (::1) 218s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/4bc94e50-1271-4782-b07c-548edc18b729', version='HTTP/1.1', remote_ip='::1') 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 218s result = await result 218s ^^^^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 218s future.result() 218s ~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 218s yield maybe_future(km.shutdown_kernel(kernel_id)) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 218s raise self._exception.with_traceback(self._exception_tb) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 218s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 218s raise km.ready.exception() # type: ignore[misc] 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 218s await kernel_awaitable 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 218s result = await obj 218s ^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s WARNING NotebookApp:handlers.py:612 Unhandled error 218s ERROR NotebookApp:log.py:55 { 218s "Host": "localhost:12341", 218s "Accept": "*/*", 218s "User-Agent": "python-requests/2.32.5" 218s } 218s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/4bc94e50-1271-4782-b07c-548edc18b729 (::1) 12.390000ms referer=None 218s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 218s 218s self = 218s 218s def test_kernel_handler(self): 218s # GET kernel with given id 218s kid = self.kern_api.start().json()['id'] 218s r = self.kern_api.get(kid) 218s kern1 = r.json() 218s self.assertEqual(r.status_code, 200) 218s assert isinstance(kern1, dict) 218s self.assertIn('id', kern1) 218s self.assertEqual(kern1['id'], kid) 218s 218s # Request a bad kernel id and check that a JSON 218s # message is returned! 218s bad_id = '111-111-111-111-111' 218s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 218s self.kern_api.get(bad_id) 218s 218s # DELETE kernel with id 218s > r = self.kern_api.shutdown(kid) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 218s return self._req('DELETE', id) 218s ^^^^^^^^^^^^^^^^^^^^^^^ 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 218s response.raise_for_status() 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s 218s self = 218s 218s def raise_for_status(self): 218s """Raises :class:`HTTPError`, if one occurred.""" 218s 218s http_error_msg = "" 218s if isinstance(self.reason, bytes): 218s # We attempt to decode utf-8 first because some servers 218s # choose to localize their reason strings. If the string 218s # isn't utf-8, we fall back to iso-8859-1 for all other 218s # encodings. (See PR #3538) 218s try: 218s reason = self.reason.decode("utf-8") 218s except UnicodeDecodeError: 218s reason = self.reason.decode("iso-8859-1") 218s else: 218s reason = self.reason 218s 218s if 400 <= self.status_code < 500: 218s http_error_msg = ( 218s f"{self.status_code} Client Error: {reason} for url: {self.url}" 218s ) 218s 218s elif 500 <= self.status_code < 600: 218s http_error_msg = ( 218s f"{self.status_code} Server Error: {reason} for url: {self.url}" 218s ) 218s 218s if http_error_msg: 218s > raise HTTPError(http_error_msg, response=self) 218s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/4301d9af-a91f-4719-9509-199eed661211 218s 218s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 218s ----------------------------- Captured stderr call ----------------------------- 218s Traceback (most recent call last): 218s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 218s return _run_code(code, main_globals, None, 218s "__main__", mod_spec) 218s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 218s exec(code, run_globals) 218s ~~~~^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 218s from pathlib import Path 218s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 218s from ._abc import * 218s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 218s from glob import _Globber, _no_recurse_symlinks 218s File "/usr/lib/python3.13/glob.py", line 5, in 218s import re 218s File "/usr/lib/python3.13/re/__init__.py", line 126, in 218s from . import _compiler, _parser 218s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 218s from . import _parser 218s File "/usr/lib/python3.13/re/_parser.py", line 74, in 218s class State: 218s ...<33 lines>... 218s 'lookbehind subpattern') 218s File "/usr/lib/python3.13/re/_parser.py", line 82, in State 218s @property 218s ^^^^^^^^ 218s KeyboardInterrupt 218s ------------------------------ Captured log call ------------------------------- 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpyht34k7d/runtime/kernel-4301d9af-a91f-4719-9509-199eed661211.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51159 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44283 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4301d9af-a91f-4719-9509-199eed661211, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.360000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/4301d9af-a91f-4719-9509-199eed661211 (::1) 1.840000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s 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 218s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 218s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.550000ms referer=None 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4301d9af-a91f-4719-9509-199eed661211 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4301d9af-a91f-4719-9509-199eed661211 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 218s await kernel_awaitable 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 218s result = await obj 218s ^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/4301d9af-a91f-4719-9509-199eed661211 (::1) 218s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/4301d9af-a91f-4719-9509-199eed661211', version='HTTP/1.1', remote_ip='::1') 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 218s result = await result 218s ^^^^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 218s future.result() 218s ~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 218s yield maybe_future(km.shutdown_kernel(kernel_id)) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 218s raise self._exception.with_traceback(self._exception_tb) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 218s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 218s raise km.ready.exception() # type: ignore[misc] 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 218s await kernel_awaitable 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 218s result = await obj 218s ^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s WARNING NotebookApp:handlers.py:612 Unhandled error 218s ERROR NotebookApp:log.py:55 { 218s "Host": "localhost:12341", 218s "Accept": "*/*", 218s "User-Agent": "python-requests/2.32.5" 218s } 218s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/4301d9af-a91f-4719-9509-199eed661211 (::1) 7.550000ms referer=None 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.740000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4bc94e50-1271-4782-b07c-548edc18b729 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4bc94e50-1271-4782-b07c-548edc18b729 218s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/4bc94e50-1271-4782-b07c-548edc18b729 (::1) 1.800000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4301d9af-a91f-4719-9509-199eed661211 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4301d9af-a91f-4719-9509-199eed661211 218s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 218s 218s self = 218s 218s def test_main_kernel_handler(self): 218s # POST request 218s r = self.kern_api.start() 218s kern1 = r.json() 218s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 218s self.assertEqual(r.status_code, 201) 218s self.assertIsInstance(kern1, dict) 218s 218s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 218s expected_csp = '; '.join([ 218s "frame-ancestors 'self'", 218s 'report-uri ' + report_uri, 218s "default-src 'none'" 218s ]) 218s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 218s 218s # GET request 218s r = self.kern_api.list() 218s self.assertEqual(r.status_code, 200) 218s assert isinstance(r.json(), list) 218s self.assertEqual(r.json()[0]['id'], kern1['id']) 218s self.assertEqual(r.json()[0]['name'], kern1['name']) 218s 218s # create another kernel and check that they both are added to the 218s # list of kernels from a GET request 218s kern2 = self.kern_api.start().json() 218s assert isinstance(kern2, dict) 218s r = self.kern_api.list() 218s kernels = r.json() 218s self.assertEqual(r.status_code, 200) 218s assert isinstance(kernels, list) 218s self.assertEqual(len(kernels), 2) 218s 218s # Interrupt a kernel 218s r = self.kern_api.interrupt(kern2['id']) 218s self.assertEqual(r.status_code, 204) 218s 218s # Restart a kernel 218s > r = self.kern_api.restart(kern2['id']) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 218s return self._req('POST', url_path_join(id, 'restart')) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 218s response.raise_for_status() 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s 218s self = 218s 218s def raise_for_status(self): 218s """Raises :class:`HTTPError`, if one occurred.""" 218s 218s http_error_msg = "" 218s if isinstance(self.reason, bytes): 218s # We attempt to decode utf-8 first because some servers 218s # choose to localize their reason strings. If the string 218s # isn't utf-8, we fall back to iso-8859-1 for all other 218s # encodings. (See PR #3538) 218s try: 218s reason = self.reason.decode("utf-8") 218s except UnicodeDecodeError: 218s reason = self.reason.decode("iso-8859-1") 218s else: 218s reason = self.reason 218s 218s if 400 <= self.status_code < 500: 218s http_error_msg = ( 218s f"{self.status_code} Client Error: {reason} for url: {self.url}" 218s ) 218s 218s elif 500 <= self.status_code < 600: 218s http_error_msg = ( 218s f"{self.status_code} Server Error: {reason} for url: {self.url}" 218s ) 218s 218s if http_error_msg: 218s > raise HTTPError(http_error_msg, response=self) 218s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/dcfc55f1-6abb-4054-bb14-ecb386f27307/restart 218s 218s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 218s ----------------------------- Captured stderr call ----------------------------- 218s Traceback (most recent call last): 218s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 218s return _run_code(code, main_globals, None, 218s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 218s exec(code, run_globals) 218s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 218s from pathlib import Path 218s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 218s from ._abc import * 218s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 218s import functools 218s File "/usr/lib/python3.13/functools.py", line 18, in 218s from collections import namedtuple 218s File "/usr/lib/python3.13/collections/__init__.py", line 41, in 218s from reprlib import recursive_repr as _recursive_repr 218s File "", line 1360, in _find_and_load 218s File "", line 1331, in _find_and_load_unlocked 218s File "", line 935, in _load_unlocked 218s File "", line 1019, in exec_module 218s File "", line 1152, in get_code 218s File "", line 781, in _compile_bytecode 218s KeyboardInterrupt 218s Traceback (most recent call last): 218s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 218s return _run_code(code, main_globals, None, 218s "__main__", mod_spec) 218s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 218s exec(code, run_globals) 218s ~~~~^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 218s from ipykernel import kernelapp as app 218s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 218s from .connect import * # noqa: F403 218s ^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 218s import jupyter_client 218s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 218s from .asynchronous import AsyncKernelClient 218s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 218s from .client import AsyncKernelClient # noqa 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 218s import zmq.asyncio 218s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 218s import asyncio 218s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 218s from .base_events import * 218s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 218s import ssl 218s File "/usr/lib/python3.13/ssl.py", line 100, in 218s import _ssl # if we can't import it, let the error propagate 218s ^^^^^^^^^^^ 218s KeyboardInterrupt 218s ------------------------------ Captured log call ------------------------------- 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpyht34k7d/runtime/kernel-4b7c73ad-8016-46ce-ac06-b9f825996169.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60349 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60525 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4b7c73ad-8016-46ce-ac06-b9f825996169, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.320000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.730000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpyht34k7d/runtime/kernel-dcfc55f1-6abb-4054-bb14-ecb386f27307.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45183 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52155 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: dcfc55f1-6abb-4054-bb14-ecb386f27307, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.770000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.810000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: dcfc55f1-6abb-4054-bb14-ecb386f27307 218s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/dcfc55f1-6abb-4054-bb14-ecb386f27307/interrupt (::1) 0.570000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 218s yield maybe_future(km.restart_kernel(kernel_id)) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 218s raise self._exception.with_traceback(self._exception_tb) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 218s result = coro.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 218s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 218s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 218s yield self # This tells Task to wait for completion. 218s ^^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 218s future.result() 218s ~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 218s raise self._exception.with_traceback(self._exception_tb) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 218s await ensure_async(kernel.restart_kernel(now=now)) 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 218s result = await obj 218s ^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 218s await self._async_shutdown_kernel(now=now, restart=True) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:log.py:55 { 218s "Host": "localhost:12341", 218s "Accept": "*/*", 218s "User-Agent": "python-requests/2.32.5" 218s } 218s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/dcfc55f1-6abb-4054-bb14-ecb386f27307/restart (::1) 8.090000ms referer=None 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.790000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4b7c73ad-8016-46ce-ac06-b9f825996169 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4b7c73ad-8016-46ce-ac06-b9f825996169 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 218s await kernel_awaitable 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 218s result = await obj 218s ^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/4b7c73ad-8016-46ce-ac06-b9f825996169 (::1) 218s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/4b7c73ad-8016-46ce-ac06-b9f825996169', version='HTTP/1.1', remote_ip='::1') 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 218s result = await result 218s ^^^^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 218s future.result() 218s ~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 218s yield maybe_future(km.shutdown_kernel(kernel_id)) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 218s raise self._exception.with_traceback(self._exception_tb) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 218s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 218s raise km.ready.exception() # type: ignore[misc] 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 218s await kernel_awaitable 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 218s result = await obj 218s ^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s WARNING NotebookApp:handlers.py:612 Unhandled error 218s ERROR NotebookApp:log.py:55 { 218s "Host": "localhost:12341", 218s "Accept": "*/*", 218s "User-Agent": "python-requests/2.32.5" 218s } 218s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/4b7c73ad-8016-46ce-ac06-b9f825996169 (::1) 6.830000ms referer=None 218s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 218s 218s self = 218s 218s def test_no_kernels(self): 218s """Make sure there are no kernels running at the start""" 218s kernels = self.kern_api.list().json() 218s > self.assertEqual(kernels, []) 218s E AssertionError: Lists differ: [{'id': '4b7c73ad-8016-46ce-ac06-b9f825996[281 chars]: 0}] != [] 218s E 218s E First list contains 2 additional elements. 218s E First extra element 0: 218s E {'id': '4b7c73ad-8016-46ce-ac06-b9f825996169', 'name': 'python3', 'last_activity': '2026-01-30T06:18:15.897666Z', 'execution_state': 'starting', 'connections': 0} 218s E 218s E + [] 218s E - [{'connections': 0, 218s E - 'execution_state': 'starting', 218s E - 'id': '4b7c73ad-8016-46ce-ac06-b9f825996169', 218s E - 'last_activity': '2026-01-30T06:18:15.897666Z', 218s E - 'name': 'python3'}, 218s E - {'connections': 0, 218s E - 'execution_state': 'starting', 218s E - 'id': 'dcfc55f1-6abb-4054-bb14-ecb386f27307', 218s E - 'last_activity': '2026-01-30T06:18:15.917072Z', 218s E - 'name': 'python3'}] 218s 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 218s ------------------------------ Captured log call ------------------------------- 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.520000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.710000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4b7c73ad-8016-46ce-ac06-b9f825996169 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4b7c73ad-8016-46ce-ac06-b9f825996169 218s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/4b7c73ad-8016-46ce-ac06-b9f825996169 (::1) 0.600000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dcfc55f1-6abb-4054-bb14-ecb386f27307 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dcfc55f1-6abb-4054-bb14-ecb386f27307 218s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/dcfc55f1-6abb-4054-bb14-ecb386f27307 (::1) 0.600000ms 218s ---------------------------- Captured log teardown ----------------------------- 218s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4b7c73ad-8016-46ce-ac06-b9f825996169 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8b17ea69-be0d-4d46-850d-f239bfdc1607 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4301d9af-a91f-4719-9509-199eed661211 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4bc94e50-1271-4782-b07c-548edc18b729 218s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 218s __________________________ SessionAPITest.test_create __________________________ 218s 218s @self.addCleanup 218s def cleanup_sessions(): 218s for session in self.sess_api.list().json(): 218s > self.sess_api.delete(session['id']) 218s 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 218s return self._req('DELETE', id) 218s ^^^^^^^^^^^^^^^^^^^^^^^ 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 218s response.raise_for_status() 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s 218s self = 218s 218s def raise_for_status(self): 218s """Raises :class:`HTTPError`, if one occurred.""" 218s 218s http_error_msg = "" 218s if isinstance(self.reason, bytes): 218s # We attempt to decode utf-8 first because some servers 218s # choose to localize their reason strings. If the string 218s # isn't utf-8, we fall back to iso-8859-1 for all other 218s # encodings. (See PR #3538) 218s try: 218s reason = self.reason.decode("utf-8") 218s except UnicodeDecodeError: 218s reason = self.reason.decode("iso-8859-1") 218s else: 218s reason = self.reason 218s 218s if 400 <= self.status_code < 500: 218s http_error_msg = ( 218s f"{self.status_code} Client Error: {reason} for url: {self.url}" 218s ) 218s 218s elif 500 <= self.status_code < 600: 218s http_error_msg = ( 218s f"{self.status_code} Server Error: {reason} for url: {self.url}" 218s ) 218s 218s if http_error_msg: 218s > raise HTTPError(http_error_msg, response=self) 218s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e9b74bf4-f6ad-4851-a131-6f2384d6bceb 218s 218s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 218s ------------------------------ Captured log setup ------------------------------ 218s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp4w3dwwej/config', '/tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp4w3dwwej/etc/jupyter'] for config files 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp4w3dwwej/etc/jupyter 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp4w3dwwej/config 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp4w3dwwej/etc/jupyter 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp4w3dwwej/config 218s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp4w3dwwej/notebooks 218s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 218s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 218s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 218s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 218s WARNING NotebookApp:handlers.py:612 Forbidden 218s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.430000ms referer=None 218s ----------------------------- Captured stderr call ----------------------------- 218s Traceback (most recent call last): 218s ------------------------------ Captured log call ------------------------------- 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.810000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4w3dwwej/runtime/kernel-dedf8697-2b5b-4346-a2c9-222f652a1722.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43913 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48877 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: dedf8697-2b5b-4346-a2c9-222f652a1722, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp4w3dwwej/notebooks/foo'} 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.810000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.590000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/e9b74bf4-f6ad-4851-a131-6f2384d6bceb (::1) 0.590000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dedf8697-2b5b-4346-a2c9-222f652a1722 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dedf8697-2b5b-4346-a2c9-222f652a1722 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e9b74bf4-f6ad-4851-a131-6f2384d6bceb (::1) 218s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e9b74bf4-f6ad-4851-a131-6f2384d6bceb', version='HTTP/1.1', remote_ip='::1') 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 218s result = await result 218s ^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 218s yield maybe_future(sm.delete_session(session_id)) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 218s yielded = self.gen.send(value) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 218s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 218s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 218s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 218s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 218s return _runner_map[name].run(inner) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 218s return fut.result(None) 218s ~~~~~~~~~~^^^^^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 218s return self.__get_result() 218s ~~~~~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 218s raise self._exception 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 218s stopper = ensure_async(km.shutdown_kernel(now, restart)) 218s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 218s return _runner_map[name].run(inner) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 218s return fut.result(None) 218s ~~~~~~~~~~^^^^^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 218s return self.__get_result() 218s ~~~~~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 218s raise self._exception 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s WARNING NotebookApp:handlers.py:612 Unhandled error 218s ERROR NotebookApp:log.py:55 { 218s "Host": "localhost:12341", 218s "Accept": "*/*", 218s "User-Agent": "python-requests/2.32.5" 218s } 218s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/e9b74bf4-f6ad-4851-a131-6f2384d6bceb (::1) 9.860000ms referer=None 218s --------------------------- Captured stderr teardown --------------------------- 218s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 218s return _run_code(code, main_globals, None, 218s "__main__", mod_spec) 218s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 218s exec(code, run_globals) 218s ~~~~^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 218s from ipykernel import kernelapp as app 218s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 218s from .connect import * # noqa: F403 218s ^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 218s from typing import TYPE_CHECKING, Any 218s File "/usr/lib/python3.13/typing.py", line 3335, in 218s _TypedDict = type.__new__(_TypedDictMeta, 'TypedDict', (), {}) 218s KeyboardInterrupt 218s __________________ SessionAPITest.test_create_console_session __________________ 218s 218s @self.addCleanup 218s def cleanup_sessions(): 218s for session in self.sess_api.list().json(): 218s > self.sess_api.delete(session['id']) 218s 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 218s return self._req('DELETE', id) 218s ^^^^^^^^^^^^^^^^^^^^^^^ 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 218s response.raise_for_status() 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s 218s self = 218s 218s def raise_for_status(self): 218s """Raises :class:`HTTPError`, if one occurred.""" 218s 218s http_error_msg = "" 218s if isinstance(self.reason, bytes): 218s # We attempt to decode utf-8 first because some servers 218s # choose to localize their reason strings. If the string 218s # isn't utf-8, we fall back to iso-8859-1 for all other 218s # encodings. (See PR #3538) 218s try: 218s reason = self.reason.decode("utf-8") 218s except UnicodeDecodeError: 218s reason = self.reason.decode("iso-8859-1") 218s else: 218s reason = self.reason 218s 218s if 400 <= self.status_code < 500: 218s http_error_msg = ( 218s f"{self.status_code} Client Error: {reason} for url: {self.url}" 218s ) 218s 218s elif 500 <= self.status_code < 600: 218s http_error_msg = ( 218s f"{self.status_code} Server Error: {reason} for url: {self.url}" 218s ) 218s 218s if http_error_msg: 218s > raise HTTPError(http_error_msg, response=self) 218s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/341b736c-bf4e-4813-b183-0f1876d5af12 218s 218s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 218s ----------------------------- Captured stderr call ----------------------------- 218s Traceback (most recent call last): 218s ------------------------------ Captured log call ------------------------------- 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4w3dwwej/runtime/kernel-f2b0fe47-198f-42ef-8c1c-638febcc57e5.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38661 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38539 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: f2b0fe47-198f-42ef-8c1c-638febcc57e5, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp4w3dwwej/notebooks/foo'} 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.570000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.870000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dedf8697-2b5b-4346-a2c9-222f652a1722 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dedf8697-2b5b-4346-a2c9-222f652a1722 218s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e9b74bf4-f6ad-4851-a131-6f2384d6bceb (::1) 2.030000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f2b0fe47-198f-42ef-8c1c-638febcc57e5 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f2b0fe47-198f-42ef-8c1c-638febcc57e5 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/341b736c-bf4e-4813-b183-0f1876d5af12 (::1) 218s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/341b736c-bf4e-4813-b183-0f1876d5af12', version='HTTP/1.1', remote_ip='::1') 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 218s result = await result 218s ^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 218s yield maybe_future(sm.delete_session(session_id)) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 218s yielded = self.gen.send(value) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 218s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 218s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 218s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 218s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 218s return _runner_map[name].run(inner) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 218s return fut.result(None) 218s ~~~~~~~~~~^^^^^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 218s return self.__get_result() 218s ~~~~~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 218s raise self._exception 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 218s stopper = ensure_async(km.shutdown_kernel(now, restart)) 218s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 218s return _runner_map[name].run(inner) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 218s return fut.result(None) 218s ~~~~~~~~~~^^^^^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 218s return self.__get_result() 218s ~~~~~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 218s raise self._exception 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s WARNING NotebookApp:handlers.py:612 Unhandled error 218s --------------------------- Captured stderr teardown --------------------------- 218s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 218s return _run_code(code, main_globals, None, 218s "__main__", mod_spec) 218s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 218s exec(code, run_globals) 218s ~~~~^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 218s from pathlib import Path 218s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 218s from ._abc import * 218s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 218s from glob import _Globber, _no_recurse_symlinks 218s File "/usr/lib/python3.13/glob.py", line 5, in 218s import re 218s File "/usr/lib/python3.13/re/__init__.py", line 315, in 218s Pattern = type(_compiler.compile('', 0)) 218s ~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 218s code = _code(p, flags) 218s File "/usr/lib/python3.13/re/_compiler.py", line 576, in _code 218s def _code(p, flags): 218s 218s KeyboardInterrupt 218s ____________________ SessionAPITest.test_create_deprecated _____________________ 218s 218s @self.addCleanup 218s def cleanup_sessions(): 218s for session in self.sess_api.list().json(): 218s > self.sess_api.delete(session['id']) 218s 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 218s return self._req('DELETE', id) 218s ^^^^^^^^^^^^^^^^^^^^^^^ 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 218s response.raise_for_status() 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s 218s self = 218s 218s def raise_for_status(self): 218s """Raises :class:`HTTPError`, if one occurred.""" 218s 218s http_error_msg = "" 218s if isinstance(self.reason, bytes): 218s # We attempt to decode utf-8 first because some servers 218s # choose to localize their reason strings. If the string 218s # isn't utf-8, we fall back to iso-8859-1 for all other 218s # encodings. (See PR #3538) 218s try: 218s reason = self.reason.decode("utf-8") 218s except UnicodeDecodeError: 218s reason = self.reason.decode("iso-8859-1") 218s else: 218s reason = self.reason 218s 218s if 400 <= self.status_code < 500: 218s http_error_msg = ( 218s f"{self.status_code} Client Error: {reason} for url: {self.url}" 218s ) 218s 218s elif 500 <= self.status_code < 600: 218s http_error_msg = ( 218s f"{self.status_code} Server Error: {reason} for url: {self.url}" 218s ) 218s 218s if http_error_msg: 218s > raise HTTPError(http_error_msg, response=self) 218s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/4195cb88-f74e-424f-9f4d-ef26553c3b2e 218s 218s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 218s ----------------------------- Captured stderr call ----------------------------- 218s Traceback (most recent call last): 218s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 218s return _run_code(code, main_globals, None, 218s "__main__", mod_spec) 218s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 218s exec(code, run_globals) 218s ~~~~^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 218s from pathlib import Path 218s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 218s from ._local import * 218s File "", line 1360, in _find_and_load 218s File "", line 1331, in _find_and_load_unlocked 218s File "", line 935, in _load_unlocked 218s File "", line 1019, in exec_module 218s File "", line 1115, in get_code 218s File "", line 1215, in get_data 218s KeyboardInterrupt 218s ------------------------------ Captured log call ------------------------------- 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4w3dwwej/runtime/kernel-58b50aee-feeb-4dd7-b3a7-f4233112ce17.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58333 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39911 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: 58b50aee-feeb-4dd7-b3a7-f4233112ce17, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp4w3dwwej/notebooks/foo'} 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.590000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.700000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f2b0fe47-198f-42ef-8c1c-638febcc57e5 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f2b0fe47-198f-42ef-8c1c-638febcc57e5 218s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/341b736c-bf4e-4813-b183-0f1876d5af12 (::1) 0.930000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 58b50aee-feeb-4dd7-b3a7-f4233112ce17 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 58b50aee-feeb-4dd7-b3a7-f4233112ce17 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/4195cb88-f74e-424f-9f4d-ef26553c3b2e (::1) 218s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/4195cb88-f74e-424f-9f4d-ef26553c3b2e', version='HTTP/1.1', remote_ip='::1') 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 218s result = await result 218s ^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 218s yield maybe_future(sm.delete_session(session_id)) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 218s yielded = self.gen.send(value) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 218s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 218s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 218s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 218s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 218s return _runner_map[name].run(inner) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 218s return fut.result(None) 218s ~~~~~~~~~~^^^^^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 218s return self.__get_result() 218s ~~~~~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 218s raise self._exception 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 218s stopper = ensure_async(km.shutdown_kernel(now, restart)) 218s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 218s return _runner_map[name].run(inner) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 218s return fut.result(None) 218s ~~~~~~~~~~^^^^^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 218s return self.__get_result() 218s ~~~~~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 218s raise self._exception 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s WARNING NotebookApp:handlers.py:612 Unhandled error 218s ___________________ SessionAPITest.test_create_file_session ____________________ 218s 218s @self.addCleanup 218s def cleanup_sessions(): 218s for session in self.sess_api.list().json(): 218s > self.sess_api.delete(session['id']) 218s 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 218s return self._req('DELETE', id) 218s ^^^^^^^^^^^^^^^^^^^^^^^ 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 218s response.raise_for_status() 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s 218s self = 218s 218s def raise_for_status(self): 218s """Raises :class:`HTTPError`, if one occurred.""" 218s 218s http_error_msg = "" 218s if isinstance(self.reason, bytes): 218s # We attempt to decode utf-8 first because some servers 218s # choose to localize their reason strings. If the string 218s # isn't utf-8, we fall back to iso-8859-1 for all other 218s # encodings. (See PR #3538) 218s try: 218s reason = self.reason.decode("utf-8") 218s except UnicodeDecodeError: 218s reason = self.reason.decode("iso-8859-1") 218s else: 218s reason = self.reason 218s 218s if 400 <= self.status_code < 500: 218s http_error_msg = ( 218s f"{self.status_code} Client Error: {reason} for url: {self.url}" 218s ) 218s 218s elif 500 <= self.status_code < 600: 218s http_error_msg = ( 218s f"{self.status_code} Server Error: {reason} for url: {self.url}" 218s ) 218s 218s if http_error_msg: 218s > raise HTTPError(http_error_msg, response=self) 218s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/900655e1-45f6-408f-a706-fce55277d40a 218s 218s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 218s ----------------------------- Captured stderr call ----------------------------- 218s Traceback (most recent call last): 218s ------------------------------ Captured log call ------------------------------- 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4w3dwwej/runtime/kernel-fd93204c-ce7b-47b6-938f-fc7f82f43df3.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56529 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38253 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: fd93204c-ce7b-47b6-938f-fc7f82f43df3, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp4w3dwwej/notebooks/foo'} 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.980000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.680000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 58b50aee-feeb-4dd7-b3a7-f4233112ce17 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 58b50aee-feeb-4dd7-b3a7-f4233112ce17 218s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/4195cb88-f74e-424f-9f4d-ef26553c3b2e (::1) 0.810000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fd93204c-ce7b-47b6-938f-fc7f82f43df3 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fd93204c-ce7b-47b6-938f-fc7f82f43df3 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/900655e1-45f6-408f-a706-fce55277d40a (::1) 218s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/900655e1-45f6-408f-a706-fce55277d40a', version='HTTP/1.1', remote_ip='::1') 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 218s result = await result 218s ^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 218s yield maybe_future(sm.delete_session(session_id)) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 218s yielded = self.gen.send(value) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 218s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 218s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 218s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 218s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 218s return _runner_map[name].run(inner) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 218s return fut.result(None) 218s ~~~~~~~~~~^^^^^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 218s return self.__get_result() 218s ~~~~~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 218s raise self._exception 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 218s stopper = ensure_async(km.shutdown_kernel(now, restart)) 218s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 218s return _runner_map[name].run(inner) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 218s return fut.result(None) 218s ~~~~~~~~~~^^^^^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 218s return self.__get_result() 218s ~~~~~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 218s raise self._exception 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s WARNING NotebookApp:handlers.py:612 Unhandled error 218s ERROR NotebookApp:log.py:55 { 218s "Host": "localhost:12341", 218s "Accept": "*/*", 218s "User-Agent": "python-requests/2.32.5" 218s } 218s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/900655e1-45f6-408f-a706-fce55277d40a (::1) 7.500000ms referer=None 218s --------------------------- Captured stderr teardown --------------------------- 218s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 218s return _run_code(code, main_globals, None, 218s "__main__", mod_spec) 218s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 218s exec(code, run_globals) 218s ~~~~^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 218s from pathlib import Path 218s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 218s from ._abc import * 218s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 218s from glob import _Globber, _no_recurse_symlinks 218s File "/usr/lib/python3.13/glob.py", line 5, in 218s import re 218s File "/usr/lib/python3.13/re/__init__.py", line 126, in 218s from . import _compiler, _parser 218s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 218s from . import _parser 218s File "/usr/lib/python3.13/re/_parser.py", line 15, in 218s from ._constants import * 218s File "/usr/lib/python3.13/re/_constants.py", line 141, in 218s CHCODES = _makecodes( 218s 'CATEGORY_DIGIT', 'CATEGORY_NOT_DIGIT', 218s ...<9 lines>... 218s 'CATEGORY_UNI_LINEBREAK', 'CATEGORY_UNI_NOT_LINEBREAK', 218s ) 218s File "/usr/lib/python3.13/re/_constants.py", line 74, in _makecodes 218s globals().update({item.name: item for item in items}) 218s ^^^^^^^^^^^^^^^ 218s KeyboardInterrupt 218s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 218s 218s self = 218s 218s def test_create_with_kernel_id(self): 218s # create a new kernel 218s r = self.request('POST', 'api/kernels') 218s r.raise_for_status() 218s kernel = r.json() 218s 218s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 218s self.assertEqual(resp.status_code, 201) 218s newsession = resp.json() 218s self.assertIn('id', newsession) 218s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 218s self.assertEqual(newsession['kernel']['id'], kernel['id']) 218s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 218s 218s sessions = self.sess_api.list().json() 218s > self.assertEqual(sessions, [newsession]) 218s E AssertionError: Lists differ: [{'id': '900655e1-45f6-408f-a706-fce55277d40a', 'p[553 chars]ne}}] != [{'id': 'c0c66206-c46f-4c4d-8ce5-0cf53fdaaf44', 'p[279 chars]ne}}] 218s E 218s E First differing element 0: 218s E {'id': '900655e1-45f6-408f-a706-fce55277d40a', 'p[218 chars]: 0}} 218s E {'id': 'c0c66206-c46f-4c4d-8ce5-0cf53fdaaf44', 'p[278 chars]one}} 218s E 218s E First list contains 1 additional elements. 218s E First extra element 1: 218s E {'id': 'c0c66206-c46f-4c4d-8ce5-0cf53fdaaf44', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '3a37a5fc-82c0-4d51-8c7b-f652ec942595', 'name': 'python3', 'last_activity': '2026-01-30T06:18:16.399846Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 218s E 218s E Diff is 830 characters long. Set self.maxDiff to None to see it. 218s 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 218s ----------------------------- Captured stderr call ----------------------------- 218s Traceback (most recent call last): 218s ------------------------------ Captured log call ------------------------------- 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4w3dwwej/runtime/kernel-3a37a5fc-82c0-4d51-8c7b-f652ec942595.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53667 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44351 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3a37a5fc-82c0-4d51-8c7b-f652ec942595, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.780000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.740000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.660000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.660000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fd93204c-ce7b-47b6-938f-fc7f82f43df3 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fd93204c-ce7b-47b6-938f-fc7f82f43df3 218s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/900655e1-45f6-408f-a706-fce55277d40a (::1) 4.760000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3a37a5fc-82c0-4d51-8c7b-f652ec942595 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3a37a5fc-82c0-4d51-8c7b-f652ec942595 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c0c66206-c46f-4c4d-8ce5-0cf53fdaaf44 (::1) 218s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c0c66206-c46f-4c4d-8ce5-0cf53fdaaf44', version='HTTP/1.1', remote_ip='::1') 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 218s result = await result 218s ^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 218s yield maybe_future(sm.delete_session(session_id)) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 218s yielded = self.gen.send(value) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 218s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 218s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 218s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 218s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 218s return _runner_map[name].run(inner) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 218s return fut.result(None) 218s ~~~~~~~~~~^^^^^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 218s return self.__get_result() 218s ~~~~~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 218s raise self._exception 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 218s stopper = ensure_async(km.shutdown_kernel(now, restart)) 218s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 218s return _runner_map[name].run(inner) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 218s return fut.result(None) 218s ~~~~~~~~~~^^^^^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 218s return self.__get_result() 218s ~~~~~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 218s raise self._exception 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s WARNING NotebookApp:handlers.py:612 Unhandled error 218s ERROR NotebookApp:log.py:55 { 218s "Host": "localhost:12341", 218s "Accept": "*/*", 218s "User-Agent": "python-requests/2.32.5" 218s } 218s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c0c66206-c46f-4c4d-8ce5-0cf53fdaaf44 (::1) 15.960000ms referer=None 218s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 218s 218s @self.addCleanup 218s def cleanup_sessions(): 218s for session in self.sess_api.list().json(): 218s > self.sess_api.delete(session['id']) 218s 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 218s return self._req('DELETE', id) 218s ^^^^^^^^^^^^^^^^^^^^^^^ 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 218s response.raise_for_status() 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s 218s self = 218s 218s def raise_for_status(self): 218s """Raises :class:`HTTPError`, if one occurred.""" 218s 218s http_error_msg = "" 218s if isinstance(self.reason, bytes): 218s # We attempt to decode utf-8 first because some servers 218s # choose to localize their reason strings. If the string 218s # isn't utf-8, we fall back to iso-8859-1 for all other 218s # encodings. (See PR #3538) 218s try: 218s reason = self.reason.decode("utf-8") 218s except UnicodeDecodeError: 218s reason = self.reason.decode("iso-8859-1") 218s else: 218s reason = self.reason 218s 218s if 400 <= self.status_code < 500: 218s http_error_msg = ( 218s f"{self.status_code} Client Error: {reason} for url: {self.url}" 218s ) 218s 218s elif 500 <= self.status_code < 600: 218s http_error_msg = ( 218s f"{self.status_code} Server Error: {reason} for url: {self.url}" 218s ) 218s 218s if http_error_msg: 218s > raise HTTPError(http_error_msg, response=self) 218s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c0c66206-c46f-4c4d-8ce5-0cf53fdaaf44 218s 218s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 218s ---------------------------- Captured stderr setup ----------------------------- 218s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 218s return _run_code(code, main_globals, None, 218s "__main__", mod_spec) 218s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 218s exec(code, run_globals) 218s ~~~~^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 218s from ipykernel import kernelapp as app 218s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 218s from .connect import * # noqa: F403 218s ^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 218s from subprocess import PIPE, Popen 218s File "/usr/lib/python3.13/subprocess.py", line 759, in 218s class Popen: 218s ...<1498 lines>... 218s self.send_signal(signal.SIGKILL) 218s File "/usr/lib/python3.13/subprocess.py", line 1327, in Popen 218s @contextlib.contextmanager 218s ^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3.13/contextlib.py", line 276, in contextmanager 218s def contextmanager(func): 218s 218s KeyboardInterrupt 218s ----------------------------- Captured stderr call ----------------------------- 218s Traceback (most recent call last): 218s ------------------------------ Captured log call ------------------------------- 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.820000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4w3dwwej/runtime/kernel-b4574071-37f7-4779-a677-ee4482c20dfb.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57775 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36511 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: b4574071-37f7-4779-a677-ee4482c20dfb, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.650000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3a37a5fc-82c0-4d51-8c7b-f652ec942595 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3a37a5fc-82c0-4d51-8c7b-f652ec942595 218s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/c0c66206-c46f-4c4d-8ce5-0cf53fdaaf44 (::1) 2.700000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.010000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.660000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b4574071-37f7-4779-a677-ee4482c20dfb 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b4574071-37f7-4779-a677-ee4482c20dfb 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c0c66206-c46f-4c4d-8ce5-0cf53fdaaf44 (::1) 218s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c0c66206-c46f-4c4d-8ce5-0cf53fdaaf44', version='HTTP/1.1', remote_ip='::1') 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 218s result = await result 218s ^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 218s yield maybe_future(sm.delete_session(session_id)) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 218s yielded = self.gen.send(value) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 218s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 218s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 218s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 218s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 218s return _runner_map[name].run(inner) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 218s return fut.result(None) 218s ~~~~~~~~~~^^^^^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 218s return self.__get_result() 218s ~~~~~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 218s raise self._exception 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 218s stopper = ensure_async(km.shutdown_kernel(now, restart)) 218s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 218s return _runner_map[name].run(inner) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 218s return fut.result(None) 218s ~~~~~~~~~~^^^^^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 218s return self.__get_result() 218s ~~~~~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 218s raise self._exception 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s WARNING NotebookApp:handlers.py:612 Unhandled error 218s --------------------------- Captured stderr teardown --------------------------- 218s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 218s return _run_code(code, main_globals, None, 218s "__main__", mod_spec) 218s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 218s exec(code, run_globals) 218s ~~~~^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 218s from ipykernel import kernelapp as app 218s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 218s from ._version import ( 218s ...<4 lines>... 218s ) 218s File "/usr/lib/python3/dist-packages/ipykernel/_version.py", line 11, in 218s match = re.match(pattern, __version__) 218s File "/usr/lib/python3.13/re/__init__.py", line 167, in match 218s return _compile(pattern, flags).match(string) 218s ~~~~~~~~^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 218s p = _compiler.compile(pattern, flags) 218s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 218s p = _parser.parse(p, flags) 218s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 218s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 218s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 218s itemsappend(_parse(source, state, verbose, nested + 1, 218s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s not nested and not items)) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3.13/re/_parser.py", line 863, in _parse 218s p = _parse_sub(source, state, sub_verbose, nested + 1) 218s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 218s itemsappend(_parse(source, state, verbose, nested + 1, 218s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s not nested and not items)) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3.13/re/_parser.py", line 886, in _parse 218s op, av = subpattern[i] 218s ~~~~~~~~~~^^^ 218s File "/usr/lib/python3.13/re/_parser.py", line 167, in __getitem__ 218s def __getitem__(self, index): 218s 218s KeyboardInterrupt 218s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 218s 218s @self.addCleanup 218s def cleanup_sessions(): 218s for session in self.sess_api.list().json(): 218s > self.sess_api.delete(session['id']) 218s 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 218s return self._req('DELETE', id) 218s ^^^^^^^^^^^^^^^^^^^^^^^ 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 218s response.raise_for_status() 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s 218s self = 218s 218s def raise_for_status(self): 218s """Raises :class:`HTTPError`, if one occurred.""" 218s 218s http_error_msg = "" 218s if isinstance(self.reason, bytes): 218s # We attempt to decode utf-8 first because some servers 218s # choose to localize their reason strings. If the string 218s # isn't utf-8, we fall back to iso-8859-1 for all other 218s # encodings. (See PR #3538) 218s try: 218s reason = self.reason.decode("utf-8") 218s except UnicodeDecodeError: 218s reason = self.reason.decode("iso-8859-1") 218s else: 218s reason = self.reason 218s 218s if 400 <= self.status_code < 500: 218s http_error_msg = ( 218s f"{self.status_code} Client Error: {reason} for url: {self.url}" 218s ) 218s 218s elif 500 <= self.status_code < 600: 218s http_error_msg = ( 218s f"{self.status_code} Server Error: {reason} for url: {self.url}" 218s ) 218s 218s if http_error_msg: 218s > raise HTTPError(http_error_msg, response=self) 218s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c0c66206-c46f-4c4d-8ce5-0cf53fdaaf44 218s 218s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 218s ----------------------------- Captured stderr call ----------------------------- 218s Traceback (most recent call last): 218s ------------------------------ Captured log call ------------------------------- 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.870000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4w3dwwej/runtime/kernel-fb0859d3-37bb-4bdb-a565-3bd8f97858e3.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37413 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40217 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: fb0859d3-37bb-4bdb-a565-3bd8f97858e3, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp4w3dwwej/notebooks/foo'} 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b4574071-37f7-4779-a677-ee4482c20dfb 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b4574071-37f7-4779-a677-ee4482c20dfb 218s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/c0c66206-c46f-4c4d-8ce5-0cf53fdaaf44 (::1) 15.440000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.560000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.010000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fb0859d3-37bb-4bdb-a565-3bd8f97858e3 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fb0859d3-37bb-4bdb-a565-3bd8f97858e3 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c0c66206-c46f-4c4d-8ce5-0cf53fdaaf44 (::1) 218s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c0c66206-c46f-4c4d-8ce5-0cf53fdaaf44', version='HTTP/1.1', remote_ip='::1') 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 218s result = await result 218s ^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 218s yield maybe_future(sm.delete_session(session_id)) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 218s yielded = self.gen.send(value) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 218s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 218s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 218s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 218s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 218s return _runner_map[name].run(inner) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 218s return fut.result(None) 218s ~~~~~~~~~~^^^^^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 218s return self.__get_result() 218s ~~~~~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 218s raise self._exception 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 218s stopper = ensure_async(km.shutdown_kernel(now, restart)) 218s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 218s return _runner_map[name].run(inner) 218s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 218s return fut.result(None) 218s ~~~~~~~~~~^^^^^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 218s return self.__get_result() 218s ~~~~~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 218s raise self._exception 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s WARNING NotebookApp:handlers.py:612 Unhandled error 218s ERROR NotebookApp:log.py:55 { 218s "Host": "localhost:12341", 218s "Accept": "*/*", 218s "User-Agent": "python-requests/2.32.5" 218s } 218s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c0c66206-c46f-4c4d-8ce5-0cf53fdaaf44 (::1) 8.350000ms referer=None 218s --------------------------- Captured stderr teardown --------------------------- 218s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 218s return _run_code(code, main_globals, None, 218s "__main__", mod_spec) 218s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 218s exec(code, run_globals) 218s ~~~~^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 218s from pathlib import Path 218s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 218s from ._abc import * 218s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 218s from glob import _Globber, _no_recurse_symlinks 218s File "/usr/lib/python3.13/glob.py", line 236, in 218s magic_check = re.compile('([*?[])') 218s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 218s return _compile(pattern, flags) 218s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 218s p = _compiler.compile(pattern, flags) 218s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 218s code = _code(p, flags) 218s File "/usr/lib/python3.13/re/_compiler.py", line 585, in _code 218s _compile(code, p.data, flags) 218s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3.13/re/_compiler.py", line 126, in _compile 218s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 218s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3.13/re/_compiler.py", line 86, in _compile 218s charset, hascased = _optimize_charset(av, iscased, tolower, fixes) 218s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3.13/re/_compiler.py", line 342, in _optimize_charset 218s data = _mk_bitmap(charmap) 218s File "/usr/lib/python3.13/re/_compiler.py", line 389, in _mk_bitmap 218s def _mk_bitmap(bits, _CODEBITS=_CODEBITS, _int=int): 218s 218s KeyboardInterrupt 218s ---------------------------- Captured log teardown ----------------------------- 218s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fb0859d3-37bb-4bdb-a565-3bd8f97858e3 218s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 218s _______________________ AsyncSessionAPITest.test_create ________________________ 218s 218s @self.addCleanup 218s def cleanup_sessions(): 218s for session in self.sess_api.list().json(): 218s > self.sess_api.delete(session['id']) 218s 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 218s return self._req('DELETE', id) 218s ^^^^^^^^^^^^^^^^^^^^^^^ 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 218s response.raise_for_status() 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s 218s self = 218s 218s def raise_for_status(self): 218s """Raises :class:`HTTPError`, if one occurred.""" 218s 218s http_error_msg = "" 218s if isinstance(self.reason, bytes): 218s # We attempt to decode utf-8 first because some servers 218s # choose to localize their reason strings. If the string 218s # isn't utf-8, we fall back to iso-8859-1 for all other 218s # encodings. (See PR #3538) 218s try: 218s reason = self.reason.decode("utf-8") 218s except UnicodeDecodeError: 218s reason = self.reason.decode("iso-8859-1") 218s else: 218s reason = self.reason 218s 218s if 400 <= self.status_code < 500: 218s http_error_msg = ( 218s f"{self.status_code} Client Error: {reason} for url: {self.url}" 218s ) 218s 218s elif 500 <= self.status_code < 600: 218s http_error_msg = ( 218s f"{self.status_code} Server Error: {reason} for url: {self.url}" 218s ) 218s 218s if http_error_msg: 218s > raise HTTPError(http_error_msg, response=self) 218s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/6a2e45d7-79cb-4b73-b742-a9641366b5f7 218s 218s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 218s ------------------------------ Captured log setup ------------------------------ 218s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp9det5wu7/config', '/tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp9det5wu7/etc/jupyter'] for config files 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp9det5wu7/etc/jupyter 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp9det5wu7/config 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp9det5wu7/etc/jupyter 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XnQU0x/autopkgtest_tmp/home/.local/etc/jupyter 218s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp9det5wu7/config 218s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp9det5wu7/notebooks 218s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 218s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 218s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 218s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 218s WARNING NotebookApp:handlers.py:612 Forbidden 218s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.470000ms referer=None 218s ------------------------------ Captured log call ------------------------------- 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.790000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9det5wu7/runtime/kernel-13c42a6e-f02e-40dd-a7ab-8467c816b2e6.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40911 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58523 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: 13c42a6e-f02e-40dd-a7ab-8467c816b2e6, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp9det5wu7/notebooks/foo'} 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.820000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.590000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/6a2e45d7-79cb-4b73-b742-a9641366b5f7 (::1) 0.580000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 13c42a6e-f02e-40dd-a7ab-8467c816b2e6 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 13c42a6e-f02e-40dd-a7ab-8467c816b2e6 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 218s await kernel_awaitable 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 218s result = await obj 218s ^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/6a2e45d7-79cb-4b73-b742-a9641366b5f7 (::1) 218s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/6a2e45d7-79cb-4b73-b742-a9641366b5f7', version='HTTP/1.1', remote_ip='::1') 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 218s result = await result 218s ^^^^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 218s future.result() 218s ~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 218s yield maybe_future(sm.delete_session(session_id)) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 218s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 218s raise self._exception.with_traceback(self._exception_tb) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 218s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 218s raise km.ready.exception() # type: ignore[misc] 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 218s await kernel_awaitable 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 218s result = await obj 218s ^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s WARNING NotebookApp:handlers.py:612 Unhandled error 218s ERROR NotebookApp:log.py:55 { 218s "Host": "localhost:12341", 218s "Accept": "*/*", 218s "User-Agent": "python-requests/2.32.5" 218s } 218s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/6a2e45d7-79cb-4b73-b742-a9641366b5f7 (::1) 7.350000ms referer=None/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 218s gc.collect() 218s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 218s 218s --------------------------- Captured stderr teardown --------------------------- 218s Traceback (most recent call last): 218s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 218s return _run_code(code, main_globals, None, 218s "__main__", mod_spec) 218s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 218s exec(code, run_globals) 218s ~~~~^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 218s from pathlib import Path 218s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 218s from ._local import * 218s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 218s class PureWindowsPath(PurePath): 218s ...<7 lines>... 218s __slots__ = () 218s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 218s import ntpath 218s File "/usr/lib/python3.13/ntpath.py", line 472, in 218s from nt import _path_normpath as normpath 218s File "", line 1360, in _find_and_load 218s File "", line 1322, in _find_and_load_unlocked 218s File "", line 1256, in _find_spec 218s File "", line 1222, in __enter__ 218s KeyboardInterrupt 218s _______________ AsyncSessionAPITest.test_create_console_session ________________ 218s 218s @self.addCleanup 218s def cleanup_sessions(): 218s for session in self.sess_api.list().json(): 218s > self.sess_api.delete(session['id']) 218s 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 218s return self._req('DELETE', id) 218s ^^^^^^^^^^^^^^^^^^^^^^^ 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 218s response.raise_for_status() 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s 218s self = 218s 218s def raise_for_status(self): 218s """Raises :class:`HTTPError`, if one occurred.""" 218s 218s http_error_msg = "" 218s if isinstance(self.reason, bytes): 218s # We attempt to decode utf-8 first because some servers 218s # choose to localize their reason strings. If the string 218s # isn't utf-8, we fall back to iso-8859-1 for all other 218s # encodings. (See PR #3538) 218s try: 218s reason = self.reason.decode("utf-8") 218s except UnicodeDecodeError: 218s reason = self.reason.decode("iso-8859-1") 218s else: 218s reason = self.reason 218s 218s if 400 <= self.status_code < 500: 218s http_error_msg = ( 218s f"{self.status_code} Client Error: {reason} for url: {self.url}" 218s ) 218s 218s elif 500 <= self.status_code < 600: 218s http_error_msg = ( 218s f"{self.status_code} Server Error: {reason} for url: {self.url}" 218s ) 218s 218s if http_error_msg: 218s > raise HTTPError(http_error_msg, response=self) 218s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/41e3250b-7f08-4d93-9bc1-1a1623f0ff0b 218s 218s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 218s ----------------------------- Captured stderr call ----------------------------- 218s Traceback (most recent call last): 218s ------------------------------ Captured log call ------------------------------- 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9det5wu7/runtime/kernel-f44cc014-2428-48b6-965e-78b4a1ae097a.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41525 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50863 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: f44cc014-2428-48b6-965e-78b4a1ae097a, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp9det5wu7/notebooks/foo'} 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.590000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.980000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 13c42a6e-f02e-40dd-a7ab-8467c816b2e6 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 13c42a6e-f02e-40dd-a7ab-8467c816b2e6 218s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/6a2e45d7-79cb-4b73-b742-a9641366b5f7 (::1) 0.790000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f44cc014-2428-48b6-965e-78b4a1ae097a 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f44cc014-2428-48b6-965e-78b4a1ae097a 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 218s await kernel_awaitable 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 218s result = await obj 218s ^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/41e3250b-7f08-4d93-9bc1-1a1623f0ff0b (::1) 218s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/41e3250b-7f08-4d93-9bc1-1a1623f0ff0b', version='HTTP/1.1', remote_ip='::1') 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 218s result = await result 218s ^^^^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 218s future.result() 218s ~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 218s yield maybe_future(sm.delete_session(session_id)) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 218s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 218s raise self._exception.with_traceback(self._exception_tb) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 218s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 218s raise km.ready.exception() # type: ignore[misc] 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 218s await kernel_awaitable 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 218s result = await obj 218s ^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s WARNING NotebookApp:handlers.py:612 Unhandled error 218s --------------------------- Captured stderr teardown --------------------------- 218s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 218s return _run_code(code, main_globals, None, 218s "__main__", mod_spec) 218s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 218s exec(code, run_globals) 218s ~~~~^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 218s from pathlib import Path 218s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 218s from ._abc import * 218s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 218s from glob import _Globber, _no_recurse_symlinks 218s File "/usr/lib/python3.13/glob.py", line 5, in 218s import re 218s File "/usr/lib/python3.13/re/__init__.py", line 126, in 218s from . import _compiler, _parser 218s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 218s from . import _parser 218s File "/usr/lib/python3.13/re/_parser.py", line 15, in 218s from ._constants import * 218s File "/usr/lib/python3.13/re/_constants.py", line 130, in 218s ATCODES = _makecodes( 218s 'AT_BEGINNING', 'AT_BEGINNING_LINE', 'AT_BEGINNING_STRING', 218s ...<5 lines>... 218s 'AT_UNI_BOUNDARY', 'AT_UNI_NON_BOUNDARY', 218s ) 218s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 218s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 218s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 218s KeyboardInterrupt 218s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 218s 218s @self.addCleanup 218s def cleanup_sessions(): 218s for session in self.sess_api.list().json(): 218s > self.sess_api.delete(session['id']) 218s 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 218s return self._req('DELETE', id) 218s ^^^^^^^^^^^^^^^^^^^^^^^ 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 218s response.raise_for_status() 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s 218s self = 218s 218s def raise_for_status(self): 218s """Raises :class:`HTTPError`, if one occurred.""" 218s 218s http_error_msg = "" 218s if isinstance(self.reason, bytes): 218s # We attempt to decode utf-8 first because some servers 218s # choose to localize their reason strings. If the string 218s # isn't utf-8, we fall back to iso-8859-1 for all other 218s # encodings. (See PR #3538) 218s try: 218s reason = self.reason.decode("utf-8") 218s except UnicodeDecodeError: 218s reason = self.reason.decode("iso-8859-1") 218s else: 218s reason = self.reason 218s 218s if 400 <= self.status_code < 500: 218s http_error_msg = ( 218s f"{self.status_code} Client Error: {reason} for url: {self.url}" 218s ) 218s 218s elif 500 <= self.status_code < 600: 218s http_error_msg = ( 218s f"{self.status_code} Server Error: {reason} for url: {self.url}" 218s ) 218s 218s if http_error_msg: 218s > raise HTTPError(http_error_msg, response=self) 218s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/9a1fffb6-8b05-486a-a12f-134d5d7d8a92 218s 218s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 218s ----------------------------- Captured stderr call ----------------------------- 218s Traceback (most recent call last): 218s ------------------------------ Captured log call ------------------------------- 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9det5wu7/runtime/kernel-eb87f3a0-6ca5-45db-a9b7-a72896a32f63.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46117 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35001 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: eb87f3a0-6ca5-45db-a9b7-a72896a32f63, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp9det5wu7/notebooks/foo'} 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.010000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.920000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f44cc014-2428-48b6-965e-78b4a1ae097a 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f44cc014-2428-48b6-965e-78b4a1ae097a 218s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/41e3250b-7f08-4d93-9bc1-1a1623f0ff0b (::1) 0.760000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eb87f3a0-6ca5-45db-a9b7-a72896a32f63 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eb87f3a0-6ca5-45db-a9b7-a72896a32f63 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 218s await kernel_awaitable 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 218s result = await obj 218s ^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9a1fffb6-8b05-486a-a12f-134d5d7d8a92 (::1) 218s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9a1fffb6-8b05-486a-a12f-134d5d7d8a92', version='HTTP/1.1', remote_ip='::1') 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 218s result = await result 218s ^^^^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 218s future.result() 218s ~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 218s yield maybe_future(sm.delete_session(session_id)) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 218s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 218s raise self._exception.with_traceback(self._exception_tb) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 218s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 218s raise km.ready.exception() # type: ignore[misc] 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 218s await kernel_awaitable 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 218s result = await obj 218s ^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s WARNING NotebookApp:handlers.py:612 Unhandled error 218s --------------------------- Captured stderr teardown --------------------------- 218s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 218s return _run_code(code, main_globals, None, 218s "__main__", mod_spec) 218s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 218s exec(code, run_globals) 218s ~~~~^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 218s from pathlib import Path 218s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 218s from ._abc import * 218s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 218s from glob import _Globber, _no_recurse_symlinks 218s File "/usr/lib/python3.13/glob.py", line 5, in 218s import re 218s File "/usr/lib/python3.13/re/__init__.py", line 143, in 218s @enum._simple_enum(enum.IntFlag, boundary=enum.KEEP) 218s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3.13/enum.py", line 1852, in convert_class 218s setattr(enum_class, name, member) 218s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3.13/enum.py", line 840, in __setattr__ 218s super().__setattr__(name, value) 218s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ 218s KeyboardInterrupt 218s _________________ AsyncSessionAPITest.test_create_file_session _________________ 218s 218s @self.addCleanup 218s def cleanup_sessions(): 218s for session in self.sess_api.list().json(): 218s > self.sess_api.delete(session['id']) 218s 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 218s return self._req('DELETE', id) 218s ^^^^^^^^^^^^^^^^^^^^^^^ 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 218s response.raise_for_status() 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s 218s self = 218s 218s def raise_for_status(self): 218s """Raises :class:`HTTPError`, if one occurred.""" 218s 218s http_error_msg = "" 218s if isinstance(self.reason, bytes): 218s # We attempt to decode utf-8 first because some servers 218s # choose to localize their reason strings. If the string 218s # isn't utf-8, we fall back to iso-8859-1 for all other 218s # encodings. (See PR #3538) 218s try: 218s reason = self.reason.decode("utf-8") 218s except UnicodeDecodeError: 218s reason = self.reason.decode("iso-8859-1") 218s else: 218s reason = self.reason 218s 218s if 400 <= self.status_code < 500: 218s http_error_msg = ( 218s f"{self.status_code} Client Error: {reason} for url: {self.url}" 218s ) 218s 218s elif 500 <= self.status_code < 600: 218s http_error_msg = ( 218s f"{self.status_code} Server Error: {reason} for url: {self.url}" 218s ) 218s 218s if http_error_msg: 218s > raise HTTPError(http_error_msg, response=self) 218s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c3dcb27d-e6d3-4c85-acb9-b810af0ca61e 218s 218s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 218s ----------------------------- Captured stderr call ----------------------------- 218s Traceback (most recent call last): 218s ------------------------------ Captured log call ------------------------------- 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9det5wu7/runtime/kernel-37a3f721-f67e-484a-9644-c34c63584c06.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45443 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41599 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: 37a3f721-f67e-484a-9644-c34c63584c06, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp9det5wu7/notebooks/foo'} 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.720000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.920000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eb87f3a0-6ca5-45db-a9b7-a72896a32f63 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eb87f3a0-6ca5-45db-a9b7-a72896a32f63 218s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/9a1fffb6-8b05-486a-a12f-134d5d7d8a92 (::1) 1.990000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 37a3f721-f67e-484a-9644-c34c63584c06 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 37a3f721-f67e-484a-9644-c34c63584c06 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 218s await kernel_awaitable 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 218s result = await obj 218s ^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c3dcb27d-e6d3-4c85-acb9-b810af0ca61e (::1) 218s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c3dcb27d-e6d3-4c85-acb9-b810af0ca61e', version='HTTP/1.1', remote_ip='::1') 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 218s result = await result 218s ^^^^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 218s future.result() 218s ~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 218s yield maybe_future(sm.delete_session(session_id)) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 218s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 218s raise self._exception.with_traceback(self._exception_tb) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 218s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 218s raise km.ready.exception() # type: ignore[misc] 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 218s await kernel_awaitable 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 218s result = await obj 218s ^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s WARNING NotebookApp:handlers.py:612 Unhandled error 218s --------------------------- Captured stderr teardown --------------------------- 218s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 218s return _run_code(code, main_globals, None, 218s "__main__", mod_spec) 218s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 218s exec(code, run_globals) 218s ~~~~^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 218s from pathlib import Path 218s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 218s from ._abc import * 218s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 218s from glob import _Globber, _no_recurse_symlinks 218s File "/usr/lib/python3.13/glob.py", line 5, in 218s import re 218s File "/usr/lib/python3.13/re/__init__.py", line 126, in 218s from . import _compiler, _parser 218s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 218s from . import _parser 218s File "/usr/lib/python3.13/re/_parser.py", line 15, in 218s from ._constants import * 218s File "/usr/lib/python3.13/re/_constants.py", line 130, in 218s ATCODES = _makecodes( 218s 'AT_BEGINNING', 'AT_BEGINNING_LINE', 'AT_BEGINNING_STRING', 218s ...<5 lines>... 218s 'AT_UNI_BOUNDARY', 'AT_UNI_NON_BOUNDARY', 218s ) 218s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 218s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 218s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 218s KeyboardInterrupt 218s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 218s 218s self = 218s 218s def test_create_with_kernel_id(self): 218s # create a new kernel 218s r = self.request('POST', 'api/kernels') 218s r.raise_for_status() 218s kernel = r.json() 218s 218s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 218s self.assertEqual(resp.status_code, 201) 218s newsession = resp.json() 218s self.assertIn('id', newsession) 218s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 218s self.assertEqual(newsession['kernel']['id'], kernel['id']) 218s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 218s 218s sessions = self.sess_api.list().json() 218s > self.assertEqual(sessions, [newsession]) 218s E AssertionError: Lists differ: [{'id': 'c3dcb27d-e6d3-4c85-acb9-b810af0ca61e', 'p[553 chars]ne}}] != [{'id': '1a70a0e8-efb9-4628-b00c-cb621a182ba6', 'p[279 chars]ne}}] 218s E 218s E First differing element 0: 218s E {'id': 'c3dcb27d-e6d3-4c85-acb9-b810af0ca61e', 'p[218 chars]: 0}} 218s E {'id': '1a70a0e8-efb9-4628-b00c-cb621a182ba6', 'p[278 chars]one}} 218s E 218s E First list contains 1 additional elements. 218s E First extra element 1: 218s E {'id': '1a70a0e8-efb9-4628-b00c-cb621a182ba6', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '334ccb90-3440-4481-9f9e-ebba829e2b4a', 'name': 'python3', 'last_activity': '2026-01-30T06:18:16.912630Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 218s E 218s E Diff is 830 characters long. Set self.maxDiff to None to see it. 218s 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 218s ----------------------------- Captured stderr call ----------------------------- 218s Traceback (most recent call last): 218s ------------------------------ Captured log call ------------------------------- 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9det5wu7/runtime/kernel-334ccb90-3440-4481-9f9e-ebba829e2b4a.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48315 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50695 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: 334ccb90-3440-4481-9f9e-ebba829e2b4a, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.550000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.880000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.830000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 37a3f721-f67e-484a-9644-c34c63584c06 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 37a3f721-f67e-484a-9644-c34c63584c06 218s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c3dcb27d-e6d3-4c85-acb9-b810af0ca61e (::1) 1.860000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 334ccb90-3440-4481-9f9e-ebba829e2b4a 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 334ccb90-3440-4481-9f9e-ebba829e2b4a 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 218s await kernel_awaitable 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 218s result = await obj 218s ^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1a70a0e8-efb9-4628-b00c-cb621a182ba6 (::1) 218s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1a70a0e8-efb9-4628-b00c-cb621a182ba6', version='HTTP/1.1', remote_ip='::1') 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 218s result = await result 218s ^^^^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 218s future.result() 218s ~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 218s yield maybe_future(sm.delete_session(session_id)) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 218s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 218s raise self._exception.with_traceback(self._exception_tb) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 218s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 218s raise km.ready.exception() # type: ignore[misc] 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 218s await kernel_awaitable 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 218s result = await obj 218s ^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s WARNING NotebookApp:handlers.py:612 Unhandled error 218s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 218s 218s @self.addCleanup 218s def cleanup_sessions(): 218s for session in self.sess_api.list().json(): 218s > self.sess_api.delete(session['id']) 218s 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 218s return self._req('DELETE', id) 218s ^^^^^^^^^^^^^^^^^^^^^^^ 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 218s response.raise_for_status() 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s 218s self = 218s 218s def raise_for_status(self): 218s """Raises :class:`HTTPError`, if one occurred.""" 218s 218s http_error_msg = "" 218s if isinstance(self.reason, bytes): 218s # We attempt to decode utf-8 first because some servers 218s # choose to localize their reason strings. If the string 218s # isn't utf-8, we fall back to iso-8859-1 for all other 218s # encodings. (See PR #3538) 218s try: 218s reason = self.reason.decode("utf-8") 218s except UnicodeDecodeError: 218s reason = self.reason.decode("iso-8859-1") 218s else: 218s reason = self.reason 218s 218s if 400 <= self.status_code < 500: 218s http_error_msg = ( 218s f"{self.status_code} Client Error: {reason} for url: {self.url}" 218s ) 218s 218s elif 500 <= self.status_code < 600: 218s http_error_msg = ( 218s f"{self.status_code} Server Error: {reason} for url: {self.url}" 218s ) 218s 218s if http_error_msg: 218s > raise HTTPError(http_error_msg, response=self) 218s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1a70a0e8-efb9-4628-b00c-cb621a182ba6 218s 218s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 218s ----------------------------- Captured stderr call ----------------------------- 218s Traceback (most recent call last): 218s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 218s return _run_code(code, main_globals, None, 218s "__main__", mod_spec) 218s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 218s exec(code, run_globals) 218s ~~~~^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 218s from pathlib import Path 218s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 218s from ._local import * 218s File "/usr/lib/python3.13/pathlib/_local.py", line 12, in 218s import pwd 218s KeyboardInterrupt 218s ------------------------------ Captured log call ------------------------------- 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.830000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9det5wu7/runtime/kernel-9e0077fe-55ca-4da0-8279-8c9c73b8329a.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43229 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34729 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9e0077fe-55ca-4da0-8279-8c9c73b8329a, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.550000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 334ccb90-3440-4481-9f9e-ebba829e2b4a 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 334ccb90-3440-4481-9f9e-ebba829e2b4a 218s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/1a70a0e8-efb9-4628-b00c-cb621a182ba6 (::1) 2.320000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.770000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.820000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9e0077fe-55ca-4da0-8279-8c9c73b8329a 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9e0077fe-55ca-4da0-8279-8c9c73b8329a 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 218s await kernel_awaitable 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 218s result = await obj 218s ^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1a70a0e8-efb9-4628-b00c-cb621a182ba6 (::1) 218s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1a70a0e8-efb9-4628-b00c-cb621a182ba6', version='HTTP/1.1', remote_ip='::1') 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 218s result = await result 218s ^^^^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 218s future.result() 218s ~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 218s yield maybe_future(sm.delete_session(session_id)) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 218s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 218s raise self._exception.with_traceback(self._exception_tb) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 218s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 218s raise km.ready.exception() # type: ignore[misc] 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 218s await kernel_awaitable 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 218s result = await obj 218s ^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s WARNING NotebookApp:handlers.py:612 Unhandled error 218s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 218s 218s @self.addCleanup 218s def cleanup_sessions(): 218s for session in self.sess_api.list().json(): 218s > self.sess_api.delete(session['id']) 218s 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 218s return self._req('DELETE', id) 218s ^^^^^^^^^^^^^^^^^^^^^^^ 218s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 218s response.raise_for_status() 218s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 218s 218s self = 218s 218s def raise_for_status(self): 218s """Raises :class:`HTTPError`, if one occurred.""" 218s 218s http_error_msg = "" 218s if isinstance(self.reason, bytes): 218s # We attempt to decode utf-8 first because some servers 218s # choose to localize their reason strings. If the string 218s # isn't utf-8, we fall back to iso-8859-1 for all other 218s # encodings. (See PR #3538) 218s try: 218s reason = self.reason.decode("utf-8") 218s except UnicodeDecodeError: 218s reason = self.reason.decode("iso-8859-1") 218s else: 218s reason = self.reason 218s 218s if 400 <= self.status_code < 500: 218s http_error_msg = ( 218s f"{self.status_code} Client Error: {reason} for url: {self.url}" 218s ) 218s 218s elif 500 <= self.status_code < 600: 218s http_error_msg = ( 218s f"{self.status_code} Server Error: {reason} for url: {self.url}" 218s ) 218s 218s if http_error_msg: 218s > raise HTTPError(http_error_msg, response=self) 218s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1a70a0e8-efb9-4628-b00c-cb621a182ba6 218s 218s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 218s ----------------------------- Captured stderr call ----------------------------- 218s Traceback (most recent call last): 218s ------------------------------ Captured log call ------------------------------- 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.790000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 218s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9det5wu7/runtime/kernel-1a18a658-f8b7-4ed4-abd8-abca4604fa82.json'] 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36145 218s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52441 218s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1a18a658-f8b7-4ed4-abd8-abca4604fa82, name: python3 218s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp9det5wu7/notebooks/foo'} 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9e0077fe-55ca-4da0-8279-8c9c73b8329a 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9e0077fe-55ca-4da0-8279-8c9c73b8329a 218s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/1a70a0e8-efb9-4628-b00c-cb621a182ba6 (::1) 16.040000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.060000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.860000ms 218s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 218s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1a18a658-f8b7-4ed4-abd8-abca4604fa82 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1a18a658-f8b7-4ed4-abd8-abca4604fa82 218s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 218s await kernel_awaitable 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 218s result = await obj 218s ^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1a70a0e8-efb9-4628-b00c-cb621a182ba6 (::1) 218s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1a70a0e8-efb9-4628-b00c-cb621a182ba6', version='HTTP/1.1', remote_ip='::1') 218s Traceback (most recent call last): 218s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 218s result = await result 218s ^^^^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 218s future.result() 218s ~~~~~~~~~~~~~^^ 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 218s yield maybe_future(sm.delete_session(session_id)) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 218s yielded = self.gen.throw(exc) 218s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 218s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 218s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 218s value = future.result() 218s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 218s raise self._exception.with_traceback(self._exception_tb) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 218s result = coro.send(None) 218s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 218s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 218s raise km.ready.exception() # type: ignore[misc] 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 218s await kernel_awaitable 218s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 218s result = await obj 218s ^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 218s raise e 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 218s out = await method(self, *args, **kwargs) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 218s await self._async_finish_shutdown(restart=restart) 218s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 218s await asyncio.wait_for( 218s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 218s ) 218s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 218s async with timeouts.timeout(timeout): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^ 218s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 218s raise RuntimeError("Timeout should be used inside a task") 218s RuntimeError: Timeout should be used inside a task 218s WARNING NotebookApp:handlers.py:612 Unhandled error 218s ERROR NotebookApp:log.py:55 { 218s "Host": "localhost:12341", 218s "Accept": "*/*", 218s "User-Agent": "python-requests/2.32.5" 218s } 218s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1a70a0e8-efb9-4628-b00c-cb621a182ba6 (::1) 8.540000ms referer=None 218s --------------------------- Captured stderr teardown --------------------------- 218s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 218s return _run_code(code, main_globals, None, 218s "__main__", mod_spec) 218s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 218s exec(code, run_globals) 218s ~~~~^^^^^^^^^^^^^^^^^^^ 218s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 218s from pathlib import Path 218s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 218s from ._abc import * 218s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 218s from glob import _Globber, _no_recurse_symlinks 218s File "/usr/lib/python3.13/glob.py", line 5, in 218s import re 218s File "/usr/lib/python3.13/re/__init__.py", line 315, in 218s Pattern = type(_compiler.compile('', 0)) 218s ~~~~~~~~~~~~~~~~~^^^^^^^ 218s File "/usr/lib/python3.13/re/_compiler.py", line 764, in compile 218s return _sre.compile( 218s ~~~~~~~~~~~~^ 218s pattern, flags | p.state.flags, code, 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s p.state.groups-1, 218s ^^^^^^^^^^^^^^^^^ 218s groupindex, tuple(indexgroup) 218s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s ) 218s ^ 218s KeyboardInterrupt 218s ---------------------------- Captured log teardown ----------------------------- 218s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 13c42a6e-f02e-40dd-a7ab-8467c816b2e6 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1a18a658-f8b7-4ed4-abd8-abca4604fa82 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f44cc014-2428-48b6-965e-78b4a1ae097a 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 37a3f721-f67e-484a-9644-c34c63584c06 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9e0077fe-55ca-4da0-8279-8c9c73b8329a 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 334ccb90-3440-4481-9f9e-ebba829e2b4a 218s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eb87f3a0-6ca5-45db-a9b7-a72896a32f63 218s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 218s =============================== warnings summary =============================== 218s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 218s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 218s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 218s return LooseVersion(v) >= LooseVersion(check) 218s 218s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 218s services/kernels/tests/test_kernels_api.py: 65 warnings 218s services/sessions/tests/test_sessions_api.py: 88 warnings 218s /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). 218s dt = unaware(*args, **kwargs) 218s 218s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 218s /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 218s pytestmark = pytest.mark.integration_tests 218s 218s services/kernels/tests/test_kernels_api.py: 6 warnings 218s services/sessions/tests/test_sessions_api.py: 6 warnings 218s /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 218s policy = events.get_event_loop_policy() 218s 218s services/kernels/tests/test_kernels_api.py: 24 warnings 218s services/sessions/tests/test_sessions_api.py: 19 warnings 218s /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 218s loop = events.get_event_loop_policy().get_event_loop() 218s 218s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 218s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 218s loop.make_current() 218s 218s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 218s =========================== short test summary info ============================ 218s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 218s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 218s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 218s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 218s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 218s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 218s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 218s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 218s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 218s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 218s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 218s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 218s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 218s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 218s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 218s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 218s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 218s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 218s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 218s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 218s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 218s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 218s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 218s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 218s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 218s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 218s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 218s ========== 23 failed, 307 deselected, 213 warnings, 4 errors in 6.47s ========== 218s *** END OF RUN 5: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 218s *** SOME TESTS FAILED/ERRORED EVERY RUN, ABORTING *** 218s autopkgtest [06:18:17]: test pytest: -----------------------] 219s pytest FAIL non-zero exit status 1 219s autopkgtest [06:18:18]: test pytest: - - - - - - - - - - results - - - - - - - - - - 219s autopkgtest [06:18:18]: @@@@@@@@@@@@@@@@@@@@ summary 219s pytest FAIL non-zero exit status 1