0s autopkgtest [18:23:20]: starting date and time: 2026-01-22 18:23:20+0000 0s autopkgtest [18:23:20]: git checkout: 508d4a25 a-v-ssh wait_for_ssh: demote "ssh connection failed" to a debug message 0s autopkgtest [18:23:20]: host juju-7f2275-prod-proposed-migration-environment-9; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.365k72lj/out --timeout-copy=6000 --setup-commands 'ln -s /dev/null /etc/systemd/system/bluetooth.service; printf "http_proxy=http://squid.internal:3128\nhttps_proxy=http://squid.internal:3128\nno_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,internal,login.ubuntu.com,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com,radosgw.ps5.canonical.com\n" >> /etc/environment' --apt-pocket=proposed=src:python3-defaults --apt-upgrade jupyter-notebook --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=python3-defaults/3.14.2-1 -- lxd -r lxd-armhf-10.145.243.28 lxd-armhf-10.145.243.28:autopkgtest/ubuntu/resolute/armhf 23s autopkgtest [18:23:43]: testbed dpkg architecture: armhf 25s autopkgtest [18:23:45]: testbed apt version: 3.1.12 29s autopkgtest [18:23:49]: @@@@@@@@@@@@@@@@@@@@ test bed setup 31s autopkgtest [18:23:51]: testbed release detected to be: None 39s autopkgtest [18:23:59]: updating testbed package index (apt update) 41s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 41s Get:2 http://ftpmaster.internal/ubuntu resolute InRelease [124 kB] 41s Get:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease [124 kB] 42s Get:4 http://ftpmaster.internal/ubuntu resolute-security InRelease [124 kB] 42s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [2820 B] 42s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [815 kB] 42s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [80.9 kB] 42s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [19.2 kB] 42s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf Packages [97.4 kB] 42s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe armhf Packages [571 kB] 43s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse armhf Packages [3644 B] 43s Get:12 http://ftpmaster.internal/ubuntu resolute/multiverse Sources [310 kB] 43s Get:13 http://ftpmaster.internal/ubuntu resolute/universe Sources [21.4 MB] 50s Get:14 http://ftpmaster.internal/ubuntu resolute/main Sources [1402 kB] 50s Get:15 http://ftpmaster.internal/ubuntu resolute/main armhf Packages [1371 kB] 50s Get:16 http://ftpmaster.internal/ubuntu resolute/universe armhf Packages [14.9 MB] 51s Get:17 http://ftpmaster.internal/ubuntu resolute/multiverse armhf Packages [175 kB] 53s Fetched 41.6 MB in 13s (3325 kB/s) 55s Reading package lists... 61s autopkgtest [18:24:21]: upgrading testbed (apt dist-upgrade and autopurge) 63s Reading package lists... 64s Building dependency tree... 64s Reading state information... 64s Calculating upgrade... 65s The following packages were automatically installed and are no longer required: 65s libpython3.13-minimal libpython3.13-stdlib python3.13 python3.13-minimal 65s Use 'apt autoremove' to remove them. 65s The following NEW packages will be installed: 65s libpython3.14-minimal libpython3.14-stdlib python3.14 python3.14-minimal 65s The following packages will be upgraded: 65s libpython3-stdlib python3 python3-gdbm python3-minimal 65s 4 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. 65s Need to get 6219 kB of archives. 65s After this operation, 22.5 MB of additional disk space will be used. 65s Get:1 http://ftpmaster.internal/ubuntu resolute/main armhf libpython3.14-minimal armhf 3.14.2-1 [905 kB] 66s Get:2 http://ftpmaster.internal/ubuntu resolute/main armhf python3.14-minimal armhf 3.14.2-1 [2155 kB] 66s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf python3-gdbm armhf 3.14.2-1 [11.1 kB] 66s Get:4 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf python3-minimal armhf 3.14.2-1 [28.2 kB] 66s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf python3 armhf 3.14.2-1 [22.9 kB] 66s Get:6 http://ftpmaster.internal/ubuntu resolute/main armhf libpython3.14-stdlib armhf 3.14.2-1 [2270 kB] 66s Get:7 http://ftpmaster.internal/ubuntu resolute/main armhf python3.14 armhf 3.14.2-1 [816 kB] 66s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libpython3-stdlib armhf 3.14.2-1 [10.9 kB] 67s Fetched 6219 kB in 1s (5909 kB/s) 67s Selecting previously unselected package libpython3.14-minimal:armhf. 67s (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 ... 66485 files and directories currently installed.) 67s Preparing to unpack .../libpython3.14-minimal_3.14.2-1_armhf.deb ... 67s Unpacking libpython3.14-minimal:armhf (3.14.2-1) ... 67s Selecting previously unselected package python3.14-minimal. 67s Preparing to unpack .../python3.14-minimal_3.14.2-1_armhf.deb ... 67s Unpacking python3.14-minimal (3.14.2-1) ... 67s Preparing to unpack .../python3-gdbm_3.14.2-1_armhf.deb ... 67s Unpacking python3-gdbm (3.14.2-1) over (3.13.9-1) ... 67s Setting up libpython3.14-minimal:armhf (3.14.2-1) ... 67s Setting up python3.14-minimal (3.14.2-1) ... 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 ... 66827 files and directories currently installed.) 69s Preparing to unpack .../python3-minimal_3.14.2-1_armhf.deb ... 69s Unpacking python3-minimal (3.14.2-1) over (3.13.7-1) ... 69s Setting up python3-minimal (3.14.2-1) ... 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 ... 66827 files and directories currently installed.) 69s Preparing to unpack .../python3_3.14.2-1_armhf.deb ... 69s Unpacking python3 (3.14.2-1) over (3.13.7-1) ... 70s Selecting previously unselected package libpython3.14-stdlib:armhf. 70s Preparing to unpack .../libpython3.14-stdlib_3.14.2-1_armhf.deb ... 70s Unpacking libpython3.14-stdlib:armhf (3.14.2-1) ... 70s Selecting previously unselected package python3.14. 70s Preparing to unpack .../python3.14_3.14.2-1_armhf.deb ... 70s Unpacking python3.14 (3.14.2-1) ... 70s Preparing to unpack .../libpython3-stdlib_3.14.2-1_armhf.deb ... 70s Unpacking libpython3-stdlib:armhf (3.14.2-1) over (3.13.7-1) ... 70s Setting up libpython3.14-stdlib:armhf (3.14.2-1) ... 70s Setting up python3.14 (3.14.2-1) ... 71s Setting up libpython3-stdlib:armhf (3.14.2-1) ... 71s Setting up python3-gdbm (3.14.2-1) ... 71s Setting up python3 (3.14.2-1) ... 71s Processing triggers for man-db (2.13.1-1) ... 72s Processing triggers for systemd (259-1ubuntu2) ... 74s Reading package lists... 75s Building dependency tree... 75s Reading state information... 75s Solving dependencies... 75s The following packages will be REMOVED: 75s libpython3.13-minimal* libpython3.13-stdlib* python3.13* python3.13-minimal* 76s 0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded. 76s After this operation, 21.3 MB disk space will be freed. 76s (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 ... 67257 files and directories currently installed.) 76s Removing python3.13 (3.13.11-1) ... 76s Removing libpython3.13-stdlib:armhf (3.13.11-1) ... 76s Removing python3.13-minimal (3.13.11-1) ... 77s Removing libpython3.13-minimal:armhf (3.13.11-1) ... 78s Processing triggers for man-db (2.13.1-1) ... 78s Processing triggers for systemd (259-1ubuntu2) ... 78s (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 ... 66518 files and directories currently installed.) 78s Purging configuration files for libpython3.13-minimal:armhf (3.13.11-1) ... 78s Purging configuration files for python3.13-minimal (3.13.11-1) ... 80s autopkgtest [18:24:40]: rebooting testbed after setup commands that affected boot 124s autopkgtest [18:25:24]: testbed running kernel: Linux 6.8.0-87-generic #88~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Oct 14 14:00:09 UTC 2 149s autopkgtest [18:25:49]: @@@@@@@@@@@@@@@@@@@@ apt-source jupyter-notebook 168s Get:1 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (dsc) [3737 B] 168s Get:2 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (tar) [8501 kB] 168s Get:3 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (diff) [52.5 kB] 168s gpgv: Signature made Tue Apr 22 01:32:11 2025 UTC 168s gpgv: using RSA key 00F6164E9C2D21BAFBC47E0E58DAD120A6939167 168s gpgv: Can't check signature: No public key 168s dpkg-source: warning: cannot verify inline signature for ./jupyter-notebook_6.4.13-5ubuntu0.1.dsc: no acceptable signature found 169s autopkgtest [18:26:09]: testing package jupyter-notebook version 6.4.13-5ubuntu0.1 171s autopkgtest [18:26:11]: build not needed 173s autopkgtest [18:26:13]: test pytest: preparing testbed 175s Reading package lists... 175s Building dependency tree... 175s Reading state information... 176s Solving dependencies... 176s The following NEW packages will be installed: 176s fonts-font-awesome fonts-glyphicons-halflings fonts-lato fonts-mathjax gdb 176s jupyter-core jupyter-notebook libargon2-1 libbabeltrace1 libc6-dbg 176s libdebuginfod-common libdebuginfod1t64 libdw1t64 libjs-backbone 176s libjs-bootstrap libjs-bootstrap-tour libjs-codemirror libjs-es6-promise 176s libjs-jed libjs-jquery libjs-jquery-typeahead libjs-jquery-ui libjs-marked 176s libjs-mathjax libjs-moment libjs-requirejs libjs-requirejs-text 176s libjs-text-encoding libjs-underscore libjs-xterm libnorm1t64 libpgm-5.3-0t64 176s libpython3.13 libpython3.13-minimal libpython3.13-stdlib libsodium23 177s libsource-highlight-common libsource-highlight4t64 libzmq5 node-jed 177s python-notebook-doc python-tinycss2-common python3-all python3-argon2 177s python3-argon2-cffi-bindings python3-astroid python3-asttokens 177s python3-bleach python3-bs4 python3-cffi python3-comm python3-coverage 177s python3-debugpy python3-decorator python3-defusedxml python3-executing 177s python3-fastjsonschema python3-html5lib python3-iniconfig python3-ipykernel 177s python3-ipython python3-ipython-genutils python3-jedi python3-jupyter-client 177s python3-jupyter-core python3-jupyterlab-pygments python3-matplotlib-inline 177s python3-mistune python3-nbclient python3-nbconvert python3-nbformat 177s python3-nest-asyncio python3-notebook python3-pandocfilters python3-parso 177s python3-platformdirs python3-pluggy python3-ply python3-prometheus-client 177s python3-prompt-toolkit python3-psutil python3-pure-eval python3-pycparser 177s python3-pytest python3-requests-unixsocket python3-send2trash 177s python3-soupsieve python3-stack-data python3-terminado python3-tinycss2 177s python3-tornado python3-traitlets python3-typeshed python3-wcwidth 177s python3-webencodings python3-zmq python3.13 python3.13-minimal 177s sphinx-rtd-theme-common 177s 0 upgraded, 99 newly installed, 0 to remove and 0 not upgraded. 177s Need to get 44.1 MB of archives. 177s After this operation, 195 MB of additional disk space will be used. 177s Get:1 http://ftpmaster.internal/ubuntu resolute/main armhf libpython3.13-minimal armhf 3.13.11-1 [875 kB] 177s Get:2 http://ftpmaster.internal/ubuntu resolute/main armhf python3.13-minimal armhf 3.13.11-1 [2055 kB] 177s Get:3 http://ftpmaster.internal/ubuntu resolute/main armhf fonts-lato all 2.015-1build1 [2779 kB] 177s Get:4 http://ftpmaster.internal/ubuntu resolute/main armhf libdebuginfod-common all 0.194-1 [15.1 kB] 177s Get:5 http://ftpmaster.internal/ubuntu resolute/main armhf libpython3.13-stdlib armhf 3.13.11-1 [1960 kB] 178s Get:6 http://ftpmaster.internal/ubuntu resolute/main armhf python3.13 armhf 3.13.11-1 [758 kB] 178s Get:7 http://ftpmaster.internal/ubuntu resolute/main armhf fonts-font-awesome all 5.0.10+really4.7.0~dfsg-4.1build1 [531 kB] 178s Get:8 http://ftpmaster.internal/ubuntu resolute/universe armhf fonts-glyphicons-halflings all 1.009~3.4.1+dfsg-6 [119 kB] 178s Get:9 http://ftpmaster.internal/ubuntu resolute/main armhf fonts-mathjax all 2.7.9+dfsg-1build1 [2283 kB] 178s Get:10 http://ftpmaster.internal/ubuntu resolute/main armhf libdw1t64 armhf 0.194-1 [254 kB] 178s Get:11 http://ftpmaster.internal/ubuntu resolute/main armhf libbabeltrace1 armhf 1.5.11-5 [155 kB] 178s Get:12 http://ftpmaster.internal/ubuntu resolute/main armhf libdebuginfod1t64 armhf 0.194-1 [18.8 kB] 178s Get:13 http://ftpmaster.internal/ubuntu resolute/main armhf libpython3.13 armhf 3.13.11-1 [2124 kB] 178s Get:14 http://ftpmaster.internal/ubuntu resolute/main armhf libsource-highlight-common all 3.1.9-4.3build2 [64.2 kB] 178s Get:15 http://ftpmaster.internal/ubuntu resolute/main armhf libsource-highlight4t64 armhf 3.1.9-4.3build2 [297 kB] 178s Get:16 http://ftpmaster.internal/ubuntu resolute/main armhf libc6-dbg armhf 2.42-2ubuntu4 [4516 kB] 178s Get:17 http://ftpmaster.internal/ubuntu resolute/main armhf gdb armhf 16.3-5ubuntu1 [3639 kB] 178s Get:18 http://ftpmaster.internal/ubuntu resolute/main armhf python3-platformdirs all 4.5.1-1 [17.1 kB] 178s Get:19 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-traitlets all 5.14.3+really5.14.3-2 [71.7 kB] 178s Get:20 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-jupyter-core all 5.9.1-1 [28.9 kB] 178s Get:21 http://ftpmaster.internal/ubuntu resolute/universe armhf jupyter-core all 5.9.1-1 [6938 B] 178s Get:22 http://ftpmaster.internal/ubuntu resolute/main armhf libjs-underscore all 1.13.7~dfsg+~1.13.0-1 [86.4 kB] 178s Get:23 http://ftpmaster.internal/ubuntu resolute/universe armhf libjs-backbone all 1.4.1~dfsg+~1.4.15-3build1 [186 kB] 178s Get:24 http://ftpmaster.internal/ubuntu resolute/universe armhf libjs-bootstrap all 3.4.1+dfsg-6 [129 kB] 178s Get:25 http://ftpmaster.internal/ubuntu resolute/main armhf libjs-jquery all 3.7.1+dfsg+~3.5.33-1build1 [321 kB] 178s Get:26 http://ftpmaster.internal/ubuntu resolute/universe armhf libjs-bootstrap-tour all 0.12.0+dfsg-6 [21.6 kB] 178s Get:27 http://ftpmaster.internal/ubuntu resolute/universe armhf libjs-codemirror all 5.65.20+~cs5.83.25-1 [710 kB] 178s Get:28 http://ftpmaster.internal/ubuntu resolute/universe armhf libjs-es6-promise all 4.2.8-12 [14.1 kB] 178s Get:29 http://ftpmaster.internal/ubuntu resolute/universe armhf node-jed all 1.1.1-4 [15.2 kB] 179s Get:30 http://ftpmaster.internal/ubuntu resolute/universe armhf libjs-jed all 1.1.1-4 [2584 B] 179s Get:31 http://ftpmaster.internal/ubuntu resolute/universe armhf libjs-jquery-typeahead all 2.11.0+dfsg1-3build1 [48.3 kB] 179s Get:32 http://ftpmaster.internal/ubuntu resolute/universe armhf libjs-jquery-ui all 1.13.2+dfsg-1build1 [251 kB] 179s Get:33 http://ftpmaster.internal/ubuntu resolute/universe armhf libjs-marked all 4.2.3+ds+~4.0.7-4 [36.2 kB] 179s Get:34 http://ftpmaster.internal/ubuntu resolute/main armhf libjs-mathjax all 2.7.9+dfsg-1build1 [6017 kB] 179s Get:35 http://ftpmaster.internal/ubuntu resolute/universe armhf libjs-moment all 2.29.4+ds-1 [147 kB] 179s Get:36 http://ftpmaster.internal/ubuntu resolute/universe armhf libjs-requirejs all 2.3.8+ds+~2.1.37-1 [201 kB] 179s Get:37 http://ftpmaster.internal/ubuntu resolute/universe armhf libjs-requirejs-text all 2.0.12-2 [9732 B] 179s Get:38 http://ftpmaster.internal/ubuntu resolute/universe armhf libjs-text-encoding all 0.7.0-5 [140 kB] 179s Get:39 http://ftpmaster.internal/ubuntu resolute/universe armhf libjs-xterm all 5.3.0-4 [475 kB] 179s Get:40 http://ftpmaster.internal/ubuntu resolute/main armhf python3-tornado armhf 6.5.4-0.1 [306 kB] 179s Get:41 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-terminado all 0.18.1-1 [13.2 kB] 179s Get:42 http://ftpmaster.internal/ubuntu resolute/main armhf libargon2-1 armhf 0~20190702+dfsg-5 [22.3 kB] 179s Get:43 http://ftpmaster.internal/ubuntu resolute/main armhf python3-ply all 3.11-10 [45.9 kB] 179s Get:44 http://ftpmaster.internal/ubuntu resolute/main armhf python3-pycparser all 2.23-1build1 [77.3 kB] 179s Get:45 http://ftpmaster.internal/ubuntu resolute/main armhf python3-cffi all 2.0.0-2 [75.5 kB] 179s Get:46 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-argon2-cffi-bindings armhf 25.1.0-2 [13.8 kB] 179s Get:47 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-argon2 armhf 25.1.0-2 [13.8 kB] 179s Get:48 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-comm all 0.2.1-1build1 [7148 B] 179s Get:49 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-coverage armhf 7.8.2+dfsg1-1ubuntu1 [158 kB] 179s Get:50 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-debugpy armhf 1.8.19+ds-1ubuntu1 [910 kB] 179s Get:51 http://ftpmaster.internal/ubuntu resolute/main armhf python3-decorator all 5.2.1-2 [28.1 kB] 179s Get:52 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-parso all 0.8.5-1 [68.0 kB] 179s Get:53 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-typeshed all 0.0~git20241223.ea91db2-4 [1554 kB] 179s Get:54 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-jedi all 0.19.1+ds1-1build1 [694 kB] 179s Get:55 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-matplotlib-inline all 0.2.1-1 [9462 B] 179s Get:56 http://ftpmaster.internal/ubuntu resolute/main armhf python3-wcwidth all 0.2.14+dfsg1-1build1 [26.5 kB] 179s Get:57 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-prompt-toolkit all 3.0.52-2 [258 kB] 179s Get:58 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-astroid all 4.0.2-1ubuntu1 [172 kB] 179s Get:59 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-asttokens all 3.0.1-1 [20.7 kB] 179s Get:60 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-executing all 2.2.1-0.1 [26.2 kB] 179s Get:61 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-pure-eval all 0.2.3-1 [11.4 kB] 179s Get:62 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-stack-data all 0.6.3-3 [22.2 kB] 179s Get:63 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-ipython all 8.35.0-2 [575 kB] 179s Get:64 http://ftpmaster.internal/ubuntu resolute/main armhf python3-psutil armhf 7.1.0-1ubuntu1 [189 kB] 179s Get:65 http://ftpmaster.internal/ubuntu resolute/universe armhf libnorm1t64 armhf 1.5.9+dfsg-4 [210 kB] 179s Get:66 http://ftpmaster.internal/ubuntu resolute/universe armhf libpgm-5.3-0t64 armhf 5.3.128~dfsg-2.1build2 [173 kB] 179s Get:67 http://ftpmaster.internal/ubuntu resolute/main armhf libsodium23 armhf 1.0.18-2 [141 kB] 179s Get:68 http://ftpmaster.internal/ubuntu resolute/universe armhf libzmq5 armhf 4.3.5-1build3 [271 kB] 179s Get:69 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-zmq armhf 27.1.0-1 [223 kB] 179s Get:70 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-jupyter-client all 8.7.0-1 [78.5 kB] 179s Get:71 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-nest-asyncio all 1.6.0-1 [6686 B] 179s Get:72 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-ipykernel all 6.30.1-1 [82.8 kB] 179s Get:73 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-ipython-genutils all 0.2.0-7 [22.0 kB] 179s Get:74 http://ftpmaster.internal/ubuntu resolute/universe armhf python-tinycss2-common all 1.5.1-1 [47.3 kB] 179s Get:75 http://ftpmaster.internal/ubuntu resolute/main armhf python3-webencodings all 0.5.1-5build1 [11.7 kB] 179s Get:76 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-tinycss2 all 1.5.1-1 [23.3 kB] 179s Get:77 http://ftpmaster.internal/ubuntu resolute/main armhf python3-html5lib all 1.2-3 [90.6 kB] 179s Get:78 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-bleach all 6.3.0-1 [44.2 kB] 179s Get:79 http://ftpmaster.internal/ubuntu resolute/main armhf python3-soupsieve all 2.8.1-1 [33.7 kB] 179s Get:80 http://ftpmaster.internal/ubuntu resolute/main armhf python3-bs4 all 4.14.3-2build1 [84.8 kB] 179s Get:81 http://ftpmaster.internal/ubuntu resolute/main armhf python3-defusedxml all 0.7.1-3build1 [42.4 kB] 179s Get:82 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-jupyterlab-pygments all 0.2.2-3build1 [6188 B] 179s Get:83 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-mistune all 3.1.4-1 [35.0 kB] 179s Get:84 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-fastjsonschema all 2.21.1-1 [20.4 kB] 179s Get:85 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-nbformat all 5.10.4-1 [39.2 kB] 179s Get:86 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-nbclient all 0.10.4-1 [22.6 kB] 179s Get:87 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-pandocfilters all 1.5.1-1 [23.6 kB] 179s Get:88 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-nbconvert all 7.16.6-1 [140 kB] 179s Get:89 http://ftpmaster.internal/ubuntu resolute/main armhf python3-prometheus-client all 0.21.1+ds1-1build1 [46.0 kB] 179s Get:90 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-send2trash all 1.8.3-1 [14.6 kB] 179s Get:91 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-notebook all 6.4.13-5ubuntu0.1 [1624 kB] 179s Get:92 http://ftpmaster.internal/ubuntu resolute/universe armhf jupyter-notebook all 6.4.13-5ubuntu0.1 [10.4 kB] 179s Get:93 http://ftpmaster.internal/ubuntu resolute/main armhf sphinx-rtd-theme-common all 3.0.2+dfsg-3 [1013 kB] 179s Get:94 http://ftpmaster.internal/ubuntu resolute/universe armhf python-notebook-doc all 6.4.13-5ubuntu0.1 [2545 kB] 179s Get:95 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf python3-all armhf 3.14.2-1 [888 B] 179s Get:96 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-iniconfig all 2.1.0-2 [6962 B] 179s Get:97 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-pluggy all 1.6.0-2 [21.1 kB] 179s Get:98 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-pytest all 9.0.2-2 [277 kB] 179s Get:99 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-requests-unixsocket all 1.0.1-1 [8620 B] 180s Preconfiguring packages ... 180s Fetched 44.1 MB in 3s (15.2 MB/s) 180s Selecting previously unselected package libpython3.13-minimal:armhf. 180s (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 ... 66518 files and directories currently installed.) 180s Preparing to unpack .../00-libpython3.13-minimal_3.13.11-1_armhf.deb ... 180s Unpacking libpython3.13-minimal:armhf (3.13.11-1) ... 180s Selecting previously unselected package python3.13-minimal. 180s Preparing to unpack .../01-python3.13-minimal_3.13.11-1_armhf.deb ... 180s Unpacking python3.13-minimal (3.13.11-1) ... 181s Selecting previously unselected package fonts-lato. 181s Preparing to unpack .../02-fonts-lato_2.015-1build1_all.deb ... 181s Unpacking fonts-lato (2.015-1build1) ... 181s Selecting previously unselected package libdebuginfod-common. 181s Preparing to unpack .../03-libdebuginfod-common_0.194-1_all.deb ... 181s Unpacking libdebuginfod-common (0.194-1) ... 181s Selecting previously unselected package libpython3.13-stdlib:armhf. 181s Preparing to unpack .../04-libpython3.13-stdlib_3.13.11-1_armhf.deb ... 181s Unpacking libpython3.13-stdlib:armhf (3.13.11-1) ... 181s Selecting previously unselected package python3.13. 181s Preparing to unpack .../05-python3.13_3.13.11-1_armhf.deb ... 181s Unpacking python3.13 (3.13.11-1) ... 181s Selecting previously unselected package fonts-font-awesome. 181s Preparing to unpack .../06-fonts-font-awesome_5.0.10+really4.7.0~dfsg-4.1build1_all.deb ... 181s Unpacking fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1build1) ... 181s Selecting previously unselected package fonts-glyphicons-halflings. 181s Preparing to unpack .../07-fonts-glyphicons-halflings_1.009~3.4.1+dfsg-6_all.deb ... 181s Unpacking fonts-glyphicons-halflings (1.009~3.4.1+dfsg-6) ... 181s Selecting previously unselected package fonts-mathjax. 181s Preparing to unpack .../08-fonts-mathjax_2.7.9+dfsg-1build1_all.deb ... 181s Unpacking fonts-mathjax (2.7.9+dfsg-1build1) ... 181s Selecting previously unselected package libdw1t64:armhf. 181s Preparing to unpack .../09-libdw1t64_0.194-1_armhf.deb ... 181s Unpacking libdw1t64:armhf (0.194-1) ... 181s Selecting previously unselected package libbabeltrace1:armhf. 181s Preparing to unpack .../10-libbabeltrace1_1.5.11-5_armhf.deb ... 181s Unpacking libbabeltrace1:armhf (1.5.11-5) ... 181s Selecting previously unselected package libdebuginfod1t64:armhf. 181s Preparing to unpack .../11-libdebuginfod1t64_0.194-1_armhf.deb ... 181s Unpacking libdebuginfod1t64:armhf (0.194-1) ... 181s Selecting previously unselected package libpython3.13:armhf. 181s Preparing to unpack .../12-libpython3.13_3.13.11-1_armhf.deb ... 181s Unpacking libpython3.13:armhf (3.13.11-1) ... 181s Selecting previously unselected package libsource-highlight-common. 182s Preparing to unpack .../13-libsource-highlight-common_3.1.9-4.3build2_all.deb ... 182s Unpacking libsource-highlight-common (3.1.9-4.3build2) ... 182s Selecting previously unselected package libsource-highlight4t64:armhf. 182s Preparing to unpack .../14-libsource-highlight4t64_3.1.9-4.3build2_armhf.deb ... 182s Unpacking libsource-highlight4t64:armhf (3.1.9-4.3build2) ... 182s Selecting previously unselected package libc6-dbg:armhf. 182s Preparing to unpack .../15-libc6-dbg_2.42-2ubuntu4_armhf.deb ... 182s Unpacking libc6-dbg:armhf (2.42-2ubuntu4) ... 182s Selecting previously unselected package gdb. 182s Preparing to unpack .../16-gdb_16.3-5ubuntu1_armhf.deb ... 182s Unpacking gdb (16.3-5ubuntu1) ... 182s Selecting previously unselected package python3-platformdirs. 182s Preparing to unpack .../17-python3-platformdirs_4.5.1-1_all.deb ... 182s Unpacking python3-platformdirs (4.5.1-1) ... 182s Selecting previously unselected package python3-traitlets. 182s Preparing to unpack .../18-python3-traitlets_5.14.3+really5.14.3-2_all.deb ... 182s Unpacking python3-traitlets (5.14.3+really5.14.3-2) ... 182s Selecting previously unselected package python3-jupyter-core. 182s Preparing to unpack .../19-python3-jupyter-core_5.9.1-1_all.deb ... 182s Unpacking python3-jupyter-core (5.9.1-1) ... 182s Selecting previously unselected package jupyter-core. 182s Preparing to unpack .../20-jupyter-core_5.9.1-1_all.deb ... 182s Unpacking jupyter-core (5.9.1-1) ... 182s Selecting previously unselected package libjs-underscore. 182s Preparing to unpack .../21-libjs-underscore_1.13.7~dfsg+~1.13.0-1_all.deb ... 182s Unpacking libjs-underscore (1.13.7~dfsg+~1.13.0-1) ... 182s Selecting previously unselected package libjs-backbone. 182s Preparing to unpack .../22-libjs-backbone_1.4.1~dfsg+~1.4.15-3build1_all.deb ... 182s Unpacking libjs-backbone (1.4.1~dfsg+~1.4.15-3build1) ... 182s Selecting previously unselected package libjs-bootstrap. 182s Preparing to unpack .../23-libjs-bootstrap_3.4.1+dfsg-6_all.deb ... 182s Unpacking libjs-bootstrap (3.4.1+dfsg-6) ... 182s Selecting previously unselected package libjs-jquery. 182s Preparing to unpack .../24-libjs-jquery_3.7.1+dfsg+~3.5.33-1build1_all.deb ... 182s Unpacking libjs-jquery (3.7.1+dfsg+~3.5.33-1build1) ... 182s Selecting previously unselected package libjs-bootstrap-tour. 182s Preparing to unpack .../25-libjs-bootstrap-tour_0.12.0+dfsg-6_all.deb ... 182s Unpacking libjs-bootstrap-tour (0.12.0+dfsg-6) ... 182s Selecting previously unselected package libjs-codemirror. 182s Preparing to unpack .../26-libjs-codemirror_5.65.20+~cs5.83.25-1_all.deb ... 182s Unpacking libjs-codemirror (5.65.20+~cs5.83.25-1) ... 182s Selecting previously unselected package libjs-es6-promise. 182s Preparing to unpack .../27-libjs-es6-promise_4.2.8-12_all.deb ... 182s Unpacking libjs-es6-promise (4.2.8-12) ... 182s Selecting previously unselected package node-jed. 182s Preparing to unpack .../28-node-jed_1.1.1-4_all.deb ... 182s Unpacking node-jed (1.1.1-4) ... 182s Selecting previously unselected package libjs-jed. 183s Preparing to unpack .../29-libjs-jed_1.1.1-4_all.deb ... 183s Unpacking libjs-jed (1.1.1-4) ... 183s Selecting previously unselected package libjs-jquery-typeahead. 183s Preparing to unpack .../30-libjs-jquery-typeahead_2.11.0+dfsg1-3build1_all.deb ... 183s Unpacking libjs-jquery-typeahead (2.11.0+dfsg1-3build1) ... 183s Selecting previously unselected package libjs-jquery-ui. 183s Preparing to unpack .../31-libjs-jquery-ui_1.13.2+dfsg-1build1_all.deb ... 183s Unpacking libjs-jquery-ui (1.13.2+dfsg-1build1) ... 183s Selecting previously unselected package libjs-marked. 183s Preparing to unpack .../32-libjs-marked_4.2.3+ds+~4.0.7-4_all.deb ... 183s Unpacking libjs-marked (4.2.3+ds+~4.0.7-4) ... 183s Selecting previously unselected package libjs-mathjax. 183s Preparing to unpack .../33-libjs-mathjax_2.7.9+dfsg-1build1_all.deb ... 183s Unpacking libjs-mathjax (2.7.9+dfsg-1build1) ... 184s Selecting previously unselected package libjs-moment. 184s Preparing to unpack .../34-libjs-moment_2.29.4+ds-1_all.deb ... 184s Unpacking libjs-moment (2.29.4+ds-1) ... 184s Selecting previously unselected package libjs-requirejs. 184s Preparing to unpack .../35-libjs-requirejs_2.3.8+ds+~2.1.37-1_all.deb ... 184s Unpacking libjs-requirejs (2.3.8+ds+~2.1.37-1) ... 184s Selecting previously unselected package libjs-requirejs-text. 184s Preparing to unpack .../36-libjs-requirejs-text_2.0.12-2_all.deb ... 184s Unpacking libjs-requirejs-text (2.0.12-2) ... 184s Selecting previously unselected package libjs-text-encoding. 184s Preparing to unpack .../37-libjs-text-encoding_0.7.0-5_all.deb ... 184s Unpacking libjs-text-encoding (0.7.0-5) ... 184s Selecting previously unselected package libjs-xterm. 184s Preparing to unpack .../38-libjs-xterm_5.3.0-4_all.deb ... 184s Unpacking libjs-xterm (5.3.0-4) ... 184s Selecting previously unselected package python3-tornado. 184s Preparing to unpack .../39-python3-tornado_6.5.4-0.1_armhf.deb ... 184s Unpacking python3-tornado (6.5.4-0.1) ... 184s Selecting previously unselected package python3-terminado. 184s Preparing to unpack .../40-python3-terminado_0.18.1-1_all.deb ... 184s Unpacking python3-terminado (0.18.1-1) ... 184s Selecting previously unselected package libargon2-1:armhf. 184s Preparing to unpack .../41-libargon2-1_0~20190702+dfsg-5_armhf.deb ... 184s Unpacking libargon2-1:armhf (0~20190702+dfsg-5) ... 184s Selecting previously unselected package python3-ply. 184s Preparing to unpack .../42-python3-ply_3.11-10_all.deb ... 184s Unpacking python3-ply (3.11-10) ... 184s Selecting previously unselected package python3-pycparser. 184s Preparing to unpack .../43-python3-pycparser_2.23-1build1_all.deb ... 184s Unpacking python3-pycparser (2.23-1build1) ... 184s Selecting previously unselected package python3-cffi. 184s Preparing to unpack .../44-python3-cffi_2.0.0-2_all.deb ... 184s Unpacking python3-cffi (2.0.0-2) ... 184s Selecting previously unselected package python3-argon2-cffi-bindings. 184s Preparing to unpack .../45-python3-argon2-cffi-bindings_25.1.0-2_armhf.deb ... 184s Unpacking python3-argon2-cffi-bindings (25.1.0-2) ... 184s Selecting previously unselected package python3-argon2. 184s Preparing to unpack .../46-python3-argon2_25.1.0-2_armhf.deb ... 184s Unpacking python3-argon2 (25.1.0-2) ... 184s Selecting previously unselected package python3-comm. 184s Preparing to unpack .../47-python3-comm_0.2.1-1build1_all.deb ... 184s Unpacking python3-comm (0.2.1-1build1) ... 184s Selecting previously unselected package python3-coverage. 184s Preparing to unpack .../48-python3-coverage_7.8.2+dfsg1-1ubuntu1_armhf.deb ... 184s Unpacking python3-coverage (7.8.2+dfsg1-1ubuntu1) ... 184s Selecting previously unselected package python3-debugpy. 184s Preparing to unpack .../49-python3-debugpy_1.8.19+ds-1ubuntu1_armhf.deb ... 184s Unpacking python3-debugpy (1.8.19+ds-1ubuntu1) ... 184s Selecting previously unselected package python3-decorator. 184s Preparing to unpack .../50-python3-decorator_5.2.1-2_all.deb ... 184s Unpacking python3-decorator (5.2.1-2) ... 184s Selecting previously unselected package python3-parso. 184s Preparing to unpack .../51-python3-parso_0.8.5-1_all.deb ... 184s Unpacking python3-parso (0.8.5-1) ... 184s Selecting previously unselected package python3-typeshed. 185s Preparing to unpack .../52-python3-typeshed_0.0~git20241223.ea91db2-4_all.deb ... 185s Unpacking python3-typeshed (0.0~git20241223.ea91db2-4) ... 185s Selecting previously unselected package python3-jedi. 185s Preparing to unpack .../53-python3-jedi_0.19.1+ds1-1build1_all.deb ... 185s Unpacking python3-jedi (0.19.1+ds1-1build1) ... 186s Selecting previously unselected package python3-matplotlib-inline. 186s Preparing to unpack .../54-python3-matplotlib-inline_0.2.1-1_all.deb ... 186s Unpacking python3-matplotlib-inline (0.2.1-1) ... 186s Selecting previously unselected package python3-wcwidth. 186s Preparing to unpack .../55-python3-wcwidth_0.2.14+dfsg1-1build1_all.deb ... 186s Unpacking python3-wcwidth (0.2.14+dfsg1-1build1) ... 186s Selecting previously unselected package python3-prompt-toolkit. 186s Preparing to unpack .../56-python3-prompt-toolkit_3.0.52-2_all.deb ... 186s Unpacking python3-prompt-toolkit (3.0.52-2) ... 186s Selecting previously unselected package python3-astroid. 186s Preparing to unpack .../57-python3-astroid_4.0.2-1ubuntu1_all.deb ... 186s Unpacking python3-astroid (4.0.2-1ubuntu1) ... 186s Selecting previously unselected package python3-asttokens. 186s Preparing to unpack .../58-python3-asttokens_3.0.1-1_all.deb ... 186s Unpacking python3-asttokens (3.0.1-1) ... 186s Selecting previously unselected package python3-executing. 186s Preparing to unpack .../59-python3-executing_2.2.1-0.1_all.deb ... 186s Unpacking python3-executing (2.2.1-0.1) ... 186s Selecting previously unselected package python3-pure-eval. 186s Preparing to unpack .../60-python3-pure-eval_0.2.3-1_all.deb ... 186s Unpacking python3-pure-eval (0.2.3-1) ... 186s Selecting previously unselected package python3-stack-data. 186s Preparing to unpack .../61-python3-stack-data_0.6.3-3_all.deb ... 186s Unpacking python3-stack-data (0.6.3-3) ... 186s Selecting previously unselected package python3-ipython. 186s Preparing to unpack .../62-python3-ipython_8.35.0-2_all.deb ... 186s Unpacking python3-ipython (8.35.0-2) ... 186s Selecting previously unselected package python3-psutil. 186s Preparing to unpack .../63-python3-psutil_7.1.0-1ubuntu1_armhf.deb ... 186s Unpacking python3-psutil (7.1.0-1ubuntu1) ... 186s Selecting previously unselected package libnorm1t64:armhf. 186s Preparing to unpack .../64-libnorm1t64_1.5.9+dfsg-4_armhf.deb ... 186s Unpacking libnorm1t64:armhf (1.5.9+dfsg-4) ... 186s Selecting previously unselected package libpgm-5.3-0t64:armhf. 186s Preparing to unpack .../65-libpgm-5.3-0t64_5.3.128~dfsg-2.1build2_armhf.deb ... 186s Unpacking libpgm-5.3-0t64:armhf (5.3.128~dfsg-2.1build2) ... 186s Selecting previously unselected package libsodium23:armhf. 186s Preparing to unpack .../66-libsodium23_1.0.18-2_armhf.deb ... 186s Unpacking libsodium23:armhf (1.0.18-2) ... 186s Selecting previously unselected package libzmq5:armhf. 186s Preparing to unpack .../67-libzmq5_4.3.5-1build3_armhf.deb ... 186s Unpacking libzmq5:armhf (4.3.5-1build3) ... 186s Selecting previously unselected package python3-zmq. 187s Preparing to unpack .../68-python3-zmq_27.1.0-1_armhf.deb ... 187s Unpacking python3-zmq (27.1.0-1) ... 187s Selecting previously unselected package python3-jupyter-client. 187s Preparing to unpack .../69-python3-jupyter-client_8.7.0-1_all.deb ... 187s Unpacking python3-jupyter-client (8.7.0-1) ... 187s Selecting previously unselected package python3-nest-asyncio. 187s Preparing to unpack .../70-python3-nest-asyncio_1.6.0-1_all.deb ... 187s Unpacking python3-nest-asyncio (1.6.0-1) ... 187s Selecting previously unselected package python3-ipykernel. 187s Preparing to unpack .../71-python3-ipykernel_6.30.1-1_all.deb ... 187s Unpacking python3-ipykernel (6.30.1-1) ... 187s Selecting previously unselected package python3-ipython-genutils. 187s Preparing to unpack .../72-python3-ipython-genutils_0.2.0-7_all.deb ... 187s Unpacking python3-ipython-genutils (0.2.0-7) ... 187s Selecting previously unselected package python-tinycss2-common. 187s Preparing to unpack .../73-python-tinycss2-common_1.5.1-1_all.deb ... 187s Unpacking python-tinycss2-common (1.5.1-1) ... 187s Selecting previously unselected package python3-webencodings. 187s Preparing to unpack .../74-python3-webencodings_0.5.1-5build1_all.deb ... 187s Unpacking python3-webencodings (0.5.1-5build1) ... 187s Selecting previously unselected package python3-tinycss2. 187s Preparing to unpack .../75-python3-tinycss2_1.5.1-1_all.deb ... 187s Unpacking python3-tinycss2 (1.5.1-1) ... 187s Selecting previously unselected package python3-html5lib. 187s Preparing to unpack .../76-python3-html5lib_1.2-3_all.deb ... 187s Unpacking python3-html5lib (1.2-3) ... 187s Selecting previously unselected package python3-bleach. 187s Preparing to unpack .../77-python3-bleach_6.3.0-1_all.deb ... 187s Unpacking python3-bleach (6.3.0-1) ... 187s Selecting previously unselected package python3-soupsieve. 187s Preparing to unpack .../78-python3-soupsieve_2.8.1-1_all.deb ... 187s Unpacking python3-soupsieve (2.8.1-1) ... 187s Selecting previously unselected package python3-bs4. 187s Preparing to unpack .../79-python3-bs4_4.14.3-2build1_all.deb ... 187s Unpacking python3-bs4 (4.14.3-2build1) ... 187s Selecting previously unselected package python3-defusedxml. 187s Preparing to unpack .../80-python3-defusedxml_0.7.1-3build1_all.deb ... 187s Unpacking python3-defusedxml (0.7.1-3build1) ... 187s Selecting previously unselected package python3-jupyterlab-pygments. 187s Preparing to unpack .../81-python3-jupyterlab-pygments_0.2.2-3build1_all.deb ... 187s Unpacking python3-jupyterlab-pygments (0.2.2-3build1) ... 187s Selecting previously unselected package python3-mistune. 187s Preparing to unpack .../82-python3-mistune_3.1.4-1_all.deb ... 187s Unpacking python3-mistune (3.1.4-1) ... 187s Selecting previously unselected package python3-fastjsonschema. 187s Preparing to unpack .../83-python3-fastjsonschema_2.21.1-1_all.deb ... 187s Unpacking python3-fastjsonschema (2.21.1-1) ... 187s Selecting previously unselected package python3-nbformat. 187s Preparing to unpack .../84-python3-nbformat_5.10.4-1_all.deb ... 187s Unpacking python3-nbformat (5.10.4-1) ... 187s Selecting previously unselected package python3-nbclient. 187s Preparing to unpack .../85-python3-nbclient_0.10.4-1_all.deb ... 187s Unpacking python3-nbclient (0.10.4-1) ... 187s Selecting previously unselected package python3-pandocfilters. 187s Preparing to unpack .../86-python3-pandocfilters_1.5.1-1_all.deb ... 187s Unpacking python3-pandocfilters (1.5.1-1) ... 187s Selecting previously unselected package python3-nbconvert. 187s Preparing to unpack .../87-python3-nbconvert_7.16.6-1_all.deb ... 187s Unpacking python3-nbconvert (7.16.6-1) ... 188s Selecting previously unselected package python3-prometheus-client. 188s Preparing to unpack .../88-python3-prometheus-client_0.21.1+ds1-1build1_all.deb ... 188s Unpacking python3-prometheus-client (0.21.1+ds1-1build1) ... 188s Selecting previously unselected package python3-send2trash. 188s Preparing to unpack .../89-python3-send2trash_1.8.3-1_all.deb ... 188s Unpacking python3-send2trash (1.8.3-1) ... 188s Selecting previously unselected package python3-notebook. 188s Preparing to unpack .../90-python3-notebook_6.4.13-5ubuntu0.1_all.deb ... 188s Unpacking python3-notebook (6.4.13-5ubuntu0.1) ... 188s Selecting previously unselected package jupyter-notebook. 188s Preparing to unpack .../91-jupyter-notebook_6.4.13-5ubuntu0.1_all.deb ... 188s Unpacking jupyter-notebook (6.4.13-5ubuntu0.1) ... 188s Selecting previously unselected package sphinx-rtd-theme-common. 188s Preparing to unpack .../92-sphinx-rtd-theme-common_3.0.2+dfsg-3_all.deb ... 188s Unpacking sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 188s Selecting previously unselected package python-notebook-doc. 188s Preparing to unpack .../93-python-notebook-doc_6.4.13-5ubuntu0.1_all.deb ... 188s Unpacking python-notebook-doc (6.4.13-5ubuntu0.1) ... 188s Selecting previously unselected package python3-all. 188s Preparing to unpack .../94-python3-all_3.14.2-1_armhf.deb ... 188s Unpacking python3-all (3.14.2-1) ... 188s Selecting previously unselected package python3-iniconfig. 188s Preparing to unpack .../95-python3-iniconfig_2.1.0-2_all.deb ... 188s Unpacking python3-iniconfig (2.1.0-2) ... 188s Selecting previously unselected package python3-pluggy. 188s Preparing to unpack .../96-python3-pluggy_1.6.0-2_all.deb ... 188s Unpacking python3-pluggy (1.6.0-2) ... 188s Selecting previously unselected package python3-pytest. 188s Preparing to unpack .../97-python3-pytest_9.0.2-2_all.deb ... 188s Unpacking python3-pytest (9.0.2-2) ... 188s Selecting previously unselected package python3-requests-unixsocket. 188s Preparing to unpack .../98-python3-requests-unixsocket_1.0.1-1_all.deb ... 188s Unpacking python3-requests-unixsocket (1.0.1-1) ... 188s Setting up libjs-jquery-typeahead (2.11.0+dfsg1-3build1) ... 188s Setting up python3-iniconfig (2.1.0-2) ... 189s Setting up python3-tornado (6.5.4-0.1) ... 190s Setting up libnorm1t64:armhf (1.5.9+dfsg-4) ... 190s Setting up python3-pure-eval (0.2.3-1) ... 190s Setting up python3-send2trash (1.8.3-1) ... 190s Setting up fonts-lato (2.015-1build1) ... 190s Setting up fonts-mathjax (2.7.9+dfsg-1build1) ... 190s Setting up libsodium23:armhf (1.0.18-2) ... 190s Setting up libjs-mathjax (2.7.9+dfsg-1build1) ... 190s Setting up libdebuginfod-common (0.194-1) ... 190s Setting up libjs-requirejs-text (2.0.12-2) ... 190s Setting up python3-parso (0.8.5-1) ... 191s Setting up python3-defusedxml (0.7.1-3build1) ... 191s Setting up python3-ipython-genutils (0.2.0-7) ... 191s Setting up fonts-glyphicons-halflings (1.009~3.4.1+dfsg-6) ... 191s Setting up libargon2-1:armhf (0~20190702+dfsg-5) ... 191s Setting up python3-ply (3.11-10) ... 192s Setting up libjs-moment (2.29.4+ds-1) ... 192s Setting up python3-pandocfilters (1.5.1-1) ... 192s Setting up libjs-requirejs (2.3.8+ds+~2.1.37-1) ... 192s Setting up libjs-es6-promise (4.2.8-12) ... 192s Setting up libjs-text-encoding (0.7.0-5) ... 192s Setting up python3-webencodings (0.5.1-5build1) ... 192s Setting up python3-platformdirs (4.5.1-1) ... 193s Setting up python3-psutil (7.1.0-1ubuntu1) ... 193s Setting up libsource-highlight-common (3.1.9-4.3build2) ... 193s Setting up python3-pycparser (2.23-1build1) ... 194s Setting up libc6-dbg:armhf (2.42-2ubuntu4) ... 194s Setting up libdw1t64:armhf (0.194-1) ... 194s Setting up python3-requests-unixsocket (1.0.1-1) ... 194s Setting up python3-jupyterlab-pygments (0.2.2-3build1) ... 194s Setting up libpython3.13-minimal:armhf (3.13.11-1) ... 194s Setting up libpgm-5.3-0t64:armhf (5.3.128~dfsg-2.1build2) ... 194s Setting up python3-decorator (5.2.1-2) ... 194s Setting up python3-wcwidth (0.2.14+dfsg1-1build1) ... 195s Setting up node-jed (1.1.1-4) ... 195s Setting up python3-typeshed (0.0~git20241223.ea91db2-4) ... 195s Setting up libjs-xterm (5.3.0-4) ... 195s Setting up python3-nest-asyncio (1.6.0-1) ... 195s Setting up libjs-codemirror (5.65.20+~cs5.83.25-1) ... 195s Setting up libjs-jed (1.1.1-4) ... 195s Setting up python3-html5lib (1.2-3) ... 196s Setting up libbabeltrace1:armhf (1.5.11-5) ... 196s Setting up python3-pluggy (1.6.0-2) ... 196s Setting up python3-fastjsonschema (2.21.1-1) ... 196s Setting up python3-terminado (0.18.1-1) ... 197s Setting up python3-astroid (4.0.2-1ubuntu1) ... 197s Setting up python3-traitlets (5.14.3+really5.14.3-2) ... 198s Setting up python-tinycss2-common (1.5.1-1) ... 198s Setting up python3.13-minimal (3.13.11-1) ... 199s Setting up libjs-jquery (3.7.1+dfsg+~3.5.33-1build1) ... 199s Setting up python3-mistune (3.1.4-1) ... 199s Setting up libpython3.13-stdlib:armhf (3.13.11-1) ... 199s Setting up python3-soupsieve (2.8.1-1) ... 200s Setting up fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1build1) ... 200s Setting up sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 200s Setting up python3-jupyter-core (5.9.1-1) ... 200s Setting up libjs-bootstrap (3.4.1+dfsg-6) ... 200s Setting up libjs-underscore (1.13.7~dfsg+~1.13.0-1) ... 200s Setting up libjs-marked (4.2.3+ds+~4.0.7-4) ... 200s Setting up libpython3.13:armhf (3.13.11-1) ... 200s Setting up python3-prompt-toolkit (3.0.52-2) ... 201s Setting up libdebuginfod1t64:armhf (0.194-1) ... 201s Setting up python3-tinycss2 (1.5.1-1) ... 202s Setting up libzmq5:armhf (4.3.5-1build3) ... 202s Setting up python3-jedi (0.19.1+ds1-1build1) ... 202s Setting up python3.13 (3.13.11-1) ... 204s Setting up python3-asttokens (3.0.1-1) ... 204s Setting up python3-pytest (9.0.2-2) ... 205s Setting up python3-cffi (2.0.0-2) ... 205s Setting up libjs-bootstrap-tour (0.12.0+dfsg-6) ... 205s Setting up python3-all (3.14.2-1) ... 205s Setting up python3-coverage (7.8.2+dfsg1-1ubuntu1) ... 206s Setting up libjs-backbone (1.4.1~dfsg+~1.4.15-3build1) ... 206s Setting up libsource-highlight4t64:armhf (3.1.9-4.3build2) ... 206s Setting up python3-nbformat (5.10.4-1) ... 206s Setting up python-notebook-doc (6.4.13-5ubuntu0.1) ... 206s Setting up python3-bs4 (4.14.3-2build1) ... 207s Setting up python3-bleach (6.3.0-1) ... 207s Setting up python3-matplotlib-inline (0.2.1-1) ... 207s Setting up python3-comm (0.2.1-1build1) ... 207s Setting up python3-prometheus-client (0.21.1+ds1-1build1) ... 208s Setting up gdb (16.3-5ubuntu1) ... 208s Setting up libjs-jquery-ui (1.13.2+dfsg-1build1) ... 208s Setting up python3-executing (2.2.1-0.1) ... 208s Setting up python3-zmq (27.1.0-1) ... 209s Setting up python3-argon2-cffi-bindings (25.1.0-2) ... 209s Setting up python3-argon2 (25.1.0-2) ... 209s Setting up python3-jupyter-client (8.7.0-1) ... 210s Setting up jupyter-core (5.9.1-1) ... 210s Setting up python3-stack-data (0.6.3-3) ... 210s Setting up python3-debugpy (1.8.19+ds-1ubuntu1) ... 211s Setting up python3-nbclient (0.10.4-1) ... 212s Setting up python3-ipython (8.35.0-2) ... 212s /usr/lib/python3/dist-packages/IPython/core/interactiveshell.py:3141: SyntaxWarning: 'return' in a 'finally' block 212s return result 213s Setting up python3-ipykernel (6.30.1-1) ... 214s Setting up python3-nbconvert (7.16.6-1) ... 214s Setting up python3-notebook (6.4.13-5ubuntu0.1) ... 215s Setting up jupyter-notebook (6.4.13-5ubuntu0.1) ... 215s Processing triggers for systemd (259-1ubuntu2) ... 215s Processing triggers for man-db (2.13.1-1) ... 216s Processing triggers for libc-bin (2.42-2ubuntu4) ... 228s autopkgtest [18:27:08]: test pytest: [----------------------- 230s Testing with python3.13 230s *** STARTING RUN 1: python3.13 -m pytest --pyargs notebook -rsfE --ignore=/usr/lib/python3/dist-packages/notebook/tests/selenium --deselect=services/kernels/tests/test_kernels_api.py::KernelAPITest::test_connections 235s ============================= test session starts ============================== 235s platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0 235s rootdir: /tmp/autopkgtest.2Ulezp/autopkgtest_tmp 235s plugins: typeguard-4.4.4 235s collected 330 items / 6 deselected / 324 selected 235s 236s auth/tests/test_login.py .. [ 0%] 236s auth/tests/test_security.py .... [ 1%] 237s bundler/tests/test_bundler_api.py ..... [ 3%] 237s bundler/tests/test_bundler_tools.py ............. [ 7%] 237s bundler/tests/test_bundlerextension.py ... [ 8%] 238s nbconvert/tests/test_nbconvert_handlers.py ssssss [ 10%] 238s services/api/tests/test_api.py ... [ 11%] 238s services/config/tests/test_config_api.py ... [ 12%] 239s services/contents/tests/test_contents_api.py .s..........ss..s.......... [ 20%] 241s ................s...........ss..s......................... [ 38%] 241s services/contents/tests/test_fileio.py ... [ 39%] 241s services/contents/tests/test_largefilemanager.py . [ 39%] 242s services/contents/tests/test_manager.py .....s........ss..........ss.... [ 49%] 243s .... [ 50%] 255s services/kernels/tests/test_kernels_api.py ........... [ 54%] 255s services/kernelspecs/tests/test_kernelspecs_api.py ....... [ 56%] 256s services/nbconvert/tests/test_nbconvert_api.py . [ 56%] 256s services/sessions/tests/test_sessionmanager.py ......... [ 59%] 265s services/sessions/tests/test_sessions_api.py ...................... [ 66%] 270s terminal/tests/test_terminals_api.py ........ [ 68%] 270s tests/test_config_manager.py . [ 68%] 270s tests/test_files.py ..... [ 70%] 270s tests/test_gateway.py ...... [ 72%] 270s tests/test_i18n.py . [ 72%] 270s tests/test_log.py . [ 72%] 272s tests/test_nbextensions.py ................................... [ 83%] 273s tests/test_notebookapp.py .......................... [ 91%] 274s tests/test_paths.py ... [ 92%] 274s tests/test_serialize.py .. [ 93%] 275s tests/test_serverextensions.py ..... [ 94%] 275s tests/test_traittypes.py ........... [ 98%] 276s tests/test_utils.py ....s [ 99%] 277s tree/tests/test_tree_handler.py . [100%] 277s 277s =============================== warnings summary =============================== 277s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 277s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 277s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 277s return LooseVersion(v) >= LooseVersion(check) 277s 277s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 277s auth/tests/test_login.py: 2 warnings 277s bundler/tests/test_bundler_api.py: 2 warnings 277s services/api/tests/test_api.py: 4 warnings 277s services/config/tests/test_config_api.py: 7 warnings 277s services/contents/tests/test_contents_api.py: 318 warnings 277s services/kernels/tests/test_kernels_api.py: 107 warnings 277s services/kernelspecs/tests/test_kernelspecs_api.py: 7 warnings 277s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 277s services/sessions/tests/test_sessionmanager.py: 9 warnings 277s services/sessions/tests/test_sessions_api.py: 128 warnings 277s terminal/tests/test_terminals_api.py: 50 warnings 277s tests/test_files.py: 2 warnings 277s tests/test_gateway.py: 21 warnings 277s tests/test_notebookapp.py: 8 warnings 277s tests/test_paths.py: 2 warnings 277s tree/tests/test_tree_handler.py: 2 warnings 277s /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). 277s dt = unaware(*args, **kwargs) 277s 277s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 277s /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 277s pytestmark = pytest.mark.integration_tests 277s 277s bundler/tests/test_bundler_api.py: 6 warnings 277s services/api/tests/test_api.py: 6 warnings 277s services/contents/tests/test_contents_api.py: 806 warnings 277s services/contents/tests/test_largefilemanager.py: 42 warnings 277s services/contents/tests/test_manager.py: 526 warnings 277s tests/test_files.py: 8 warnings 277s tree/tests/test_tree_handler.py: 6 warnings 277s /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). 277s dt = unaware(*args, **kwargs) 277s 277s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 277s services/kernels/tests/test_kernels_api.py::KernelCullingTest::test_culling 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 277s loop.make_current() 277s 277s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs 277s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs_bad 277s /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/tmp43qe400p/data/kernels/sample 2 277s d = self.find_kernel_specs() 277s 277s services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 277s /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:67: PytestUnraisableExceptionWarning: Exception ignored in: 277s 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 68, in __del__ 277s self.close() 277s ~~~~~~~~~~^^ 277s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 63, in close 277s self._cursor.close() 277s ~~~~~~~~~~~~~~~~~~^^ 277s sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread. The object was created in thread id 4112797728 and this is thread id 3999253504. 277s 277s Enable tracemalloc to get traceback where the object was allocated. 277s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 277s warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) 277s 277s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal 277s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 277s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 277s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_with_name 277s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_handler 277s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 277s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 277s terminal/tests/test_terminals_api.py::TerminalCullingTest::test_culling 277s /usr/lib/python3.13/pty.py:95: DeprecationWarning: This process (pid=2581) is multi-threaded, use of forkpty() may lead to deadlocks in the child. 277s pid, fd = os.forkpty() 277s 277s tests/test_gateway.py::TestGateway::test_gateway_kernel_lifecycle 277s tests/test_gateway.py::TestGateway::test_gateway_session_lifecycle 277s /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). 277s dt = datetime.utcnow().isoformat() + 'Z' 277s 277s tests/test_nbextensions.py::TestInstallNBExtension::test_install_tar 277s tests/test_nbextensions.py::TestInstallNBExtension::test_install_tar 277s tests/test_nbextensions.py::TestInstallNBExtension::test_install_tar 277s /usr/lib/python3/dist-packages/notebook/nbextensions.py:154: DeprecationWarning: Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata. Use the filter argument to control this behavior. 277s archive.extractall(nbext) 277s 277s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 277s =========================== short test summary info ============================ 277s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:86: Pandoc wasn't found. Skipping this test. 277s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:101: Pandoc wasn't found. Skipping this test. 277s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:109: Pandoc wasn't found. Skipping this test. 277s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:119: Pandoc wasn't found. Skipping this test. 277s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:128: Pandoc wasn't found. Skipping this test. 277s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:145: Pandoc wasn't found. Skipping this test. 277s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:682: skip send2trash tests 277s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:592: skip send2trash tests 277s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:606: skip send2trash tests 277s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:616: skip send2trash tests 277s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:332: skip send2trash tests 277s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:658: skip send2trash tests 277s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:727: skip send2trash tests 278s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/tests/test_utils.py:83: run on windows only 278s ======== 304 passed, 20 skipped, 6 deselected, 2094 warnings in 46.28s ========= 279s *** END OF RUN 1: ALL TESTS RUN HAVE NOW PASSED/XFAILED *** 279s Testing with python3.14 279s *** 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 283s ============================= test session starts ============================== 283s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 283s rootdir: /tmp/autopkgtest.2Ulezp/autopkgtest_tmp 283s plugins: typeguard-4.4.4 283s collected 330 items / 6 deselected / 324 selected 283s 283s auth/tests/test_login.py .. [ 0%] 284s auth/tests/test_security.py .... [ 1%] 284s bundler/tests/test_bundler_api.py ..... [ 3%] 284s bundler/tests/test_bundler_tools.py ............. [ 7%] 285s bundler/tests/test_bundlerextension.py ... [ 8%] 285s nbconvert/tests/test_nbconvert_handlers.py ssssss [ 10%] 285s services/api/tests/test_api.py ... [ 11%] 285s services/config/tests/test_config_api.py ... [ 12%] 286s services/contents/tests/test_contents_api.py .s..........ss..s.......... [ 20%] 288s ................s...........ss..s......................... [ 38%] 288s services/contents/tests/test_fileio.py ... [ 39%] 289s services/contents/tests/test_largefilemanager.py . [ 39%] 290s services/contents/tests/test_manager.py .....s........ss..........ss.... [ 49%] 290s .... [ 50%] 301s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF.. [ 54%] 302s services/kernelspecs/tests/test_kernelspecs_api.py ....... [ 56%] 302s services/nbconvert/tests/test_nbconvert_api.py . [ 56%] 303s services/sessions/tests/test_sessionmanager.py ......... [ 59%] 305s services/sessions/tests/test_sessions_api.py FFFFFE.FEFE.FFFFFFFE.FEFE.F [ 65%] 305s F [ 66%] 310s terminal/tests/test_terminals_api.py ........ [ 68%] 310s tests/test_config_manager.py . [ 68%] 310s tests/test_files.py ..... [ 70%] 310s tests/test_gateway.py ...... [ 72%] 310s tests/test_i18n.py . [ 72%] 310s tests/test_log.py . [ 72%] 312s tests/test_nbextensions.py ................................... [ 83%] 313s tests/test_notebookapp.py .......................... [ 91%] 313s tests/test_paths.py ... [ 92%] 313s tests/test_serialize.py .. [ 93%] 315s tests/test_serverextensions.py ..... [ 94%] 315s tests/test_traittypes.py ........... [ 98%] 316s tests/test_utils.py ....s [ 99%] 317s tree/tests/test_tree_handler.py . [100%] 317s 317s ==================================== ERRORS ==================================== 317s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 317s 317s self = 317s 317s def tearDown(self): 317s for k in self.kern_api.list().json(): 317s > self.kern_api.shutdown(k['id']) 317s 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 317s return self._req('DELETE', id) 317s ^^^^^^^^^^^^^^^^^^^^^^^ 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 317s response.raise_for_status() 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s 317s self = 317s 317s def raise_for_status(self): 317s """Raises :class:`HTTPError`, if one occurred.""" 317s 317s http_error_msg = "" 317s if isinstance(self.reason, bytes): 317s # We attempt to decode utf-8 first because some servers 317s # choose to localize their reason strings. If the string 317s # isn't utf-8, we fall back to iso-8859-1 for all other 317s # encodings. (See PR #3538) 317s try: 317s reason = self.reason.decode("utf-8") 317s except UnicodeDecodeError: 317s reason = self.reason.decode("iso-8859-1") 317s else: 317s reason = self.reason 317s 317s if 400 <= self.status_code < 500: 317s http_error_msg = ( 317s f"{self.status_code} Client Error: {reason} for url: {self.url}" 317s ) 317s 317s elif 500 <= self.status_code < 600: 317s http_error_msg = ( 317s f"{self.status_code} Server Error: {reason} for url: {self.url}" 317s ) 317s 317s if http_error_msg: 317s > raise HTTPError(http_error_msg, response=self) 317s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/94530ad1-859f-4dfb-a5b6-4c4388484814 317s 317s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 317s ----------------------------- Captured stderr call ----------------------------- 317s Traceback (most recent call last): 317s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 317s return _run_code(code, main_globals, None, 317s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 317s exec(code, run_globals) 317s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 317s from pathlib import Path 317s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 317s from glob import _StringGlobber, _no_recurse_symlinks 317s File "/usr/lib/python3.14/glob.py", line 3, in 317s import contextlib 317s File "/usr/lib/python3.14/contextlib.py", line 6, in 317s from collections import deque 317s File "/usr/lib/python3.14/collections/__init__.py", line 80, in 317s class _OrderedDictValuesView(_collections_abc.ValuesView): 317s File "/usr/lib/python3.14/abc.py", line 106, in __new__ 317s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 317s KeyboardInterrupt 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpggx0ujld/runtime/kernel-94530ad1-859f-4dfb-a5b6-4c4388484814.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47211 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42809 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: 94530ad1-859f-4dfb-a5b6-4c4388484814, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 20.490000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.530000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpggx0ujld/runtime/kernel-45ae6981-87e9-4205-9f97-f9b859523ba9.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54855 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47265 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: 45ae6981-87e9-4205-9f97-f9b859523ba9, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 20.760000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.540000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 45ae6981-87e9-4205-9f97-f9b859523ba9 317s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/45ae6981-87e9-4205-9f97-f9b859523ba9/interrupt (127.0.0.1) 2.310000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 317s yield maybe_future(km.restart_kernel(kernel_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 317s raise self._exception.with_traceback(self._exception_tb) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 317s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 317s await ensure_async(kernel.restart_kernel(now=now)) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 317s await self._async_shutdown_kernel(now=now, restart=True) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/45ae6981-87e9-4205-9f97-f9b859523ba9/restart (127.0.0.1) 7.620000ms referer=None 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.620000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 94530ad1-859f-4dfb-a5b6-4c4388484814 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 94530ad1-859f-4dfb-a5b6-4c4388484814 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/94530ad1-859f-4dfb-a5b6-4c4388484814 (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/94530ad1-859f-4dfb-a5b6-4c4388484814', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 317s yielded = ctx_run(next, result) 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 317s yield maybe_future(km.shutdown_kernel(kernel_id)) 317s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 317s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 317s stopper = ensure_async(km.shutdown_kernel(now, restart)) 317s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/94530ad1-859f-4dfb-a5b6-4c4388484814 (127.0.0.1) 10.730000ms referer=None 317s --------------------------- Captured stderr teardown --------------------------- 317s Traceback (most recent call last): 317s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 317s return _run_code(code, main_globals, None, 317s "__main__", mod_spec) 317s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 317s exec(code, run_globals) 317s ~~~~^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 317s from ipykernel import kernelapp as app 317s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 317s from .connect import * # noqa: F403 317s ^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 317s import jupyter_client 317s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 317s from .asynchronous import AsyncKernelClient 317s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 317s from .client import AsyncKernelClient # noqa 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 317s import zmq.asyncio 317s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 317s import asyncio 317s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 317s from .base_events import * 317s File "", line 1371, in _find_and_load 317s File "", line 1342, in _find_and_load_unlocked 317s File "", line 938, in _load_unlocked 317s File "", line 755, in exec_module 317s File "", line 876, in get_code 317s File "", line 457, in _validate_timestamp_pyc 317s KeyboardInterrupt 317s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 317s 317s self = 317s 317s def tearDown(self): 317s for k in self.kern_api.list().json(): 317s > self.kern_api.shutdown(k['id']) 317s 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 317s return self._req('DELETE', id) 317s ^^^^^^^^^^^^^^^^^^^^^^^ 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 317s response.raise_for_status() 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s 317s self = 317s 317s def raise_for_status(self): 317s """Raises :class:`HTTPError`, if one occurred.""" 317s 317s http_error_msg = "" 317s if isinstance(self.reason, bytes): 317s # We attempt to decode utf-8 first because some servers 317s # choose to localize their reason strings. If the string 317s # isn't utf-8, we fall back to iso-8859-1 for all other 317s # encodings. (See PR #3538) 317s try: 317s reason = self.reason.decode("utf-8") 317s except UnicodeDecodeError: 317s reason = self.reason.decode("iso-8859-1") 317s else: 317s reason = self.reason 317s 317s if 400 <= self.status_code < 500: 317s http_error_msg = ( 317s f"{self.status_code} Client Error: {reason} for url: {self.url}" 317s ) 317s 317s elif 500 <= self.status_code < 600: 317s http_error_msg = ( 317s f"{self.status_code} Server Error: {reason} for url: {self.url}" 317s ) 317s 317s if http_error_msg: 317s > raise HTTPError(http_error_msg, response=self) 317s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/1d4711b2-4091-48de-800e-7dab29fd96fe 317s 317s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 317s ----------------------------- Captured stderr call ----------------------------- 317s Traceback (most recent call last): 317s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 317s return _run_code(code, main_globals, None, 317s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 317s exec(code, run_globals) 317s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 317s from pathlib import Path 317s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 317s from glob import _StringGlobber, _no_recurse_symlinks 317s File "/usr/lib/python3.14/glob.py", line 3, in 317s import contextlib 317s File "", line 1371, in _find_and_load 317s File "", line 1342, in _find_and_load_unlocked 317s File "", line 938, in _load_unlocked 317s File "", line 755, in exec_module 317s File "", line 888, in get_code 317s File "", line 511, in _compile_bytecode 317s KeyboardInterrupt 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpy9_9w34c/runtime/kernel-1d4711b2-4091-48de-800e-7dab29fd96fe.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56011 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52267 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1d4711b2-4091-48de-800e-7dab29fd96fe, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.330000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.300000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpy9_9w34c/runtime/kernel-edc960cc-3223-4c56-b4ca-cb5f5f31ab84.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46999 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48481 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: edc960cc-3223-4c56-b4ca-cb5f5f31ab84, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.180000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.340000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: edc960cc-3223-4c56-b4ca-cb5f5f31ab84 317s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/edc960cc-3223-4c56-b4ca-cb5f5f31ab84/interrupt (127.0.0.1) 1.430000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 317s yield maybe_future(km.restart_kernel(kernel_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 317s raise self._exception.with_traceback(self._exception_tb) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 317s result = coro.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 317s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 317s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 317s yield self # This tells Task to wait for completion. 317s ^^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 317s future.result() 317s ~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 317s raise self._exception.with_traceback(self._exception_tb) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 317s await ensure_async(kernel.restart_kernel(now=now)) 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 317s await self._async_shutdown_kernel(now=now, restart=True) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/edc960cc-3223-4c56-b4ca-cb5f5f31ab84/restart (127.0.0.1) 5.150000ms referer=None 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.260000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1d4711b2-4091-48de-800e-7dab29fd96fe 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1d4711b2-4091-48de-800e-7dab29fd96fe 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 317s await kernel_awaitable 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/1d4711b2-4091-48de-800e-7dab29fd96fe (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/1d4711b2-4091-48de-800e-7dab29fd96fe', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 317s future.result() 317s ~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 317s yield maybe_future(km.shutdown_kernel(kernel_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 317s raise self._exception.with_traceback(self._exception_tb) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 317s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 317s raise km.ready.exception() # type: ignore[misc] 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 317s await kernel_awaitable 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/1d4711b2-4091-48de-800e-7dab29fd96fe (127.0.0.1) 8.270000ms referer=None 317s --------------------------- Captured stderr teardown --------------------------- 317s Traceback (most recent call last): 317s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 317s return _run_code(code, main_globals, None, 317s "__main__", mod_spec) 317s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 317s exec(code, run_globals) 317s ~~~~^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 317s from ipykernel import kernelapp as app 317s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 317s from .connect import * # noqa: F403 317s ^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 317s import jupyter_client 317s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 317s from .asynchronous import AsyncKernelClient 317s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 317s from .client import AsyncKernelClient # noqa 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 317s import zmq.asyncio 317s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 317s from zmq import backend 317s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 317s _ns = select_backend(first) 317s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 317s mod = import_module(name) 317s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 317s return _bootstrap._gcd_import(name[level:], package, level) 317s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 317s from . import _zmq 317s File "_zmq.py", line 157, in init zmq.backend.cython._zmq 317s File "", line 1371, in _find_and_load 317s File "", line 1333, in _find_and_load_unlocked 317s File "", line 1252, in _find_spec 317s KeyboardInterrupt 317s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 317s 317s @self.addCleanup 317s def cleanup_sessions(): 317s for session in self.sess_api.list().json(): 317s > self.sess_api.delete(session['id']) 317s 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 317s return self._req('DELETE', id) 317s ^^^^^^^^^^^^^^^^^^^^^^^ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 317s response.raise_for_status() 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s 317s self = 317s 317s def raise_for_status(self): 317s """Raises :class:`HTTPError`, if one occurred.""" 317s 317s http_error_msg = "" 317s if isinstance(self.reason, bytes): 317s # We attempt to decode utf-8 first because some servers 317s # choose to localize their reason strings. If the string 317s # isn't utf-8, we fall back to iso-8859-1 for all other 317s # encodings. (See PR #3538) 317s try: 317s reason = self.reason.decode("utf-8") 317s except UnicodeDecodeError: 317s reason = self.reason.decode("iso-8859-1") 317s else: 317s reason = self.reason 317s 317s if 400 <= self.status_code < 500: 317s http_error_msg = ( 317s f"{self.status_code} Client Error: {reason} for url: {self.url}" 317s ) 317s 317s elif 500 <= self.status_code < 600: 317s http_error_msg = ( 317s f"{self.status_code} Server Error: {reason} for url: {self.url}" 317s ) 317s 317s if http_error_msg: 317s > raise HTTPError(http_error_msg, response=self) 317s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8535045d-afca-4bc7-957b-33a0d2a46e02 317s 317s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppzg2lpvc/runtime/kernel-ae92268b-7219-48d0-afe1-d947309bc370.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47701 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36671 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: ae92268b-7219-48d0-afe1-d947309bc370, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 39.570000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.780000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.570000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.600000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 577fe908-9fe3-4c6a-adc0-bcd84e4ce68c 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 577fe908-9fe3-4c6a-adc0-bcd84e4ce68c 317s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/db38798f-ca71-486b-84eb-7bc94433e942 (127.0.0.1) 2.510000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ae92268b-7219-48d0-afe1-d947309bc370 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ae92268b-7219-48d0-afe1-d947309bc370 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8535045d-afca-4bc7-957b-33a0d2a46e02 (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8535045d-afca-4bc7-957b-33a0d2a46e02', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 317s yield maybe_future(sm.delete_session(session_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 317s yielded = self.gen.send(value) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 317s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 317s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 317s stopper = ensure_async(km.shutdown_kernel(now, restart)) 317s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/8535045d-afca-4bc7-957b-33a0d2a46e02 (127.0.0.1) 10.620000ms referer=None 317s __________ ERROR at teardown of SessionAPITest.test_modify_kernel_id ___________ 317s 317s @self.addCleanup 317s def cleanup_sessions(): 317s for session in self.sess_api.list().json(): 317s > self.sess_api.delete(session['id']) 317s 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 317s return self._req('DELETE', id) 317s ^^^^^^^^^^^^^^^^^^^^^^^ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 317s response.raise_for_status() 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s 317s self = 317s 317s def raise_for_status(self): 317s """Raises :class:`HTTPError`, if one occurred.""" 317s 317s http_error_msg = "" 317s if isinstance(self.reason, bytes): 317s # We attempt to decode utf-8 first because some servers 317s # choose to localize their reason strings. If the string 317s # isn't utf-8, we fall back to iso-8859-1 for all other 317s # encodings. (See PR #3538) 317s try: 317s reason = self.reason.decode("utf-8") 317s except UnicodeDecodeError: 317s reason = self.reason.decode("iso-8859-1") 317s else: 317s reason = self.reason 317s 317s if 400 <= self.status_code < 500: 317s http_error_msg = ( 317s f"{self.status_code} Client Error: {reason} for url: {self.url}" 317s ) 317s 317s elif 500 <= self.status_code < 600: 317s http_error_msg = ( 317s f"{self.status_code} Server Error: {reason} for url: {self.url}" 317s ) 317s 317s if http_error_msg: 317s > raise HTTPError(http_error_msg, response=self) 317s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/bc62cd86-da4d-445d-9673-d605405fc8d7 317s 317s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppzg2lpvc/runtime/kernel-56b86f1d-44ae-492a-84eb-828fbcc8a067.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33547 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48277 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: 56b86f1d-44ae-492a-84eb-828fbcc8a067, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmppzg2lpvc/notebooks/foo'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 22.070000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppzg2lpvc/runtime/kernel-a9a1d29f-7ee9-4f1e-be62-efa0aee3ec22.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42891 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53269 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: a9a1d29f-7ee9-4f1e-be62-efa0aee3ec22, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 23.150000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 56b86f1d-44ae-492a-84eb-828fbcc8a067 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 56b86f1d-44ae-492a-84eb-828fbcc8a067 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/bc62cd86-da4d-445d-9673-d605405fc8d7 (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/bc62cd86-da4d-445d-9673-d605405fc8d7', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 317s yielded = self.gen.send(value) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 154, in patch 317s km.shutdown_kernel(before['kernel']['id']) 317s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 317s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 317s stopper = ensure_async(km.shutdown_kernel(now, restart)) 317s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/bc62cd86-da4d-445d-9673-d605405fc8d7 (127.0.0.1) 15.560000ms referer=None 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.610000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a9a1d29f-7ee9-4f1e-be62-efa0aee3ec22 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a9a1d29f-7ee9-4f1e-be62-efa0aee3ec22 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/bc62cd86-da4d-445d-9673-d605405fc8d7 (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/bc62cd86-da4d-445d-9673-d605405fc8d7', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 317s yield maybe_future(sm.delete_session(session_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 317s yielded = self.gen.send(value) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 317s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 317s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 317s stopper = ensure_async(km.shutdown_kernel(now, restart)) 317s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/bc62cd86-da4d-445d-9673-d605405fc8d7 (127.0.0.1) 10.990000ms referer=None 317s _________ ERROR at teardown of SessionAPITest.test_modify_kernel_name __________ 317s 317s @self.addCleanup 317s def cleanup_sessions(): 317s for session in self.sess_api.list().json(): 317s > self.sess_api.delete(session['id']) 317s 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 317s return self._req('DELETE', id) 317s ^^^^^^^^^^^^^^^^^^^^^^^ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 317s response.raise_for_status() 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s 317s self = 317s 317s def raise_for_status(self): 317s """Raises :class:`HTTPError`, if one occurred.""" 317s 317s http_error_msg = "" 317s if isinstance(self.reason, bytes): 317s # We attempt to decode utf-8 first because some servers 317s # choose to localize their reason strings. If the string 317s # isn't utf-8, we fall back to iso-8859-1 for all other 317s # encodings. (See PR #3538) 317s try: 317s reason = self.reason.decode("utf-8") 317s except UnicodeDecodeError: 317s reason = self.reason.decode("iso-8859-1") 317s else: 317s reason = self.reason 317s 317s if 400 <= self.status_code < 500: 317s http_error_msg = ( 317s f"{self.status_code} Client Error: {reason} for url: {self.url}" 317s ) 317s 317s elif 500 <= self.status_code < 600: 317s http_error_msg = ( 317s f"{self.status_code} Server Error: {reason} for url: {self.url}" 317s ) 317s 317s if http_error_msg: 317s > raise HTTPError(http_error_msg, response=self) 317s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/bc62cd86-da4d-445d-9673-d605405fc8d7 317s 317s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 317s ---------------------------- Captured stderr setup ----------------------------- 317s Traceback (most recent call last): 317s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 317s return _run_code(code, main_globals, None, 317s "__main__", mod_spec) 317s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 317s exec(code, run_globals) 317s ~~~~^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 317s from pathlib import Path 317s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 317s from glob import _StringGlobber, _no_recurse_symlinks 317s File "/usr/lib/python3.14/glob.py", line 5, in 317s import re 317s File "", line 1371, in _find_and_load 317s File "", line 1342, in _find_and_load_unlocked 317s File "", line 938, in _load_unlocked 317s File "", line 755, in exec_module 317s File "", line 851, in get_code 317s File "", line 950, in get_data 317s KeyboardInterrupt 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.800000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppzg2lpvc/runtime/kernel-7aa5d918-100d-4915-9889-5938d41a941f.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58629 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43649 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7aa5d918-100d-4915-9889-5938d41a941f, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmppzg2lpvc/notebooks/foo'} 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a9a1d29f-7ee9-4f1e-be62-efa0aee3ec22 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a9a1d29f-7ee9-4f1e-be62-efa0aee3ec22 317s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/bc62cd86-da4d-445d-9673-d605405fc8d7 (127.0.0.1) 22.600000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.580000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.490000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7aa5d918-100d-4915-9889-5938d41a941f 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7aa5d918-100d-4915-9889-5938d41a941f 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/bc62cd86-da4d-445d-9673-d605405fc8d7 (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/bc62cd86-da4d-445d-9673-d605405fc8d7', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 317s yield maybe_future(sm.delete_session(session_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 317s yielded = self.gen.send(value) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 317s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 317s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 317s stopper = ensure_async(km.shutdown_kernel(now, restart)) 317s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/bc62cd86-da4d-445d-9673-d605405fc8d7 (127.0.0.1) 10.570000ms referer=None 317s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 317s 317s @self.addCleanup 317s def cleanup_sessions(): 317s for session in self.sess_api.list().json(): 317s > self.sess_api.delete(session['id']) 317s 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 317s return self._req('DELETE', id) 317s ^^^^^^^^^^^^^^^^^^^^^^^ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 317s response.raise_for_status() 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s 317s self = 317s 317s def raise_for_status(self): 317s """Raises :class:`HTTPError`, if one occurred.""" 317s 317s http_error_msg = "" 317s if isinstance(self.reason, bytes): 317s # We attempt to decode utf-8 first because some servers 317s # choose to localize their reason strings. If the string 317s # isn't utf-8, we fall back to iso-8859-1 for all other 317s # encodings. (See PR #3538) 317s try: 317s reason = self.reason.decode("utf-8") 317s except UnicodeDecodeError: 317s reason = self.reason.decode("iso-8859-1") 317s else: 317s reason = self.reason 317s 317s if 400 <= self.status_code < 500: 317s http_error_msg = ( 317s f"{self.status_code} Client Error: {reason} for url: {self.url}" 317s ) 317s 317s elif 500 <= self.status_code < 600: 317s http_error_msg = ( 317s f"{self.status_code} Server Error: {reason} for url: {self.url}" 317s ) 317s 317s if http_error_msg: 317s > raise HTTPError(http_error_msg, response=self) 317s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b47572d7-8acf-40e8-a75a-742219a5a025 317s 317s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_4notggd/runtime/kernel-5933c553-b341-4732-9a8e-9ad71f61f3cb.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42371 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60875 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5933c553-b341-4732-9a8e-9ad71f61f3cb, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.720000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.700000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.520000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.590000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0ea19926-8667-441a-86e4-7db2be666442 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0ea19926-8667-441a-86e4-7db2be666442 317s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/6ebcac08-643f-44ba-9d4c-5f3949aebcc2 (127.0.0.1) 1.860000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5933c553-b341-4732-9a8e-9ad71f61f3cb 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5933c553-b341-4732-9a8e-9ad71f61f3cb 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 317s await kernel_awaitable 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b47572d7-8acf-40e8-a75a-742219a5a025 (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b47572d7-8acf-40e8-a75a-742219a5a025', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 317s future.result() 317s ~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 317s yield maybe_future(sm.delete_session(session_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 317s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 317s raise self._exception.with_traceback(self._exception_tb) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 317s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 317s raise km.ready.exception() # type: ignore[misc] 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 317s await kernel_awaitable 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b47572d7-8acf-40e8-a75a-742219a5a025 (127.0.0.1) 9.410000ms referer=None 317s ________ ERROR at teardown of AsyncSessionAPITest.test_modify_kernel_id ________ 317s 317s @self.addCleanup 317s def cleanup_sessions(): 317s for session in self.sess_api.list().json(): 317s > self.sess_api.delete(session['id']) 317s 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 317s return self._req('DELETE', id) 317s ^^^^^^^^^^^^^^^^^^^^^^^ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 317s response.raise_for_status() 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s 317s self = 317s 317s def raise_for_status(self): 317s """Raises :class:`HTTPError`, if one occurred.""" 317s 317s http_error_msg = "" 317s if isinstance(self.reason, bytes): 317s # We attempt to decode utf-8 first because some servers 317s # choose to localize their reason strings. If the string 317s # isn't utf-8, we fall back to iso-8859-1 for all other 317s # encodings. (See PR #3538) 317s try: 317s reason = self.reason.decode("utf-8") 317s except UnicodeDecodeError: 317s reason = self.reason.decode("iso-8859-1") 317s else: 317s reason = self.reason 317s 317s if 400 <= self.status_code < 500: 317s http_error_msg = ( 317s f"{self.status_code} Client Error: {reason} for url: {self.url}" 317s ) 317s 317s elif 500 <= self.status_code < 600: 317s http_error_msg = ( 317s f"{self.status_code} Server Error: {reason} for url: {self.url}" 317s ) 317s 317s if http_error_msg: 317s > raise HTTPError(http_error_msg, response=self) 317s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/16b73333-b978-4f16-bba2-428c1e291e9e 317s 317s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 317s ----------------------------- Captured stderr call ----------------------------- 317s Traceback (most recent call last): 317s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 317s return _run_code(code, main_globals, None, 317s "__main__", mod_spec) 317s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 317s exec(code, run_globals) 317s ~~~~^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 317s from ipykernel import kernelapp as app 317s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 317s from .connect import * # noqa: F403 317s ^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 317s from subprocess import PIPE, Popen 317s File "/usr/lib/python3.14/subprocess.py", line 49, in 317s import signal 317s File "/usr/lib/python3.14/signal.py", line 14, in 317s _IntEnum._convert_( 317s ~~~~~~~~~~~~~~~~~~^ 317s 'Handlers', __name__, 317s ^^^^^^^^^^^^^^^^^^^^^ 317s lambda name: name in ('SIG_DFL', 'SIG_IGN')) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3.14/enum.py", line 909, in _convert_ 317s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 317s ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3.14/enum.py", line 1723, in _simple_enum 317s def _simple_enum(etype=Enum, *, boundary=None, use_args=None): 317s 317s KeyboardInterrupt 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_4notggd/runtime/kernel-aec77b88-461f-4042-8361-67ab1b5f287c.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52981 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38543 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: aec77b88-461f-4042-8361-67ab1b5f287c, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_4notggd/notebooks/foo'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 18.950000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_4notggd/runtime/kernel-0b0bb80a-6660-44ec-98f4-942ac9284935.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49123 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33795 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0b0bb80a-6660-44ec-98f4-942ac9284935, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.420000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for aec77b88-461f-4042-8361-67ab1b5f287c 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: aec77b88-461f-4042-8361-67ab1b5f287c 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 317s await kernel_awaitable 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/16b73333-b978-4f16-bba2-428c1e291e9e (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/16b73333-b978-4f16-bba2-428c1e291e9e', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 317s future.result() 317s ~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 153, in patch 317s yield maybe_future( 317s km.shutdown_kernel(before['kernel']['id']) 317s ) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 317s raise self._exception.with_traceback(self._exception_tb) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 317s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 317s raise km.ready.exception() # type: ignore[misc] 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 317s await kernel_awaitable 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/16b73333-b978-4f16-bba2-428c1e291e9e (127.0.0.1) 9.320000ms referer=None 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.430000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0b0bb80a-6660-44ec-98f4-942ac9284935 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0b0bb80a-6660-44ec-98f4-942ac9284935 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 317s await kernel_awaitable 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/16b73333-b978-4f16-bba2-428c1e291e9e (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/16b73333-b978-4f16-bba2-428c1e291e9e', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 317s future.result() 317s ~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 317s yield maybe_future(sm.delete_session(session_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 317s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 317s raise self._exception.with_traceback(self._exception_tb) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 317s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 317s raise km.ready.exception() # type: ignore[misc] 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 317s await kernel_awaitable 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/16b73333-b978-4f16-bba2-428c1e291e9e (127.0.0.1) 9.240000ms referer=None 317s --------------------------- Captured stderr teardown --------------------------- 317s Traceback (most recent call last): 317s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 317s return _run_code(code, main_globals, None, 317s "__main__", mod_spec) 317s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 317s exec(code, run_globals) 317s ~~~~^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 317s from ipykernel import kernelapp as app 317s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 317s from .connect import * # noqa: F403 317s ^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 317s import json 317s File "/usr/lib/python3.14/json/__init__.py", line 106, in 317s from .decoder import JSONDecoder, JSONDecodeError 317s File "/usr/lib/python3.14/json/decoder.py", line 53, in 317s HEXDIGITS = re.compile(r'[0-9A-Fa-f]{4}', FLAGS) 317s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 317s return _compile(pattern, flags) 317s File "/usr/lib/python3.14/re/__init__.py", line 333, in _compile 317s flags = flags.value 317s ^^^^^^^^^^^ 317s File "/usr/lib/python3.14/enum.py", line 186, in __get__ 317s def __get__(self, instance, ownerclass=None): 317s 317s KeyboardInterrupt 317s _______ ERROR at teardown of AsyncSessionAPITest.test_modify_kernel_name _______ 317s 317s @self.addCleanup 317s def cleanup_sessions(): 317s for session in self.sess_api.list().json(): 317s > self.sess_api.delete(session['id']) 317s 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 317s return self._req('DELETE', id) 317s ^^^^^^^^^^^^^^^^^^^^^^^ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 317s response.raise_for_status() 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s 317s self = 317s 317s def raise_for_status(self): 317s """Raises :class:`HTTPError`, if one occurred.""" 317s 317s http_error_msg = "" 317s if isinstance(self.reason, bytes): 317s # We attempt to decode utf-8 first because some servers 317s # choose to localize their reason strings. If the string 317s # isn't utf-8, we fall back to iso-8859-1 for all other 317s # encodings. (See PR #3538) 317s try: 317s reason = self.reason.decode("utf-8") 317s except UnicodeDecodeError: 317s reason = self.reason.decode("iso-8859-1") 317s else: 317s reason = self.reason 317s 317s if 400 <= self.status_code < 500: 317s http_error_msg = ( 317s f"{self.status_code} Client Error: {reason} for url: {self.url}" 317s ) 317s 317s elif 500 <= self.status_code < 600: 317s http_error_msg = ( 317s f"{self.status_code} Server Error: {reason} for url: {self.url}" 317s ) 317s 317s if http_error_msg: 317s > raise HTTPError(http_error_msg, response=self) 317s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/16b73333-b978-4f16-bba2-428c1e291e9e 317s 317s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.690000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_4notggd/runtime/kernel-d565ff0a-bab3-4118-95a5-3ff69fe8aa51.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54503 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40161 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: d565ff0a-bab3-4118-95a5-3ff69fe8aa51, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp_4notggd/notebooks/foo'} 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0b0bb80a-6660-44ec-98f4-942ac9284935 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0b0bb80a-6660-44ec-98f4-942ac9284935 317s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/16b73333-b978-4f16-bba2-428c1e291e9e (127.0.0.1) 19.790000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.330000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.460000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d565ff0a-bab3-4118-95a5-3ff69fe8aa51 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d565ff0a-bab3-4118-95a5-3ff69fe8aa51 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 317s await kernel_awaitable 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/16b73333-b978-4f16-bba2-428c1e291e9e (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/16b73333-b978-4f16-bba2-428c1e291e9e', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 317s future.result() 317s ~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 317s yield maybe_future(sm.delete_session(session_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 317s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 317s raise self._exception.with_traceback(self._exception_tb) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 317s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 317s raise km.ready.exception() # type: ignore[misc] 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 317s await kernel_awaitable 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/16b73333-b978-4f16-bba2-428c1e291e9e (127.0.0.1) 9.520000ms referer=None 317s =================================== FAILURES =================================== 317s ______________________ KernelAPITest.test_default_kernel _______________________ 317s 317s self = 317s 317s def tearDown(self): 317s for k in self.kern_api.list().json(): 317s > self.kern_api.shutdown(k['id']) 317s 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 317s return self._req('DELETE', id) 317s ^^^^^^^^^^^^^^^^^^^^^^^ 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 317s response.raise_for_status() 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s 317s self = 317s 317s def raise_for_status(self): 317s """Raises :class:`HTTPError`, if one occurred.""" 317s 317s http_error_msg = "" 317s if isinstance(self.reason, bytes): 317s # We attempt to decode utf-8 first because some servers 317s # choose to localize their reason strings. If the string 317s # isn't utf-8, we fall back to iso-8859-1 for all other 317s # encodings. (See PR #3538) 317s try: 317s reason = self.reason.decode("utf-8") 317s except UnicodeDecodeError: 317s reason = self.reason.decode("iso-8859-1") 317s else: 317s reason = self.reason 317s 317s if 400 <= self.status_code < 500: 317s http_error_msg = ( 317s f"{self.status_code} Client Error: {reason} for url: {self.url}" 317s ) 317s 317s elif 500 <= self.status_code < 600: 317s http_error_msg = ( 317s f"{self.status_code} Server Error: {reason} for url: {self.url}" 317s ) 317s 317s if http_error_msg: 317s > raise HTTPError(http_error_msg, response=self) 317s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/0f36cef8-f1e7-4004-9d30-d7767588ee88 317s 317s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 317s ------------------------------ Captured log setup ------------------------------ 317s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpggx0ujld/config', '/tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpggx0ujld/etc/jupyter'] for config files 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpggx0ujld/etc/jupyter 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpggx0ujld/config 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpggx0ujld/etc/jupyter 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpggx0ujld/config 317s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpggx0ujld/notebooks 317s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 317s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 317s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 317s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 317s WARNING NotebookApp:handlers.py:612 Forbidden 317s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (127.0.0.1) 1.120000ms referer=None 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpggx0ujld/runtime/kernel-0f36cef8-f1e7-4004-9d30-d7767588ee88.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59877 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48349 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0f36cef8-f1e7-4004-9d30-d7767588ee88, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 71.880000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.540000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0f36cef8-f1e7-4004-9d30-d7767588ee88 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0f36cef8-f1e7-4004-9d30-d7767588ee88 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/0f36cef8-f1e7-4004-9d30-d7767588ee88 (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/0f36cef8-f1e7-4004-9d30-d7767588ee88', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 317s yielded = ctx_run(next, result) 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 317s yield maybe_future(km.shutdown_kernel(kernel_id)) 317s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 317s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 317s stopper = ensure_async(km.shutdown_kernel(now, restart)) 317s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/0f36cef8-f1e7-4004-9d30-d7767588ee88 (127.0.0.1) 13.380000ms referer=None 317s --------------------------- Captured stderr teardown --------------------------- 317s Traceback (most recent call last): 317s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 317s return _run_code(code, main_globals, None, 317s "__main__", mod_spec) 317s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 317s exec(code, run_globals) 317s ~~~~^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 317s from pathlib import Path 317s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 317s from glob import _StringGlobber, _no_recurse_symlinks 317s File "/usr/lib/python3.14/glob.py", line 5, in 317s import re 317s File "/usr/lib/python3.14/re/__init__.py", line 125, in 317s import enum 317s File "", line 1371, in _find_and_load 317s File "", line 1342, in _find_and_load_unlocked 317s File "", line 938, in _load_unlocked 317s File "", line 755, in exec_module 317s File "", line 888, in get_code 317s File "", line 511, in _compile_bytecode 317s KeyboardInterrupt 317s ______________________ KernelAPITest.test_kernel_handler _______________________ 317s 317s self = 317s 317s def test_kernel_handler(self): 317s # GET kernel with given id 317s kid = self.kern_api.start().json()['id'] 317s r = self.kern_api.get(kid) 317s kern1 = r.json() 317s self.assertEqual(r.status_code, 200) 317s assert isinstance(kern1, dict) 317s self.assertIn('id', kern1) 317s self.assertEqual(kern1['id'], kid) 317s 317s # Request a bad kernel id and check that a JSON 317s # message is returned! 317s bad_id = '111-111-111-111-111' 317s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 317s self.kern_api.get(bad_id) 317s 317s # DELETE kernel with id 317s > r = self.kern_api.shutdown(kid) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 317s return self._req('DELETE', id) 317s ^^^^^^^^^^^^^^^^^^^^^^^ 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 317s response.raise_for_status() 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s 317s self = 317s 317s def raise_for_status(self): 317s """Raises :class:`HTTPError`, if one occurred.""" 317s 317s http_error_msg = "" 317s if isinstance(self.reason, bytes): 317s # We attempt to decode utf-8 first because some servers 317s # choose to localize their reason strings. If the string 317s # isn't utf-8, we fall back to iso-8859-1 for all other 317s # encodings. (See PR #3538) 317s try: 317s reason = self.reason.decode("utf-8") 317s except UnicodeDecodeError: 317s reason = self.reason.decode("iso-8859-1") 317s else: 317s reason = self.reason 317s 317s if 400 <= self.status_code < 500: 317s http_error_msg = ( 317s f"{self.status_code} Client Error: {reason} for url: {self.url}" 317s ) 317s 317s elif 500 <= self.status_code < 600: 317s http_error_msg = ( 317s f"{self.status_code} Server Error: {reason} for url: {self.url}" 317s ) 317s 317s if http_error_msg: 317s > raise HTTPError(http_error_msg, response=self) 317s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/b1031458-b532-4b2a-b058-a88c713a138e 317s 317s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpggx0ujld/runtime/kernel-b1031458-b532-4b2a-b058-a88c713a138e.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45505 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57513 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: b1031458-b532-4b2a-b058-a88c713a138e, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 21.180000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/b1031458-b532-4b2a-b058-a88c713a138e (127.0.0.1) 3.540000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (127.0.0.1): Kernel does not exist: 111-111-111-111-111 317s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 317s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (127.0.0.1) 1.460000ms referer=None 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b1031458-b532-4b2a-b058-a88c713a138e 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b1031458-b532-4b2a-b058-a88c713a138e 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/b1031458-b532-4b2a-b058-a88c713a138e (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/b1031458-b532-4b2a-b058-a88c713a138e', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 317s yielded = ctx_run(next, result) 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 317s yield maybe_future(km.shutdown_kernel(kernel_id)) 317s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 317s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 317s stopper = ensure_async(km.shutdown_kernel(now, restart)) 317s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/b1031458-b532-4b2a-b058-a88c713a138e (127.0.0.1) 10.080000ms referer=None 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.570000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0f36cef8-f1e7-4004-9d30-d7767588ee88 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0f36cef8-f1e7-4004-9d30-d7767588ee88 317s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/0f36cef8-f1e7-4004-9d30-d7767588ee88 (127.0.0.1) 2.220000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b1031458-b532-4b2a-b058-a88c713a138e 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b1031458-b532-4b2a-b058-a88c713a138e 317s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/b1031458-b532-4b2a-b058-a88c713a138e (127.0.0.1) 2.100000ms 317s --------------------------- Captured stderr teardown --------------------------- 317s Traceback (most recent call last): 317s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 317s return _run_code(code, main_globals, None, 317s "__main__", mod_spec) 317s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 317s exec(code, run_globals) 317s ~~~~^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 317s from pathlib import Path 317s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 317s from glob import _StringGlobber, _no_recurse_symlinks 317s File "/usr/lib/python3.14/glob.py", line 5, in 317s import re 317s File "/usr/lib/python3.14/re/__init__.py", line 126, in 317s from . import _compiler, _parser 317s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 317s from . import _parser 317s File "/usr/lib/python3.14/re/_parser.py", line 15, in 317s from ._constants import * 317s File "", line 1371, in _find_and_load 317s File "", line 1342, in _find_and_load_unlocked 317s File "", line 938, in _load_unlocked 317s File "", line 755, in exec_module 317s File "", line 888, in get_code 317s File "", line 511, in _compile_bytecode 317s KeyboardInterrupt 317s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 317s 317s self = 317s 317s def test_main_kernel_handler(self): 317s # POST request 317s r = self.kern_api.start() 317s kern1 = r.json() 317s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 317s self.assertEqual(r.status_code, 201) 317s self.assertIsInstance(kern1, dict) 317s 317s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 317s expected_csp = '; '.join([ 317s "frame-ancestors 'self'", 317s 'report-uri ' + report_uri, 317s "default-src 'none'" 317s ]) 317s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 317s 317s # GET request 317s r = self.kern_api.list() 317s self.assertEqual(r.status_code, 200) 317s assert isinstance(r.json(), list) 317s self.assertEqual(r.json()[0]['id'], kern1['id']) 317s self.assertEqual(r.json()[0]['name'], kern1['name']) 317s 317s # create another kernel and check that they both are added to the 317s # list of kernels from a GET request 317s kern2 = self.kern_api.start().json() 317s assert isinstance(kern2, dict) 317s r = self.kern_api.list() 317s kernels = r.json() 317s self.assertEqual(r.status_code, 200) 317s assert isinstance(kernels, list) 317s self.assertEqual(len(kernels), 2) 317s 317s # Interrupt a kernel 317s r = self.kern_api.interrupt(kern2['id']) 317s self.assertEqual(r.status_code, 204) 317s 317s # Restart a kernel 317s > r = self.kern_api.restart(kern2['id']) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 317s return self._req('POST', url_path_join(id, 'restart')) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 317s response.raise_for_status() 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s 317s self = 317s 317s def raise_for_status(self): 317s """Raises :class:`HTTPError`, if one occurred.""" 317s 317s http_error_msg = "" 317s if isinstance(self.reason, bytes): 317s # We attempt to decode utf-8 first because some servers 317s # choose to localize their reason strings. If the string 317s # isn't utf-8, we fall back to iso-8859-1 for all other 317s # encodings. (See PR #3538) 317s try: 317s reason = self.reason.decode("utf-8") 317s except UnicodeDecodeError: 317s reason = self.reason.decode("iso-8859-1") 317s else: 317s reason = self.reason 317s 317s if 400 <= self.status_code < 500: 317s http_error_msg = ( 317s f"{self.status_code} Client Error: {reason} for url: {self.url}" 317s ) 317s 317s elif 500 <= self.status_code < 600: 317s http_error_msg = ( 317s f"{self.status_code} Server Error: {reason} for url: {self.url}" 317s ) 317s 317s if http_error_msg: 317s > raise HTTPError(http_error_msg, response=self) 317s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/45ae6981-87e9-4205-9f97-f9b859523ba9/restart 317s 317s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 317s ----------------------------- Captured stderr call ----------------------------- 317s Traceback (most recent call last): 317s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 317s return _run_code(code, main_globals, None, 317s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 317s exec(code, run_globals) 317s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 317s from pathlib import Path 317s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 317s from glob import _StringGlobber, _no_recurse_symlinks 317s File "/usr/lib/python3.14/glob.py", line 3, in 317s import contextlib 317s File "/usr/lib/python3.14/contextlib.py", line 6, in 317s from collections import deque 317s File "/usr/lib/python3.14/collections/__init__.py", line 80, in 317s class _OrderedDictValuesView(_collections_abc.ValuesView): 317s File "/usr/lib/python3.14/abc.py", line 106, in __new__ 317s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 317s KeyboardInterrupt 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpggx0ujld/runtime/kernel-94530ad1-859f-4dfb-a5b6-4c4388484814.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47211 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42809 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: 94530ad1-859f-4dfb-a5b6-4c4388484814, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 20.490000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.530000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpggx0ujld/runtime/kernel-45ae6981-87e9-4205-9f97-f9b859523ba9.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54855 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47265 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: 45ae6981-87e9-4205-9f97-f9b859523ba9, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 20.760000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.540000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 45ae6981-87e9-4205-9f97-f9b859523ba9 317s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/45ae6981-87e9-4205-9f97-f9b859523ba9/interrupt (127.0.0.1) 2.310000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 317s yield maybe_future(km.restart_kernel(kernel_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 317s raise self._exception.with_traceback(self._exception_tb) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 317s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 317s await ensure_async(kernel.restart_kernel(now=now)) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 317s await self._async_shutdown_kernel(now=now, restart=True) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/45ae6981-87e9-4205-9f97-f9b859523ba9/restart (127.0.0.1) 7.620000ms referer=None 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.620000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 94530ad1-859f-4dfb-a5b6-4c4388484814 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 94530ad1-859f-4dfb-a5b6-4c4388484814 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/94530ad1-859f-4dfb-a5b6-4c4388484814 (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/94530ad1-859f-4dfb-a5b6-4c4388484814', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 317s yielded = ctx_run(next, result) 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 317s yield maybe_future(km.shutdown_kernel(kernel_id)) 317s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 317s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 317s stopper = ensure_async(km.shutdown_kernel(now, restart)) 317s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/94530ad1-859f-4dfb-a5b6-4c4388484814 (127.0.0.1) 10.730000ms referer=None 317s ________________________ KernelAPITest.test_no_kernels _________________________ 317s 317s self = 317s 317s def test_no_kernels(self): 317s """Make sure there are no kernels running at the start""" 317s kernels = self.kern_api.list().json() 317s > self.assertEqual(kernels, []) 317s E AssertionError: Lists differ: [{'id': '94530ad1-859f-4dfb-a5b6-4c4388484[281 chars]: 0}] != [] 317s E 317s E First list contains 2 additional elements. 317s E First extra element 0: 317s E {'id': '94530ad1-859f-4dfb-a5b6-4c4388484814', 'name': 'python3', 'last_activity': '2026-01-22T18:28:11.098591Z', 'execution_state': 'starting', 'connections': 0} 317s E 317s E + [] 317s E - [{'connections': 0, 317s E - 'execution_state': 'starting', 317s E - 'id': '94530ad1-859f-4dfb-a5b6-4c4388484814', 317s E - 'last_activity': '2026-01-22T18:28:11.098591Z', 317s E - 'name': 'python3'}, 317s E - {'connections': 0, 317s E - 'execution_state': 'starting', 317s E - 'id': '45ae6981-87e9-4205-9f97-f9b859523ba9', 317s E - 'last_activity': '2026-01-22T18:28:11.128552Z', 317s E - 'name': 'python3'}] 317s 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.510000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.420000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 94530ad1-859f-4dfb-a5b6-4c4388484814 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 94530ad1-859f-4dfb-a5b6-4c4388484814 317s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/94530ad1-859f-4dfb-a5b6-4c4388484814 (127.0.0.1) 2.250000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 45ae6981-87e9-4205-9f97-f9b859523ba9 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 45ae6981-87e9-4205-9f97-f9b859523ba9 317s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/45ae6981-87e9-4205-9f97-f9b859523ba9 (127.0.0.1) 2.370000ms 317s ---------------------------- Captured log teardown ----------------------------- 317s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 317s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 317s _____________________ AsyncKernelAPITest.test_connections ______________________ 317s 317s self = 317s 317s def tearDown(self): 317s for k in self.kern_api.list().json(): 317s > self.kern_api.shutdown(k['id']) 317s 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 317s return self._req('DELETE', id) 317s ^^^^^^^^^^^^^^^^^^^^^^^ 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 317s response.raise_for_status() 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s 317s self = 317s 317s def raise_for_status(self): 317s """Raises :class:`HTTPError`, if one occurred.""" 317s 317s http_error_msg = "" 317s if isinstance(self.reason, bytes): 317s # We attempt to decode utf-8 first because some servers 317s # choose to localize their reason strings. If the string 317s # isn't utf-8, we fall back to iso-8859-1 for all other 317s # encodings. (See PR #3538) 317s try: 317s reason = self.reason.decode("utf-8") 317s except UnicodeDecodeError: 317s reason = self.reason.decode("iso-8859-1") 317s else: 317s reason = self.reason 317s 317s if 400 <= self.status_code < 500: 317s http_error_msg = ( 317s f"{self.status_code} Client Error: {reason} for url: {self.url}" 317s ) 317s 317s elif 500 <= self.status_code < 600: 317s http_error_msg = ( 317s f"{self.status_code} Server Error: {reason} for url: {self.url}" 317s ) 317s 317s if http_error_msg: 317s > raise HTTPError(http_error_msg, response=self) 317s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f 317s 317s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 317s ------------------------------ Captured log setup ------------------------------ 317s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpy9_9w34c/config', '/tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpy9_9w34c/etc/jupyter'] for config files 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpy9_9w34c/etc/jupyter 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpy9_9w34c/config 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpy9_9w34c/etc/jupyter 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpy9_9w34c/config 317s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpy9_9w34c/notebooks 317s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 317s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 317s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 317s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 317s WARNING NotebookApp:handlers.py:612 Forbidden 317s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (127.0.0.1) 2.090000ms referer=None 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpy9_9w34c/runtime/kernel-4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34757 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45771 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 19.940000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f (127.0.0.1) 1.510000ms 317s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f/channels 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 317s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60595 317s DEBUG NotebookApp:kernelmanager.py:423 activity on 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f: status (starting) 317s DEBUG NotebookApp:kernelmanager.py:423 activity on 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f: status (busy) 317s DEBUG NotebookApp:handlers.py:306 Received kernel info: {'status': 'ok', 'protocol_version': '5.3', 'implementation': 'ipython', 'implementation_version': '8.35.0', 'language_info': {'name': 'python', 'version': '3.14.2', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.14.2 (main, Dec 6 2025, 13:20:08) [GCC 15.2.0]\nType 'copyright', 'credits' or 'license' for more information\nIPython 8.35.0 -- An enhanced Interactive Python. Type '?' for help.\n", 'help_links': [{'text': 'Python Reference', 'url': 'https://docs.python.org/3.14'}, {'text': 'IPython Reference', 'url': 'https://ipython.org/documentation.html'}, {'text': 'NumPy Reference', 'url': 'https://docs.scipy.org/doc/numpy/reference/'}, {'text': 'SciPy Reference', 'url': 'https://docs.scipy.org/doc/scipy/reference/'}, {'text': 'Matplotlib Reference', 'url': 'https://matplotlib.org/contents.html'}, {'text': 'SymPy Reference', 'url': 'http://docs.sympy.org/latest/index.html'}, {'text': 'pandas Reference', 'url': 'https://pandas.pydata.org/pandas-docs/stable/'}]} 317s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f) to 5.4 (client). 317s DEBUG NotebookApp:kernelmanager.py:423 activity on 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f: status (idle) 317s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f/channels (127.0.0.1) 904.400000ms 317s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f/channels 317s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45771 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60595 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34757 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55681 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60595 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34757 317s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 317s Setting websocket_ping_timeout=30000 317s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f (127.0.0.1) 1.440000ms 317s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f 317s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f 317s DEBUG NotebookApp:kernelmanager.py:423 activity on 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f: status (busy) 317s DEBUG NotebookApp:kernelmanager.py:423 activity on 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f: status (busy) 317s DEBUG NotebookApp:kernelmanager.py:423 activity on 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f: status (idle) 317s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f 317s DEBUG NotebookApp:handlers.py:203 Nudge: resolving control future: 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f 317s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f 317s DEBUG NotebookApp:kernelmanager.py:423 activity on 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f: status (idle) 317s DEBUG NotebookApp:handlers.py:579 Websocket closed 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f:1b9d2e7a-26561bac632a0c8bb85904c9 317s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f:1b9d2e7a-26561bac632a0c8bb85904c9 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f 317s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f:iopub 317s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f:iopub 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f:iopub 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f (127.0.0.1) 1.780000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f (127.0.0.1) 1.460000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.460000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f 317s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f:1b9d2e7a-26561bac632a0c8bb85904c9 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 317s await kernel_awaitable 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 317s future.result() 317s ~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 317s yield maybe_future(km.shutdown_kernel(kernel_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 317s raise self._exception.with_traceback(self._exception_tb) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 317s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 317s raise km.ready.exception() # type: ignore[misc] 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 317s await kernel_awaitable 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f (127.0.0.1) 9.650000ms referer=None 317s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 317s 317s self = 317s 317s def tearDown(self): 317s for k in self.kern_api.list().json(): 317s > self.kern_api.shutdown(k['id']) 317s 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 317s return self._req('DELETE', id) 317s ^^^^^^^^^^^^^^^^^^^^^^^ 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 317s response.raise_for_status() 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s 317s self = 317s 317s def raise_for_status(self): 317s """Raises :class:`HTTPError`, if one occurred.""" 317s 317s http_error_msg = "" 317s if isinstance(self.reason, bytes): 317s # We attempt to decode utf-8 first because some servers 317s # choose to localize their reason strings. If the string 317s # isn't utf-8, we fall back to iso-8859-1 for all other 317s # encodings. (See PR #3538) 317s try: 317s reason = self.reason.decode("utf-8") 317s except UnicodeDecodeError: 317s reason = self.reason.decode("iso-8859-1") 317s else: 317s reason = self.reason 317s 317s if 400 <= self.status_code < 500: 317s http_error_msg = ( 317s f"{self.status_code} Client Error: {reason} for url: {self.url}" 317s ) 317s 317s elif 500 <= self.status_code < 600: 317s http_error_msg = ( 317s f"{self.status_code} Server Error: {reason} for url: {self.url}" 317s ) 317s 317s if http_error_msg: 317s > raise HTTPError(http_error_msg, response=self) 317s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/0c1804cc-08de-406f-8528-a85e64d2726b 317s 317s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpy9_9w34c/runtime/kernel-0c1804cc-08de-406f-8528-a85e64d2726b.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33975 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52479 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0c1804cc-08de-406f-8528-a85e64d2726b, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 19.060000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.450000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f 317s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f (127.0.0.1) 1.600000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0c1804cc-08de-406f-8528-a85e64d2726b 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0c1804cc-08de-406f-8528-a85e64d2726b 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 317s await kernel_awaitable 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/0c1804cc-08de-406f-8528-a85e64d2726b (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/0c1804cc-08de-406f-8528-a85e64d2726b', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 317s future.result() 317s ~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 317s yield maybe_future(km.shutdown_kernel(kernel_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 317s raise self._exception.with_traceback(self._exception_tb) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 317s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 317s raise km.ready.exception() # type: ignore[misc] 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 317s await kernel_awaitable 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/0c1804cc-08de-406f-8528-a85e64d2726b (127.0.0.1) 10.100000ms referer=None 317s --------------------------- Captured stderr teardown --------------------------- 317s Traceback (most recent call last): 317s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 317s return _run_code(code, main_globals, None, 317s "__main__", mod_spec) 317s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 317s exec(code, run_globals) 317s ~~~~^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 317s from pathlib import Path 317s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 317s class PureWindowsPath(PurePath): 317s ...<7 lines>... 317s __slots__ = () 317s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 317s import ntpath 317s File "", line 1371, in _find_and_load 317s File "", line 1342, in _find_and_load_unlocked 317s File "", line 938, in _load_unlocked 317s File "", line 755, in exec_module 317s File "", line 888, in get_code 317s File "", line 511, in _compile_bytecode 317s KeyboardInterrupt 317s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 317s 317s self = 317s 317s def test_kernel_handler(self): 317s # GET kernel with given id 317s kid = self.kern_api.start().json()['id'] 317s r = self.kern_api.get(kid) 317s kern1 = r.json() 317s self.assertEqual(r.status_code, 200) 317s assert isinstance(kern1, dict) 317s self.assertIn('id', kern1) 317s self.assertEqual(kern1['id'], kid) 317s 317s # Request a bad kernel id and check that a JSON 317s # message is returned! 317s bad_id = '111-111-111-111-111' 317s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 317s self.kern_api.get(bad_id) 317s 317s # DELETE kernel with id 317s > r = self.kern_api.shutdown(kid) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 317s return self._req('DELETE', id) 317s ^^^^^^^^^^^^^^^^^^^^^^^ 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 317s response.raise_for_status() 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s 317s self = 317s 317s def raise_for_status(self): 317s """Raises :class:`HTTPError`, if one occurred.""" 317s 317s http_error_msg = "" 317s if isinstance(self.reason, bytes): 317s # We attempt to decode utf-8 first because some servers 317s # choose to localize their reason strings. If the string 317s # isn't utf-8, we fall back to iso-8859-1 for all other 317s # encodings. (See PR #3538) 317s try: 317s reason = self.reason.decode("utf-8") 317s except UnicodeDecodeError: 317s reason = self.reason.decode("iso-8859-1") 317s else: 317s reason = self.reason 317s 317s if 400 <= self.status_code < 500: 317s http_error_msg = ( 317s f"{self.status_code} Client Error: {reason} for url: {self.url}" 317s ) 317s 317s elif 500 <= self.status_code < 600: 317s http_error_msg = ( 317s f"{self.status_code} Server Error: {reason} for url: {self.url}" 317s ) 317s 317s if http_error_msg: 317s > raise HTTPError(http_error_msg, response=self) 317s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/d1f09841-22f9-42f1-87da-1a2ad0290591 317s 317s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpy9_9w34c/runtime/kernel-d1f09841-22f9-42f1-87da-1a2ad0290591.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46873 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49441 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: d1f09841-22f9-42f1-87da-1a2ad0290591, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 22.840000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/d1f09841-22f9-42f1-87da-1a2ad0290591 (127.0.0.1) 1.380000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (127.0.0.1): Kernel does not exist: 111-111-111-111-111 317s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 317s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (127.0.0.1) 2.150000ms referer=None 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d1f09841-22f9-42f1-87da-1a2ad0290591 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d1f09841-22f9-42f1-87da-1a2ad0290591 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 317s await kernel_awaitable 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/d1f09841-22f9-42f1-87da-1a2ad0290591 (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/d1f09841-22f9-42f1-87da-1a2ad0290591', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 317s future.result() 317s ~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 317s yield maybe_future(km.shutdown_kernel(kernel_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 317s raise self._exception.with_traceback(self._exception_tb) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 317s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 317s raise km.ready.exception() # type: ignore[misc] 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 317s await kernel_awaitable 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/d1f09841-22f9-42f1-87da-1a2ad0290591 (127.0.0.1) 8.680000ms referer=None 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.310000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0c1804cc-08de-406f-8528-a85e64d2726b 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0c1804cc-08de-406f-8528-a85e64d2726b 317s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/0c1804cc-08de-406f-8528-a85e64d2726b (127.0.0.1) 1.490000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d1f09841-22f9-42f1-87da-1a2ad0290591 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d1f09841-22f9-42f1-87da-1a2ad0290591 317s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/d1f09841-22f9-42f1-87da-1a2ad0290591 (127.0.0.1) 1.380000ms 317s --------------------------- Captured stderr teardown --------------------------- 317s Traceback (most recent call last): 317s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 317s return _run_code(code, main_globals, None, 317s "__main__", mod_spec) 317s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 317s exec(code, run_globals) 317s ~~~~^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 317s from pathlib import Path 317s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 317s from glob import _StringGlobber, _no_recurse_symlinks 317s File "/usr/lib/python3.14/glob.py", line 3, in 317s import contextlib 317s File "/usr/lib/python3.14/contextlib.py", line 6, in 317s from collections import deque 317s File "/usr/lib/python3.14/collections/__init__.py", line 41, in 317s from reprlib import recursive_repr as _recursive_repr 317s File "", line 1368, in _find_and_load 317s File "", line 421, in __enter__ 317s File "", line 316, in acquire 317s KeyboardInterrupt 317s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 317s 317s self = 317s 317s def test_main_kernel_handler(self): 317s # POST request 317s r = self.kern_api.start() 317s kern1 = r.json() 317s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 317s self.assertEqual(r.status_code, 201) 317s self.assertIsInstance(kern1, dict) 317s 317s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 317s expected_csp = '; '.join([ 317s "frame-ancestors 'self'", 317s 'report-uri ' + report_uri, 317s "default-src 'none'" 317s ]) 317s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 317s 317s # GET request 317s r = self.kern_api.list() 317s self.assertEqual(r.status_code, 200) 317s assert isinstance(r.json(), list) 317s self.assertEqual(r.json()[0]['id'], kern1['id']) 317s self.assertEqual(r.json()[0]['name'], kern1['name']) 317s 317s # create another kernel and check that they both are added to the 317s # list of kernels from a GET request 317s kern2 = self.kern_api.start().json() 317s assert isinstance(kern2, dict) 317s r = self.kern_api.list() 317s kernels = r.json() 317s self.assertEqual(r.status_code, 200) 317s assert isinstance(kernels, list) 317s self.assertEqual(len(kernels), 2) 317s 317s # Interrupt a kernel 317s r = self.kern_api.interrupt(kern2['id']) 317s self.assertEqual(r.status_code, 204) 317s 317s # Restart a kernel 317s > r = self.kern_api.restart(kern2['id']) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 317s return self._req('POST', url_path_join(id, 'restart')) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 317s response.raise_for_status() 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s 317s self = 317s 317s def raise_for_status(self): 317s """Raises :class:`HTTPError`, if one occurred.""" 317s 317s http_error_msg = "" 317s if isinstance(self.reason, bytes): 317s # We attempt to decode utf-8 first because some servers 317s # choose to localize their reason strings. If the string 317s # isn't utf-8, we fall back to iso-8859-1 for all other 317s # encodings. (See PR #3538) 317s try: 317s reason = self.reason.decode("utf-8") 317s except UnicodeDecodeError: 317s reason = self.reason.decode("iso-8859-1") 317s else: 317s reason = self.reason 317s 317s if 400 <= self.status_code < 500: 317s http_error_msg = ( 317s f"{self.status_code} Client Error: {reason} for url: {self.url}" 317s ) 317s 317s elif 500 <= self.status_code < 600: 317s http_error_msg = ( 317s f"{self.status_code} Server Error: {reason} for url: {self.url}" 317s ) 317s 317s if http_error_msg: 317s > raise HTTPError(http_error_msg, response=self) 317s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/edc960cc-3223-4c56-b4ca-cb5f5f31ab84/restart 317s 317s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 317s ----------------------------- Captured stderr call ----------------------------- 317s Traceback (most recent call last): 317s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 317s return _run_code(code, main_globals, None, 317s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 317s exec(code, run_globals) 317s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 317s from pathlib import Path 317s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 317s from glob import _StringGlobber, _no_recurse_symlinks 317s File "/usr/lib/python3.14/glob.py", line 3, in 317s import contextlib 317s File "", line 1371, in _find_and_load 317s File "", line 1342, in _find_and_load_unlocked 317s File "", line 938, in _load_unlocked 317s File "", line 755, in exec_module 317s File "", line 888, in get_code 317s File "", line 511, in _compile_bytecode 317s KeyboardInterrupt 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpy9_9w34c/runtime/kernel-1d4711b2-4091-48de-800e-7dab29fd96fe.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56011 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52267 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1d4711b2-4091-48de-800e-7dab29fd96fe, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.330000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.300000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpy9_9w34c/runtime/kernel-edc960cc-3223-4c56-b4ca-cb5f5f31ab84.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46999 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48481 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: edc960cc-3223-4c56-b4ca-cb5f5f31ab84, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.180000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.340000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: edc960cc-3223-4c56-b4ca-cb5f5f31ab84 317s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/edc960cc-3223-4c56-b4ca-cb5f5f31ab84/interrupt (127.0.0.1) 1.430000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 317s yield maybe_future(km.restart_kernel(kernel_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 317s raise self._exception.with_traceback(self._exception_tb) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 317s result = coro.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 317s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 317s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 317s yield self # This tells Task to wait for completion. 317s ^^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 317s future.result() 317s ~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 317s raise self._exception.with_traceback(self._exception_tb) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 317s await ensure_async(kernel.restart_kernel(now=now)) 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 317s await self._async_shutdown_kernel(now=now, restart=True) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/edc960cc-3223-4c56-b4ca-cb5f5f31ab84/restart (127.0.0.1) 5.150000ms referer=None 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.260000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1d4711b2-4091-48de-800e-7dab29fd96fe 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1d4711b2-4091-48de-800e-7dab29fd96fe 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 317s await kernel_awaitable 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/1d4711b2-4091-48de-800e-7dab29fd96fe (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/1d4711b2-4091-48de-800e-7dab29fd96fe', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 317s future.result() 317s ~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 317s yield maybe_future(km.shutdown_kernel(kernel_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 317s raise self._exception.with_traceback(self._exception_tb) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 317s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 317s raise km.ready.exception() # type: ignore[misc] 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 317s await kernel_awaitable 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/1d4711b2-4091-48de-800e-7dab29fd96fe (127.0.0.1) 8.270000ms referer=None 317s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 317s 317s self = 317s 317s def test_no_kernels(self): 317s """Make sure there are no kernels running at the start""" 317s kernels = self.kern_api.list().json() 317s > self.assertEqual(kernels, []) 317s E AssertionError: Lists differ: [{'id': '1d4711b2-4091-48de-800e-7dab29fd9[281 chars]: 0}] != [] 317s E 317s E First list contains 2 additional elements. 317s E First extra element 0: 317s E {'id': '1d4711b2-4091-48de-800e-7dab29fd96fe', 'name': 'python3', 'last_activity': '2026-01-22T18:28:12.628272Z', 'execution_state': 'starting', 'connections': 0} 317s E 317s E + [] 317s E - [{'connections': 0, 317s E - 'execution_state': 'starting', 317s E - 'id': '1d4711b2-4091-48de-800e-7dab29fd96fe', 317s E - 'last_activity': '2026-01-22T18:28:12.628272Z', 317s E - 'name': 'python3'}, 317s E - {'connections': 0, 317s E - 'execution_state': 'starting', 317s E - 'id': 'edc960cc-3223-4c56-b4ca-cb5f5f31ab84', 317s E - 'last_activity': '2026-01-22T18:28:12.654227Z', 317s E - 'name': 'python3'}] 317s 317s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.370000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.310000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1d4711b2-4091-48de-800e-7dab29fd96fe 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1d4711b2-4091-48de-800e-7dab29fd96fe 317s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/1d4711b2-4091-48de-800e-7dab29fd96fe (127.0.0.1) 1.460000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for edc960cc-3223-4c56-b4ca-cb5f5f31ab84 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: edc960cc-3223-4c56-b4ca-cb5f5f31ab84 317s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/edc960cc-3223-4c56-b4ca-cb5f5f31ab84 (127.0.0.1) 1.640000ms 317s ---------------------------- Captured log teardown ----------------------------- 317s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d1f09841-22f9-42f1-87da-1a2ad0290591 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4edabfb6-5f0b-47d7-bc37-274ed5e3cb7f 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1d4711b2-4091-48de-800e-7dab29fd96fe 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0c1804cc-08de-406f-8528-a85e64d2726b 317s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 317s __________________________ SessionAPITest.test_create __________________________ 317s 317s @self.addCleanup 317s def cleanup_sessions(): 317s for session in self.sess_api.list().json(): 317s > self.sess_api.delete(session['id']) 317s 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 317s return self._req('DELETE', id) 317s ^^^^^^^^^^^^^^^^^^^^^^^ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 317s response.raise_for_status() 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s 317s self = 317s 317s def raise_for_status(self): 317s """Raises :class:`HTTPError`, if one occurred.""" 317s 317s http_error_msg = "" 317s if isinstance(self.reason, bytes): 317s # We attempt to decode utf-8 first because some servers 317s # choose to localize their reason strings. If the string 317s # isn't utf-8, we fall back to iso-8859-1 for all other 317s # encodings. (See PR #3538) 317s try: 317s reason = self.reason.decode("utf-8") 317s except UnicodeDecodeError: 317s reason = self.reason.decode("iso-8859-1") 317s else: 317s reason = self.reason 317s 317s if 400 <= self.status_code < 500: 317s http_error_msg = ( 317s f"{self.status_code} Client Error: {reason} for url: {self.url}" 317s ) 317s 317s elif 500 <= self.status_code < 600: 317s http_error_msg = ( 317s f"{self.status_code} Server Error: {reason} for url: {self.url}" 317s ) 317s 317s if http_error_msg: 317s > raise HTTPError(http_error_msg, response=self) 317s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/24219035-64a9-43dc-aefd-357101594945 317s 317s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 317s ------------------------------ Captured log setup ------------------------------ 317s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmppzg2lpvc/config', '/tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmppzg2lpvc/etc/jupyter'] for config files 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmppzg2lpvc/etc/jupyter 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmppzg2lpvc/config 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmppzg2lpvc/etc/jupyter 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmppzg2lpvc/config 317s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmppzg2lpvc/notebooks 317s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 317s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 317s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 317s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 317s WARNING NotebookApp:handlers.py:612 Forbidden 317s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (127.0.0.1) 2.320000ms referer=None 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 2.030000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppzg2lpvc/runtime/kernel-1c5dc704-5165-4f47-adea-ba61055fd990.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53017 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49523 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1c5dc704-5165-4f47-adea-ba61055fd990, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmppzg2lpvc/notebooks/foo'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 24.780000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.550000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/24219035-64a9-43dc-aefd-357101594945 (127.0.0.1) 1.660000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.530000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1c5dc704-5165-4f47-adea-ba61055fd990 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1c5dc704-5165-4f47-adea-ba61055fd990 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/24219035-64a9-43dc-aefd-357101594945 (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/24219035-64a9-43dc-aefd-357101594945', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 317s yield maybe_future(sm.delete_session(session_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 317s yielded = self.gen.send(value) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 317s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 317s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 317s stopper = ensure_async(km.shutdown_kernel(now, restart)) 317s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/24219035-64a9-43dc-aefd-357101594945 (127.0.0.1) 11.810000ms referer=None 317s --------------------------- Captured stderr teardown --------------------------- 317s Traceback (most recent call last): 317s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 317s return _run_code(code, main_globals, None, 317s "__main__", mod_spec) 317s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 317s exec(code, run_globals) 317s ~~~~^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 317s from ipykernel import kernelapp as app 317s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 317s from .connect import * # noqa: F403 317s ^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 317s from subprocess import PIPE, Popen 317s File "/usr/lib/python3.14/subprocess.py", line 49, in 317s import signal 317s File "/usr/lib/python3.14/signal.py", line 7, in 317s _IntEnum._convert_( 317s ~~~~~~~~~~~~~~~~~~^ 317s 'Signals', __name__, 317s ^^^^^^^^^^^^^^^^^^^^ 317s ...<2 lines>... 317s and (name.startswith('SIG') and not name.startswith('SIG_')) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s or name.startswith('CTRL_')) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3.14/enum.py", line 909, in _convert_ 317s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 317s File "/usr/lib/python3.14/enum.py", line 1895, in convert_class 317s setattr(enum_class, name, member) 317s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3.14/enum.py", line 810, in __setattr__ 317s def __setattr__(cls, name, value): 317s 317s KeyboardInterrupt 317s __________________ SessionAPITest.test_create_console_session __________________ 317s 317s @self.addCleanup 317s def cleanup_sessions(): 317s for session in self.sess_api.list().json(): 317s > self.sess_api.delete(session['id']) 317s 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 317s return self._req('DELETE', id) 317s ^^^^^^^^^^^^^^^^^^^^^^^ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 317s response.raise_for_status() 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s 317s self = 317s 317s def raise_for_status(self): 317s """Raises :class:`HTTPError`, if one occurred.""" 317s 317s http_error_msg = "" 317s if isinstance(self.reason, bytes): 317s # We attempt to decode utf-8 first because some servers 317s # choose to localize their reason strings. If the string 317s # isn't utf-8, we fall back to iso-8859-1 for all other 317s # encodings. (See PR #3538) 317s try: 317s reason = self.reason.decode("utf-8") 317s except UnicodeDecodeError: 317s reason = self.reason.decode("iso-8859-1") 317s else: 317s reason = self.reason 317s 317s if 400 <= self.status_code < 500: 317s http_error_msg = ( 317s f"{self.status_code} Client Error: {reason} for url: {self.url}" 317s ) 317s 317s elif 500 <= self.status_code < 600: 317s http_error_msg = ( 317s f"{self.status_code} Server Error: {reason} for url: {self.url}" 317s ) 317s 317s if http_error_msg: 317s > raise HTTPError(http_error_msg, response=self) 317s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/cbea4a27-0d82-46fc-b836-4c76c2afc2f0 317s 317s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppzg2lpvc/runtime/kernel-8caa5e9f-817f-4823-923a-cd98d700b972.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56331 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33189 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8caa5e9f-817f-4823-923a-cd98d700b972, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmppzg2lpvc/notebooks/foo'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 21.910000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.650000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1c5dc704-5165-4f47-adea-ba61055fd990 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1c5dc704-5165-4f47-adea-ba61055fd990 317s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/24219035-64a9-43dc-aefd-357101594945 (127.0.0.1) 2.650000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8caa5e9f-817f-4823-923a-cd98d700b972 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8caa5e9f-817f-4823-923a-cd98d700b972 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/cbea4a27-0d82-46fc-b836-4c76c2afc2f0 (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/cbea4a27-0d82-46fc-b836-4c76c2afc2f0', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 317s yield maybe_future(sm.delete_session(session_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 317s yielded = self.gen.send(value) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 317s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 317s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 317s stopper = ensure_async(km.shutdown_kernel(now, restart)) 317s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/cbea4a27-0d82-46fc-b836-4c76c2afc2f0 (127.0.0.1) 10.700000ms referer=None 317s --------------------------- Captured stderr teardown --------------------------- 317s Traceback (most recent call last): 317s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 317s return _run_code(code, main_globals, None, 317s "__main__", mod_spec) 317s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 317s exec(code, run_globals) 317s ~~~~^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 317s from pathlib import Path 317s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 317s class PureWindowsPath(PurePath): 317s ...<7 lines>... 317s __slots__ = () 317s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 317s import ntpath 317s File "/usr/lib/python3.14/ntpath.py", line 861, in 317s from nt import _path_isdevdrive 317s File "", line 1371, in _find_and_load 317s File "", line 1333, in _find_and_load_unlocked 317s File "", line 1267, in _find_spec 317s File "", line 1292, in find_spec 317s File "", line 1266, in _get_spec 317s File "", line 1365, in find_spec 317s File "", line 152, in _path_stat 317s KeyboardInterrupt 317s ____________________ SessionAPITest.test_create_deprecated _____________________ 317s 317s @self.addCleanup 317s def cleanup_sessions(): 317s for session in self.sess_api.list().json(): 317s > self.sess_api.delete(session['id']) 317s 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 317s return self._req('DELETE', id) 317s ^^^^^^^^^^^^^^^^^^^^^^^ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 317s response.raise_for_status() 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s 317s self = 317s 317s def raise_for_status(self): 317s """Raises :class:`HTTPError`, if one occurred.""" 317s 317s http_error_msg = "" 317s if isinstance(self.reason, bytes): 317s # We attempt to decode utf-8 first because some servers 317s # choose to localize their reason strings. If the string 317s # isn't utf-8, we fall back to iso-8859-1 for all other 317s # encodings. (See PR #3538) 317s try: 317s reason = self.reason.decode("utf-8") 317s except UnicodeDecodeError: 317s reason = self.reason.decode("iso-8859-1") 317s else: 317s reason = self.reason 317s 317s if 400 <= self.status_code < 500: 317s http_error_msg = ( 317s f"{self.status_code} Client Error: {reason} for url: {self.url}" 317s ) 317s 317s elif 500 <= self.status_code < 600: 317s http_error_msg = ( 317s f"{self.status_code} Server Error: {reason} for url: {self.url}" 317s ) 317s 317s if http_error_msg: 317s > raise HTTPError(http_error_msg, response=self) 317s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/57d465cb-43d4-475b-901b-5d7b2c8a1b31 317s 317s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppzg2lpvc/runtime/kernel-60af183d-49c1-49d2-ade5-282724f4a88d.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36425 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59163 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: 60af183d-49c1-49d2-ade5-282724f4a88d, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmppzg2lpvc/notebooks/foo'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 22.360000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.680000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8caa5e9f-817f-4823-923a-cd98d700b972 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8caa5e9f-817f-4823-923a-cd98d700b972 317s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/cbea4a27-0d82-46fc-b836-4c76c2afc2f0 (127.0.0.1) 2.390000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 60af183d-49c1-49d2-ade5-282724f4a88d 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 60af183d-49c1-49d2-ade5-282724f4a88d 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/57d465cb-43d4-475b-901b-5d7b2c8a1b31 (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/57d465cb-43d4-475b-901b-5d7b2c8a1b31', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 317s yield maybe_future(sm.delete_session(session_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 317s yielded = self.gen.send(value) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 317s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 317s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 317s stopper = ensure_async(km.shutdown_kernel(now, restart)) 317s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/57d465cb-43d4-475b-901b-5d7b2c8a1b31 (127.0.0.1) 10.760000ms referer=None 317s --------------------------- Captured stderr teardown --------------------------- 317s Traceback (most recent call last): 317s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 317s return _run_code(code, main_globals, None, 317s "__main__", mod_spec) 317s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 317s exec(code, run_globals) 317s ~~~~^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 317s from pathlib import Path 317s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 317s from pathlib._os import ( 317s ...<3 lines>... 317s ) 317s File "/usr/lib/python3.14/pathlib/_os.py", line 11, in 317s import fcntl 317s File "", line 1371, in _find_and_load 317s File "", line 1333, in _find_and_load_unlocked 317s File "", line 1267, in _find_spec 317s File "", line 988, in find_spec 317s File "", line 691, in spec_from_loader 317s File "", line 602, in __init__ 317s KeyboardInterrupt 317s ___________________ SessionAPITest.test_create_file_session ____________________ 317s 317s @self.addCleanup 317s def cleanup_sessions(): 317s for session in self.sess_api.list().json(): 317s > self.sess_api.delete(session['id']) 317s 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 317s return self._req('DELETE', id) 317s ^^^^^^^^^^^^^^^^^^^^^^^ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 317s response.raise_for_status() 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s 317s self = 317s 317s def raise_for_status(self): 317s """Raises :class:`HTTPError`, if one occurred.""" 317s 317s http_error_msg = "" 317s if isinstance(self.reason, bytes): 317s # We attempt to decode utf-8 first because some servers 317s # choose to localize their reason strings. If the string 317s # isn't utf-8, we fall back to iso-8859-1 for all other 317s # encodings. (See PR #3538) 317s try: 317s reason = self.reason.decode("utf-8") 317s except UnicodeDecodeError: 317s reason = self.reason.decode("iso-8859-1") 317s else: 317s reason = self.reason 317s 317s if 400 <= self.status_code < 500: 317s http_error_msg = ( 317s f"{self.status_code} Client Error: {reason} for url: {self.url}" 317s ) 317s 317s elif 500 <= self.status_code < 600: 317s http_error_msg = ( 317s f"{self.status_code} Server Error: {reason} for url: {self.url}" 317s ) 317s 317s if http_error_msg: 317s > raise HTTPError(http_error_msg, response=self) 317s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/db38798f-ca71-486b-84eb-7bc94433e942 317s 317s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppzg2lpvc/runtime/kernel-577fe908-9fe3-4c6a-adc0-bcd84e4ce68c.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51113 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47667 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: 577fe908-9fe3-4c6a-adc0-bcd84e4ce68c, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmppzg2lpvc/notebooks/foo'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 21.460000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.560000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 60af183d-49c1-49d2-ade5-282724f4a88d 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 60af183d-49c1-49d2-ade5-282724f4a88d 317s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/57d465cb-43d4-475b-901b-5d7b2c8a1b31 (127.0.0.1) 2.170000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 577fe908-9fe3-4c6a-adc0-bcd84e4ce68c 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 577fe908-9fe3-4c6a-adc0-bcd84e4ce68c 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/db38798f-ca71-486b-84eb-7bc94433e942 (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/db38798f-ca71-486b-84eb-7bc94433e942', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 317s yield maybe_future(sm.delete_session(session_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 317s yielded = self.gen.send(value) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 317s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 317s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 317s stopper = ensure_async(km.shutdown_kernel(now, restart)) 317s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/db38798f-ca71-486b-84eb-7bc94433e942 (127.0.0.1) 10.490000ms referer=None 317s --------------------------- Captured stderr teardown --------------------------- 317s Traceback (most recent call last): 317s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 317s return _run_code(code, main_globals, None, 317s "__main__", mod_spec) 317s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 317s exec(code, run_globals) 317s ~~~~^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 317s from pathlib import Path 317s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 317s from glob import _StringGlobber, _no_recurse_symlinks 317s File "/usr/lib/python3.14/glob.py", line 6, in 317s import fnmatch 317s File "/usr/lib/python3.14/fnmatch.py", line 105, in 317s _re_setops_sub = re.compile(r'([&~|])').sub 317s ~~~~~~~~~~^^^^^^^^^^^^ 317s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 317s return _compile(pattern, flags) 317s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 317s p = _compiler.compile(pattern, flags) 317s File "/usr/lib/python3.14/re/_compiler.py", line 762, in compile 317s p = _parser.parse(p, flags) 317s File "/usr/lib/python3.14/re/_parser.py", line 973, in parse 317s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 317s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 317s itemsappend(_parse(source, state, verbose, nested + 1, 317s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s not nested and not items)) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3.14/re/_parser.py", line 856, in _parse 317s p = _parse_sub(source, state, sub_verbose, nested + 1) 317s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 317s itemsappend(_parse(source, state, verbose, nested + 1, 317s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s not nested and not items)) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3.14/re/_parser.py", line 879, in _parse 317s op, av = subpattern[i] 317s ~~~~~~~~~~^^^ 317s File "/usr/lib/python3.14/re/_parser.py", line 169, in __getitem__ 317s if isinstance(index, slice): 317s ~~~~~~~~~~^^^^^^^^^^^^^^ 317s KeyboardInterrupt 317s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 317s 317s self = 317s 317s def test_create_with_kernel_id(self): 317s # create a new kernel 317s r = self.request('POST', 'api/kernels') 317s r.raise_for_status() 317s kernel = r.json() 317s 317s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 317s self.assertEqual(resp.status_code, 201) 317s newsession = resp.json() 317s self.assertIn('id', newsession) 317s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 317s self.assertEqual(newsession['kernel']['id'], kernel['id']) 317s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 317s 317s sessions = self.sess_api.list().json() 317s > self.assertEqual(sessions, [newsession]) 317s E AssertionError: Lists differ: [{'id': 'db38798f-ca71-486b-84eb-7bc94433e942', 'p[553 chars]ne}}] != [{'id': '8535045d-afca-4bc7-957b-33a0d2a46e02', 'p[279 chars]ne}}] 317s E 317s E First differing element 0: 317s E {'id': 'db38798f-ca71-486b-84eb-7bc94433e942', 'p[218 chars]: 0}} 317s E {'id': '8535045d-afca-4bc7-957b-33a0d2a46e02', 'p[278 chars]one}} 317s E 317s E First list contains 1 additional elements. 317s E First extra element 1: 317s E {'id': '8535045d-afca-4bc7-957b-33a0d2a46e02', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'ae92268b-7219-48d0-afe1-d947309bc370', 'name': 'python3', 'last_activity': '2026-01-22T18:28:23.525132Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 317s E 317s E Diff is 830 characters long. Set self.maxDiff to None to see it. 317s 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppzg2lpvc/runtime/kernel-ae92268b-7219-48d0-afe1-d947309bc370.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47701 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36671 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: ae92268b-7219-48d0-afe1-d947309bc370, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 39.570000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.780000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.570000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.600000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 577fe908-9fe3-4c6a-adc0-bcd84e4ce68c 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 577fe908-9fe3-4c6a-adc0-bcd84e4ce68c 317s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/db38798f-ca71-486b-84eb-7bc94433e942 (127.0.0.1) 2.510000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ae92268b-7219-48d0-afe1-d947309bc370 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ae92268b-7219-48d0-afe1-d947309bc370 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8535045d-afca-4bc7-957b-33a0d2a46e02 (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8535045d-afca-4bc7-957b-33a0d2a46e02', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 317s yield maybe_future(sm.delete_session(session_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 317s yielded = self.gen.send(value) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 317s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 317s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 317s stopper = ensure_async(km.shutdown_kernel(now, restart)) 317s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/8535045d-afca-4bc7-957b-33a0d2a46e02 (127.0.0.1) 10.620000ms referer=None 317s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 317s 317s self = 317s 317s def test_modify_kernel_id(self): 317s before = self.sess_api.create('foo/nb1.ipynb').json() 317s sid = before['id'] 317s 317s # create a new kernel 317s r = self.request('POST', 'api/kernels') 317s r.raise_for_status() 317s kernel = r.json() 317s 317s # Attach our session to the existing kernel 317s > after = self.sess_api.modify_kernel_id(sid, kernel['id']).json() 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:250: 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:82: in modify_kernel_id 317s return self._req('PATCH', id, body) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 317s response.raise_for_status() 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s 317s self = 317s 317s def raise_for_status(self): 317s """Raises :class:`HTTPError`, if one occurred.""" 317s 317s http_error_msg = "" 317s if isinstance(self.reason, bytes): 317s # We attempt to decode utf-8 first because some servers 317s # choose to localize their reason strings. If the string 317s # isn't utf-8, we fall back to iso-8859-1 for all other 317s # encodings. (See PR #3538) 317s try: 317s reason = self.reason.decode("utf-8") 317s except UnicodeDecodeError: 317s reason = self.reason.decode("iso-8859-1") 317s else: 317s reason = self.reason 317s 317s if 400 <= self.status_code < 500: 317s http_error_msg = ( 317s f"{self.status_code} Client Error: {reason} for url: {self.url}" 317s ) 317s 317s elif 500 <= self.status_code < 600: 317s http_error_msg = ( 317s f"{self.status_code} Server Error: {reason} for url: {self.url}" 317s ) 317s 317s if http_error_msg: 317s > raise HTTPError(http_error_msg, response=self) 317s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/bc62cd86-da4d-445d-9673-d605405fc8d7 317s 317s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppzg2lpvc/runtime/kernel-56b86f1d-44ae-492a-84eb-828fbcc8a067.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33547 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48277 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: 56b86f1d-44ae-492a-84eb-828fbcc8a067, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmppzg2lpvc/notebooks/foo'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 22.070000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppzg2lpvc/runtime/kernel-a9a1d29f-7ee9-4f1e-be62-efa0aee3ec22.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42891 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53269 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: a9a1d29f-7ee9-4f1e-be62-efa0aee3ec22, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 23.150000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 56b86f1d-44ae-492a-84eb-828fbcc8a067 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 56b86f1d-44ae-492a-84eb-828fbcc8a067 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/bc62cd86-da4d-445d-9673-d605405fc8d7 (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/bc62cd86-da4d-445d-9673-d605405fc8d7', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 317s yielded = self.gen.send(value) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 154, in patch 317s km.shutdown_kernel(before['kernel']['id']) 317s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 317s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 317s stopper = ensure_async(km.shutdown_kernel(now, restart)) 317s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/bc62cd86-da4d-445d-9673-d605405fc8d7 (127.0.0.1) 15.560000ms referer=None 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.610000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a9a1d29f-7ee9-4f1e-be62-efa0aee3ec22 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a9a1d29f-7ee9-4f1e-be62-efa0aee3ec22 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/bc62cd86-da4d-445d-9673-d605405fc8d7 (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/bc62cd86-da4d-445d-9673-d605405fc8d7', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 317s yield maybe_future(sm.delete_session(session_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 317s yielded = self.gen.send(value) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 317s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 317s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 317s stopper = ensure_async(km.shutdown_kernel(now, restart)) 317s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/bc62cd86-da4d-445d-9673-d605405fc8d7 (127.0.0.1) 10.990000ms referer=None 317s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 317s 317s self = 317s 317s def test_modify_kernel_name(self): 317s before = self.sess_api.create('foo/nb1.ipynb').json() 317s sid = before['id'] 317s 317s after = self.sess_api.modify_kernel_name(sid, before['kernel']['name']).json() 317s self.assertEqual(after['id'], sid) 317s self.assertEqual(after['path'], before['path']) 317s self.assertEqual(after['type'], before['type']) 317s self.assertNotEqual(after['kernel']['id'], before['kernel']['id']) 317s 317s # check kernel list, to be sure previous kernel was cleaned up 317s r = self.request('GET', 'api/kernels') 317s r.raise_for_status() 317s kernel_list = r.json() 317s after['kernel'].pop('last_activity') 317s [ k.pop('last_activity') for k in kernel_list ] 317s > self.assertEqual(kernel_list, [after['kernel']]) 317s E AssertionError: Lists differ: [{'id': '56b86f1d-44ae-492a-84eb-828fbcc8a067', 'n[177 chars]: 0}] != [{'id': '7aa5d918-100d-4915-9889-5938d41a941f', 'n[61 chars]: 0}] 317s E 317s E First differing element 0: 317s E {'id': '56b86f1d-44ae-492a-84eb-828fbcc8a067', 'n[60 chars]': 0} 317s E {'id': '7aa5d918-100d-4915-9889-5938d41a941f', 'n[60 chars]': 0} 317s E 317s E First list contains 1 additional elements. 317s E First extra element 1: 317s E {'id': '7aa5d918-100d-4915-9889-5938d41a941f', 'name': 'python3', 'execution_state': 'starting', 'connections': 0} 317s E 317s E [{'connections': 0, 317s E - 'execution_state': 'starting', 317s E - 'id': '56b86f1d-44ae-492a-84eb-828fbcc8a067', 317s E - 'name': 'python3'}, 317s E - {'connections': 0, 317s E 'execution_state': 'starting', 317s E 'id': '7aa5d918-100d-4915-9889-5938d41a941f', 317s E 'name': 'python3'}] 317s 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:238: AssertionError 317s ---------------------------- Captured stderr setup ----------------------------- 317s Traceback (most recent call last): 317s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 317s return _run_code(code, main_globals, None, 317s "__main__", mod_spec) 317s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 317s exec(code, run_globals) 317s ~~~~^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 317s from pathlib import Path 317s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 317s from glob import _StringGlobber, _no_recurse_symlinks 317s File "/usr/lib/python3.14/glob.py", line 5, in 317s import re 317s File "", line 1371, in _find_and_load 317s File "", line 1342, in _find_and_load_unlocked 317s File "", line 938, in _load_unlocked 317s File "", line 755, in exec_module 317s File "", line 851, in get_code 317s File "", line 950, in get_data 317s KeyboardInterrupt 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.800000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppzg2lpvc/runtime/kernel-7aa5d918-100d-4915-9889-5938d41a941f.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58629 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43649 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7aa5d918-100d-4915-9889-5938d41a941f, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmppzg2lpvc/notebooks/foo'} 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a9a1d29f-7ee9-4f1e-be62-efa0aee3ec22 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a9a1d29f-7ee9-4f1e-be62-efa0aee3ec22 317s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/bc62cd86-da4d-445d-9673-d605405fc8d7 (127.0.0.1) 22.600000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.580000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.490000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7aa5d918-100d-4915-9889-5938d41a941f 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7aa5d918-100d-4915-9889-5938d41a941f 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/bc62cd86-da4d-445d-9673-d605405fc8d7 (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/bc62cd86-da4d-445d-9673-d605405fc8d7', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 317s yield maybe_future(sm.delete_session(session_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 317s yielded = self.gen.send(value) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 317s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 317s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 317s stopper = ensure_async(km.shutdown_kernel(now, restart)) 317s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/bc62cd86-da4d-445d-9673-d605405fc8d7 (127.0.0.1) 10.570000ms referer=None 317s __________________ SessionAPITest.test_modify_path_deprecated __________________ 317s 317s @self.addCleanup 317s def cleanup_sessions(): 317s for session in self.sess_api.list().json(): 317s > self.sess_api.delete(session['id']) 317s 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 317s return self._req('DELETE', id) 317s ^^^^^^^^^^^^^^^^^^^^^^^ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 317s response.raise_for_status() 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s 317s self = 317s 317s def raise_for_status(self): 317s """Raises :class:`HTTPError`, if one occurred.""" 317s 317s http_error_msg = "" 317s if isinstance(self.reason, bytes): 317s # We attempt to decode utf-8 first because some servers 317s # choose to localize their reason strings. If the string 317s # isn't utf-8, we fall back to iso-8859-1 for all other 317s # encodings. (See PR #3538) 317s try: 317s reason = self.reason.decode("utf-8") 317s except UnicodeDecodeError: 317s reason = self.reason.decode("iso-8859-1") 317s else: 317s reason = self.reason 317s 317s if 400 <= self.status_code < 500: 317s http_error_msg = ( 317s f"{self.status_code} Client Error: {reason} for url: {self.url}" 317s ) 317s 317s elif 500 <= self.status_code < 600: 317s http_error_msg = ( 317s f"{self.status_code} Server Error: {reason} for url: {self.url}" 317s ) 317s 317s if http_error_msg: 317s > raise HTTPError(http_error_msg, response=self) 317s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/dc684c5c-6088-4f8d-b1c8-a50edf8af4db 317s 317s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppzg2lpvc/runtime/kernel-5fe9c8c9-55a1-40bc-b4b1-79bf5a4e2043.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59961 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47479 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5fe9c8c9-55a1-40bc-b4b1-79bf5a4e2043, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmppzg2lpvc/notebooks/foo'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 20.900000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s WARNING NotebookApp:handlers.py:124 Sessions API changed, see updated swagger docs 317s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/dc684c5c-6088-4f8d-b1c8-a50edf8af4db (127.0.0.1) 1.920000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.440000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5fe9c8c9-55a1-40bc-b4b1-79bf5a4e2043 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5fe9c8c9-55a1-40bc-b4b1-79bf5a4e2043 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/dc684c5c-6088-4f8d-b1c8-a50edf8af4db (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/dc684c5c-6088-4f8d-b1c8-a50edf8af4db', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 317s yield maybe_future(sm.delete_session(session_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 317s yielded = self.gen.send(value) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 317s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 317s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 317s stopper = ensure_async(km.shutdown_kernel(now, restart)) 317s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/dc684c5c-6088-4f8d-b1c8-a50edf8af4db (127.0.0.1) 10.280000ms referer=None 317s --------------------------- Captured stderr teardown --------------------------- 317s Traceback (most recent call last): 317s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 317s return _run_code(code, main_globals, None, 317s "__main__", mod_spec) 317s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 317s exec(code, run_globals) 317s ~~~~^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 317s from pathlib import Path 317s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 317s from glob import _StringGlobber, _no_recurse_symlinks 317s File "/usr/lib/python3.14/glob.py", line 5, in 317s import re 317s File "/usr/lib/python3.14/re/__init__.py", line 381, in 317s import copyreg 317s File "", line 1371, in _find_and_load 317s File "", line 1342, in _find_and_load_unlocked 317s File "", line 938, in _load_unlocked 317s File "", line 755, in exec_module 317s File "", line 888, in get_code 317s File "", line 511, in _compile_bytecode 317s KeyboardInterrupt 317s _______________________ SessionAPITest.test_modify_type ________________________ 317s 317s @self.addCleanup 317s def cleanup_sessions(): 317s for session in self.sess_api.list().json(): 317s > self.sess_api.delete(session['id']) 317s 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 317s return self._req('DELETE', id) 317s ^^^^^^^^^^^^^^^^^^^^^^^ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 317s response.raise_for_status() 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s 317s self = 317s 317s def raise_for_status(self): 317s """Raises :class:`HTTPError`, if one occurred.""" 317s 317s http_error_msg = "" 317s if isinstance(self.reason, bytes): 317s # We attempt to decode utf-8 first because some servers 317s # choose to localize their reason strings. If the string 317s # isn't utf-8, we fall back to iso-8859-1 for all other 317s # encodings. (See PR #3538) 317s try: 317s reason = self.reason.decode("utf-8") 317s except UnicodeDecodeError: 317s reason = self.reason.decode("iso-8859-1") 317s else: 317s reason = self.reason 317s 317s if 400 <= self.status_code < 500: 317s http_error_msg = ( 317s f"{self.status_code} Client Error: {reason} for url: {self.url}" 317s ) 317s 317s elif 500 <= self.status_code < 600: 317s http_error_msg = ( 317s f"{self.status_code} Server Error: {reason} for url: {self.url}" 317s ) 317s 317s if http_error_msg: 317s > raise HTTPError(http_error_msg, response=self) 317s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1eaa3e9d-4261-4646-a799-d6698498a1e1 317s 317s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppzg2lpvc/runtime/kernel-27685507-db02-4ae1-afa0-305640596502.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55705 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43653 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: 27685507-db02-4ae1-afa0-305640596502, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmppzg2lpvc/notebooks/foo'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 20.530000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/1eaa3e9d-4261-4646-a799-d6698498a1e1 (127.0.0.1) 2.170000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.500000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5fe9c8c9-55a1-40bc-b4b1-79bf5a4e2043 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5fe9c8c9-55a1-40bc-b4b1-79bf5a4e2043 317s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/dc684c5c-6088-4f8d-b1c8-a50edf8af4db (127.0.0.1) 2.040000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 27685507-db02-4ae1-afa0-305640596502 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 27685507-db02-4ae1-afa0-305640596502 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1eaa3e9d-4261-4646-a799-d6698498a1e1 (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1eaa3e9d-4261-4646-a799-d6698498a1e1', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 317s yield maybe_future(sm.delete_session(session_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 317s yielded = self.gen.send(value) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 317s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 317s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 317s stopper = ensure_async(km.shutdown_kernel(now, restart)) 317s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 317s return _runner_map[name].run(inner) 317s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 317s return fut.result(None) 317s ~~~~~~~~~~^^^^^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 317s return self.__get_result() 317s ~~~~~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 317s raise self._exception 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1eaa3e9d-4261-4646-a799-d6698498a1e1 (127.0.0.1) 10.270000ms referer=None 317s --------------------------- Captured stderr teardown --------------------------- 317s Traceback (most recent call last): 317s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 317s return _run_code(code, main_globals, None, 317s "__main__", mod_spec) 317s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 317s exec(code, run_globals) 317s ~~~~^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 317s from ipykernel import kernelapp as app 317s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 317s from .connect import * # noqa: F403 317s ^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 317s import json 317s File "/usr/lib/python3.14/json/__init__.py", line 107, in 317s from .encoder import JSONEncoder 317s File "", line 1371, in _find_and_load 317s File "", line 1342, in _find_and_load_unlocked 317s File "", line 938, in _load_unlocked 317s File "", line 755, in exec_module 317s File "", line 888, in get_code 317s File "", line 511, in _compile_bytecode 317s KeyboardInterrupt 317s ---------------------------- Captured log teardown ----------------------------- 317s INFO NotebookApp:notebookapp.py:2164 Shutting down 2 kernels 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 56b86f1d-44ae-492a-84eb-828fbcc8a067 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 27685507-db02-4ae1-afa0-305640596502 317s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 317s _______________________ AsyncSessionAPITest.test_create ________________________ 317s 317s @self.addCleanup 317s def cleanup_sessions(): 317s for session in self.sess_api.list().json(): 317s > self.sess_api.delete(session['id']) 317s 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 317s return self._req('DELETE', id) 317s ^^^^^^^^^^^^^^^^^^^^^^^ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 317s response.raise_for_status() 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s 317s self = 317s 317s def raise_for_status(self): 317s """Raises :class:`HTTPError`, if one occurred.""" 317s 317s http_error_msg = "" 317s if isinstance(self.reason, bytes): 317s # We attempt to decode utf-8 first because some servers 317s # choose to localize their reason strings. If the string 317s # isn't utf-8, we fall back to iso-8859-1 for all other 317s # encodings. (See PR #3538) 317s try: 317s reason = self.reason.decode("utf-8") 317s except UnicodeDecodeError: 317s reason = self.reason.decode("iso-8859-1") 317s else: 317s reason = self.reason 317s 317s if 400 <= self.status_code < 500: 317s http_error_msg = ( 317s f"{self.status_code} Client Error: {reason} for url: {self.url}" 317s ) 317s 317s elif 500 <= self.status_code < 600: 317s http_error_msg = ( 317s f"{self.status_code} Server Error: {reason} for url: {self.url}" 317s ) 317s 317s if http_error_msg: 317s > raise HTTPError(http_error_msg, response=self) 317s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d275868a-eece-4bf3-80ec-9c32b3cc0bc0 317s 317s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 317s ------------------------------ Captured log setup ------------------------------ 317s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp_4notggd/config', '/tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp_4notggd/etc/jupyter'] for config files 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp_4notggd/etc/jupyter 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp_4notggd/config 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp_4notggd/etc/jupyter 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 317s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp_4notggd/config 317s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp_4notggd/notebooks 317s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 317s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 317s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 317s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 317s WARNING NotebookApp:handlers.py:612 Forbidden 317s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (127.0.0.1) 1.100000ms referer=None 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.820000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_4notggd/runtime/kernel-f5f81266-52af-4ea3-be36-6b738f6de526.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49867 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37971 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: f5f81266-52af-4ea3-be36-6b738f6de526, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_4notggd/notebooks/foo'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 20.530000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.680000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/d275868a-eece-4bf3-80ec-9c32b3cc0bc0 (127.0.0.1) 1.610000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.550000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f5f81266-52af-4ea3-be36-6b738f6de526 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f5f81266-52af-4ea3-be36-6b738f6de526 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 317s await kernel_awaitable 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d275868a-eece-4bf3-80ec-9c32b3cc0bc0 (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d275868a-eece-4bf3-80ec-9c32b3cc0bc0', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 317s future.result() 317s ~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 317s yield maybe_future(sm.delete_session(session_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 317s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 317s raise self._exception.with_traceback(self._exception_tb) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 317s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 317s raise km.ready.exception() # type: ignore[misc] 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 317s await kernel_awaitable 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/d275868a-eece-4bf3-80ec-9c32b3cc0bc0 (127.0.0.1) 9.670000ms referer=None 317s --------------------------- Captured stderr teardown --------------------------- 317s Traceback (most recent call last): 317s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 317s return _run_code(code, main_globals, None, 317s "__main__", mod_spec) 317s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 317s exec(code, run_globals) 317s ~~~~^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 317s from ipykernel import kernelapp as app 317s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 317s from ._version import ( 317s ...<4 lines>... 317s ) 317s File "/usr/lib/python3/dist-packages/ipykernel/_version.py", line 11, in 317s match = re.match(pattern, __version__) 317s File "/usr/lib/python3.14/re/__init__.py", line 167, in match 317s return _compile(pattern, flags).match(string) 317s ~~~~~~~~^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 317s p = _compiler.compile(pattern, flags) 317s File "/usr/lib/python3.14/re/_compiler.py", line 766, in compile 317s code = _code(p, flags) 317s File "/usr/lib/python3.14/re/_compiler.py", line 599, in _code 317s _compile(code, p.data, flags) 317s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3.14/re/_compiler.py", line 133, in _compile 317s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 317s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3.14/re/_compiler.py", line 116, in _compile 317s _compile(code, av[2], flags) 317s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3.14/re/_compiler.py", line 97, in _compile 317s emit(IN) 317s ~~~~^^^^ 317s KeyboardInterrupt 317s _______________ AsyncSessionAPITest.test_create_console_session ________________ 317s 317s @self.addCleanup 317s def cleanup_sessions(): 317s for session in self.sess_api.list().json(): 317s > self.sess_api.delete(session['id']) 317s 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 317s return self._req('DELETE', id) 317s ^^^^^^^^^^^^^^^^^^^^^^^ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 317s response.raise_for_status() 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s 317s self = 317s 317s def raise_for_status(self): 317s """Raises :class:`HTTPError`, if one occurred.""" 317s 317s http_error_msg = "" 317s if isinstance(self.reason, bytes): 317s # We attempt to decode utf-8 first because some servers 317s # choose to localize their reason strings. If the string 317s # isn't utf-8, we fall back to iso-8859-1 for all other 317s # encodings. (See PR #3538) 317s try: 317s reason = self.reason.decode("utf-8") 317s except UnicodeDecodeError: 317s reason = self.reason.decode("iso-8859-1") 317s else: 317s reason = self.reason 317s 317s if 400 <= self.status_code < 500: 317s http_error_msg = ( 317s f"{self.status_code} Client Error: {reason} for url: {self.url}" 317s ) 317s 317s elif 500 <= self.status_code < 600: 317s http_error_msg = ( 317s f"{self.status_code} Server Error: {reason} for url: {self.url}" 317s ) 317s 317s if http_error_msg: 317s > raise HTTPError(http_error_msg, response=self) 317s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ead7d538-c279-4f28-8d3e-4cf375dbee63 317s 317s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_4notggd/runtime/kernel-bb494837-6328-40e8-a51c-9310823089fe.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46111 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53473 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: bb494837-6328-40e8-a51c-9310823089fe, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_4notggd/notebooks/foo'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 19.750000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.570000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f5f81266-52af-4ea3-be36-6b738f6de526 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f5f81266-52af-4ea3-be36-6b738f6de526 317s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d275868a-eece-4bf3-80ec-9c32b3cc0bc0 (127.0.0.1) 2.040000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bb494837-6328-40e8-a51c-9310823089fe 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bb494837-6328-40e8-a51c-9310823089fe 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 317s await kernel_awaitable 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ead7d538-c279-4f28-8d3e-4cf375dbee63 (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ead7d538-c279-4f28-8d3e-4cf375dbee63', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 317s future.result() 317s ~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 317s yield maybe_future(sm.delete_session(session_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 317s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 317s raise self._exception.with_traceback(self._exception_tb) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 317s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 317s raise km.ready.exception() # type: ignore[misc] 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 317s await kernel_awaitable 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/ead7d538-c279-4f28-8d3e-4cf375dbee63 (127.0.0.1) 9.840000ms referer=None 317s --------------------------- Captured stderr teardown --------------------------- 317s Traceback (most recent call last): 317s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 317s return _run_code(code, main_globals, None, 317s "__main__", mod_spec) 317s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 317s exec(code, run_globals) 317s ~~~~^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 317s from pathlib import Path 317s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 317s class PureWindowsPath(PurePath): 317s ...<7 lines>... 317s __slots__ = () 317s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 317s import ntpath 317s File "/usr/lib/python3.14/ntpath.py", line 45, in 317s from _winapi import ( 317s ...<2 lines>... 317s LCMAP_LOWERCASE as _LCMAP_LOWERCASE) 317s File "", line 1371, in _find_and_load 317s File "", line 1333, in _find_and_load_unlocked 317s File "", line 1267, in _find_spec 317s File "", line 1292, in find_spec 317s File "", line 1266, in _get_spec 317s File "", line 1365, in find_spec 317s File "", line 152, in _path_stat 317s KeyboardInterrupt 317s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 317s 317s @self.addCleanup 317s def cleanup_sessions(): 317s for session in self.sess_api.list().json(): 317s > self.sess_api.delete(session['id']) 317s 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 317s return self._req('DELETE', id) 317s ^^^^^^^^^^^^^^^^^^^^^^^ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 317s response.raise_for_status() 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s 317s self = 317s 317s def raise_for_status(self): 317s """Raises :class:`HTTPError`, if one occurred.""" 317s 317s http_error_msg = "" 317s if isinstance(self.reason, bytes): 317s # We attempt to decode utf-8 first because some servers 317s # choose to localize their reason strings. If the string 317s # isn't utf-8, we fall back to iso-8859-1 for all other 317s # encodings. (See PR #3538) 317s try: 317s reason = self.reason.decode("utf-8") 317s except UnicodeDecodeError: 317s reason = self.reason.decode("iso-8859-1") 317s else: 317s reason = self.reason 317s 317s if 400 <= self.status_code < 500: 317s http_error_msg = ( 317s f"{self.status_code} Client Error: {reason} for url: {self.url}" 317s ) 317s 317s elif 500 <= self.status_code < 600: 317s http_error_msg = ( 317s f"{self.status_code} Server Error: {reason} for url: {self.url}" 317s ) 317s 317s if http_error_msg: 317s > raise HTTPError(http_error_msg, response=self) 317s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e79dbf7a-a9a6-4818-944b-fc3513a2f2ca 317s 317s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_4notggd/runtime/kernel-bd8533d9-6dc7-4400-9604-f45c1e481324.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36601 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37693 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: bd8533d9-6dc7-4400-9604-f45c1e481324, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_4notggd/notebooks/foo'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 19.700000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.860000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bb494837-6328-40e8-a51c-9310823089fe 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bb494837-6328-40e8-a51c-9310823089fe 317s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/ead7d538-c279-4f28-8d3e-4cf375dbee63 (127.0.0.1) 2.780000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bd8533d9-6dc7-4400-9604-f45c1e481324 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bd8533d9-6dc7-4400-9604-f45c1e481324 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 317s await kernel_awaitable 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e79dbf7a-a9a6-4818-944b-fc3513a2f2ca (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e79dbf7a-a9a6-4818-944b-fc3513a2f2ca', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 317s future.result() 317s ~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 317s yield maybe_future(sm.delete_session(session_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 317s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 317s raise self._exception.with_traceback(self._exception_tb) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 317s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 317s raise km.ready.exception() # type: ignore[misc] 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 317s await kernel_awaitable 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/e79dbf7a-a9a6-4818-944b-fc3513a2f2ca (127.0.0.1) 14.880000ms referer=None 317s --------------------------- Captured stderr teardown --------------------------- 317s Traceback (most recent call last): 317s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 317s return _run_code(code, main_globals, None, 317s "__main__", mod_spec) 317s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 317s exec(code, run_globals) 317s ~~~~^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 317s from pathlib import Path 317s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 317s from glob import _StringGlobber, _no_recurse_symlinks 317s File "/usr/lib/python3.14/glob.py", line 5, in 317s import re 317s File "/usr/lib/python3.14/re/__init__.py", line 381, in 317s import copyreg 317s File "", line 1371, in _find_and_load 317s File "", line 1333, in _find_and_load_unlocked 317s File "", line 1267, in _find_spec 317s File "", line 1292, in find_spec 317s File "", line 1266, in _get_spec 317s File "", line 1397, in find_spec 317s KeyboardInterrupt 317s _________________ AsyncSessionAPITest.test_create_file_session _________________ 317s 317s @self.addCleanup 317s def cleanup_sessions(): 317s for session in self.sess_api.list().json(): 317s > self.sess_api.delete(session['id']) 317s 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 317s return self._req('DELETE', id) 317s ^^^^^^^^^^^^^^^^^^^^^^^ 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 317s response.raise_for_status() 317s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 317s 317s self = 317s 317s def raise_for_status(self): 317s """Raises :class:`HTTPError`, if one occurred.""" 317s 317s http_error_msg = "" 317s if isinstance(self.reason, bytes): 317s # We attempt to decode utf-8 first because some servers 317s # choose to localize their reason strings. If the string 317s # isn't utf-8, we fall back to iso-8859-1 for all other 317s # encodings. (See PR #3538) 317s try: 317s reason = self.reason.decode("utf-8") 317s except UnicodeDecodeError: 317s reason = self.reason.decode("iso-8859-1") 317s else: 317s reason = self.reason 317s 317s if 400 <= self.status_code < 500: 317s http_error_msg = ( 317s f"{self.status_code} Client Error: {reason} for url: {self.url}" 317s ) 317s 317s elif 500 <= self.status_code < 600: 317s http_error_msg = ( 317s f"{self.status_code} Server Error: {reason} for url: {self.url}" 317s ) 317s 317s if http_error_msg: 317s > raise HTTPError(http_error_msg, response=self) 317s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/6ebcac08-643f-44ba-9d4c-5f3949aebcc2 317s 317s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_4notggd/runtime/kernel-0ea19926-8667-441a-86e4-7db2be666442.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48783 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57715 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0ea19926-8667-441a-86e4-7db2be666442, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_4notggd/notebooks/foo'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 19.270000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.470000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bd8533d9-6dc7-4400-9604-f45c1e481324 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bd8533d9-6dc7-4400-9604-f45c1e481324 317s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e79dbf7a-a9a6-4818-944b-fc3513a2f2ca (127.0.0.1) 1.820000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0ea19926-8667-441a-86e4-7db2be666442 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0ea19926-8667-441a-86e4-7db2be666442 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 317s await kernel_awaitable 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/6ebcac08-643f-44ba-9d4c-5f3949aebcc2 (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/6ebcac08-643f-44ba-9d4c-5f3949aebcc2', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 317s future.result() 317s ~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 317s yield maybe_future(sm.delete_session(session_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 317s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 317s raise self._exception.with_traceback(self._exception_tb) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 317s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 317s raise km.ready.exception() # type: ignore[misc] 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 317s await kernel_awaitable 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/6ebcac08-643f-44ba-9d4c-5f3949aebcc2 (127.0.0.1) 9.370000ms referer=None 317s --------------------------- Captured stderr teardown --------------------------- 317s Traceback (most recent call last): 317s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 317s return _run_code(code, main_globals, None, 317s "__main__", mod_spec) 317s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 317s exec(code, run_globals) 317s ~~~~^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 317s from pathlib import Path 317s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 317s from glob import _StringGlobber, _no_recurse_symlinks 317s File "/usr/lib/python3.14/glob.py", line 5, in 317s import re 317s File "/usr/lib/python3.14/re/__init__.py", line 126, in 317s from . import _compiler, _parser 317s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 317s from . import _parser 317s File "", line 1371, in _find_and_load 317s File "", line 1342, in _find_and_load_unlocked 317s File "", line 938, in _load_unlocked 317s File "", line 755, in exec_module 317s File "", line 888, in get_code 317s File "", line 511, in _compile_bytecode 317s KeyboardInterrupt 317s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 317s 317s self = 317s 317s def test_create_with_kernel_id(self): 317s # create a new kernel 317s r = self.request('POST', 'api/kernels') 317s r.raise_for_status() 317s kernel = r.json() 317s 317s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 317s self.assertEqual(resp.status_code, 201) 317s newsession = resp.json() 317s self.assertIn('id', newsession) 317s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 317s self.assertEqual(newsession['kernel']['id'], kernel['id']) 317s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 317s 317s sessions = self.sess_api.list().json() 317s > self.assertEqual(sessions, [newsession]) 317s E AssertionError: Lists differ: [{'id': '6ebcac08-643f-44ba-9d4c-5f3949aebcc2', 'p[553 chars]ne}}] != [{'id': 'b47572d7-8acf-40e8-a75a-742219a5a025', 'p[279 chars]ne}}] 317s E 317s E First differing element 0: 317s E {'id': '6ebcac08-643f-44ba-9d4c-5f3949aebcc2', 'p[218 chars]: 0}} 317s E {'id': 'b47572d7-8acf-40e8-a75a-742219a5a025', 'p[278 chars]one}} 317s E 317s E First list contains 1 additional elements. 317s E First extra element 1: 317s E {'id': 'b47572d7-8acf-40e8-a75a-742219a5a025', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '5933c553-b341-4732-9a8e-9ad71f61f3cb', 'name': 'python3', 'last_activity': '2026-01-22T18:28:24.816835Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 317s E 317s E Diff is 830 characters long. Set self.maxDiff to None to see it. 317s 317s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 317s ------------------------------ Captured log call ------------------------------- 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 317s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_4notggd/runtime/kernel-5933c553-b341-4732-9a8e-9ad71f61f3cb.json'] 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42371 317s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60875 317s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5933c553-b341-4732-9a8e-9ad71f61f3cb, name: python3 317s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.720000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.700000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.520000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.590000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0ea19926-8667-441a-86e4-7db2be666442 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0ea19926-8667-441a-86e4-7db2be666442 317s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/6ebcac08-643f-44ba-9d4c-5f3949aebcc2 (127.0.0.1) 1.860000ms 317s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 317s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5933c553-b341-4732-9a8e-9ad71f61f3cb 317s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5933c553-b341-4732-9a8e-9ad71f61f3cb 317s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 317s await kernel_awaitable 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b47572d7-8acf-40e8-a75a-742219a5a025 (127.0.0.1) 317s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b47572d7-8acf-40e8-a75a-742219a5a025', version='HTTP/1.1', remote_ip='127.0.0.1') 317s Traceback (most recent call last): 317s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 317s result = await result 317s ^^^^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 317s future.result() 317s ~~~~~~~~~~~~~^^ 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 317s yield maybe_future(sm.delete_session(session_id)) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 317s yielded = self.gen.throw(exc) 317s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 317s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 317s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 317s value = future.result() 317s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 317s raise self._exception.with_traceback(self._exception_tb) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 317s result = coro.send(None) 317s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 317s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 317s raise km.ready.exception() # type: ignore[misc] 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 317s await kernel_awaitable 317s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 317s result = await obj 317s ^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 317s raise e 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 317s out = await method(self, *args, **kwargs) 317s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 317s await self._async_finish_shutdown(restart=restart) 317s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 317s await asyncio.wait_for( 317s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 317s ) 317s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 317s async with timeouts.timeout(timeout): 317s ~~~~~~~~~~~~~~~~^^^^^^^^^ 317s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 317s raise RuntimeError("Timeout should be used inside a task") 317s RuntimeError: Timeout should be used inside a task 317s WARNING NotebookApp:handlers.py:612 Unhandled error 317s ERROR NotebookApp:log.py:55 { 317s "Host": "localhost:12341", 317s "Accept": "*/*", 317s "User-Agent": "python-requests/2.32.5" 317s } 317s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b47572d7-8acf-40e8-a75a-742219a5a025 (127.0.0.1) 9.410000ms referer=None/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 317s gc.collect() 317s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 318s 318s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 318s 318s self = 318s 318s def test_modify_kernel_id(self): 318s before = self.sess_api.create('foo/nb1.ipynb').json() 318s sid = before['id'] 318s 318s # create a new kernel 318s r = self.request('POST', 'api/kernels') 318s r.raise_for_status() 318s kernel = r.json() 318s 318s # Attach our session to the existing kernel 318s > after = self.sess_api.modify_kernel_id(sid, kernel['id']).json() 318s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 318s 318s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:250: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:82: in modify_kernel_id 318s return self._req('PATCH', id, body) 318s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 318s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 318s response.raise_for_status() 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s self = 318s 318s def raise_for_status(self): 318s """Raises :class:`HTTPError`, if one occurred.""" 318s 318s http_error_msg = "" 318s if isinstance(self.reason, bytes): 318s # We attempt to decode utf-8 first because some servers 318s # choose to localize their reason strings. If the string 318s # isn't utf-8, we fall back to iso-8859-1 for all other 318s # encodings. (See PR #3538) 318s try: 318s reason = self.reason.decode("utf-8") 318s except UnicodeDecodeError: 318s reason = self.reason.decode("iso-8859-1") 318s else: 318s reason = self.reason 318s 318s if 400 <= self.status_code < 500: 318s http_error_msg = ( 318s f"{self.status_code} Client Error: {reason} for url: {self.url}" 318s ) 318s 318s elif 500 <= self.status_code < 600: 318s http_error_msg = ( 318s f"{self.status_code} Server Error: {reason} for url: {self.url}" 318s ) 318s 318s if http_error_msg: 318s > raise HTTPError(http_error_msg, response=self) 318s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/16b73333-b978-4f16-bba2-428c1e291e9e 318s 318s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 318s ----------------------------- Captured stderr call ----------------------------- 318s Traceback (most recent call last): 318s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 318s return _run_code(code, main_globals, None, 318s "__main__", mod_spec) 318s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 318s exec(code, run_globals) 318s ~~~~^^^^^^^^^^^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 318s from ipykernel import kernelapp as app 318s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 318s from .connect import * # noqa: F403 318s ^^^^^^^^^^^^^^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 318s from subprocess import PIPE, Popen 318s File "/usr/lib/python3.14/subprocess.py", line 49, in 318s import signal 318s File "/usr/lib/python3.14/signal.py", line 14, in 318s _IntEnum._convert_( 318s ~~~~~~~~~~~~~~~~~~^ 318s 'Handlers', __name__, 318s ^^^^^^^^^^^^^^^^^^^^^ 318s lambda name: name in ('SIG_DFL', 'SIG_IGN')) 318s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 318s File "/usr/lib/python3.14/enum.py", line 909, in _convert_ 318s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 318s ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 318s File "/usr/lib/python3.14/enum.py", line 1723, in _simple_enum 318s def _simple_enum(etype=Enum, *, boundary=None, use_args=None): 318s 318s KeyboardInterrupt 318s ------------------------------ Captured log call ------------------------------- 318s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 318s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 318s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_4notggd/runtime/kernel-aec77b88-461f-4042-8361-67ab1b5f287c.json'] 318s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52981 318s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38543 318s INFO NotebookApp:kernelmanager.py:179 Kernel started: aec77b88-461f-4042-8361-67ab1b5f287c, name: python3 318s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_4notggd/notebooks/foo'} 318s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 18.950000ms 318s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 318s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 318s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_4notggd/runtime/kernel-0b0bb80a-6660-44ec-98f4-942ac9284935.json'] 318s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49123 318s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33795 318s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0b0bb80a-6660-44ec-98f4-942ac9284935, name: python3 318s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 318s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.420000ms 318s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 318s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for aec77b88-461f-4042-8361-67ab1b5f287c 318s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: aec77b88-461f-4042-8361-67ab1b5f287c 318s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 318s Traceback (most recent call last): 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 318s out = await method(self, *args, **kwargs) 318s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 318s await self._async_finish_shutdown(restart=restart) 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 318s await asyncio.wait_for( 318s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 318s ) 318s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 318s async with timeouts.timeout(timeout): 318s ~~~~~~~~~~~~~~~~^^^^^^^^^ 318s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 318s raise RuntimeError("Timeout should be used inside a task") 318s RuntimeError: Timeout should be used inside a task 318s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 318s Traceback (most recent call last): 318s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 318s await kernel_awaitable 318s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 318s result = await obj 318s ^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 318s raise e 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 318s out = await method(self, *args, **kwargs) 318s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 318s await self._async_finish_shutdown(restart=restart) 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 318s await asyncio.wait_for( 318s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 318s ) 318s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 318s async with timeouts.timeout(timeout): 318s ~~~~~~~~~~~~~~~~^^^^^^^^^ 318s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 318s raise RuntimeError("Timeout should be used inside a task") 318s RuntimeError: Timeout should be used inside a task 318s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/16b73333-b978-4f16-bba2-428c1e291e9e (127.0.0.1) 318s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/16b73333-b978-4f16-bba2-428c1e291e9e', version='HTTP/1.1', remote_ip='127.0.0.1') 318s Traceback (most recent call last): 318s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 318s result = await result 318s ^^^^^^^^^^^^ 318s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 318s future.result() 318s ~~~~~~~~~~~~~^^ 318s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 318s yielded = self.gen.throw(exc) 318s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 153, in patch 318s yield maybe_future( 318s km.shutdown_kernel(before['kernel']['id']) 318s ) 318s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 318s value = future.result() 318s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 318s raise self._exception.with_traceback(self._exception_tb) 318s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 318s result = coro.send(None) 318s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 318s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 318s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 318s raise km.ready.exception() # type: ignore[misc] 318s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 318s await kernel_awaitable 318s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 318s result = await obj 318s ^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 318s raise e 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 318s out = await method(self, *args, **kwargs) 318s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 318s await self._async_finish_shutdown(restart=restart) 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 318s await asyncio.wait_for( 318s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 318s ) 318s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 318s async with timeouts.timeout(timeout): 318s ~~~~~~~~~~~~~~~~^^^^^^^^^ 318s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 318s raise RuntimeError("Timeout should be used inside a task") 318s RuntimeError: Timeout should be used inside a task 318s WARNING NotebookApp:handlers.py:612 Unhandled error 318s ERROR NotebookApp:log.py:55 { 318s "Host": "localhost:12341", 318s "Accept": "*/*", 318s "User-Agent": "python-requests/2.32.5" 318s } 318s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/16b73333-b978-4f16-bba2-428c1e291e9e (127.0.0.1) 9.320000ms referer=None 318s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 318s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.430000ms 318s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 318s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0b0bb80a-6660-44ec-98f4-942ac9284935 318s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0b0bb80a-6660-44ec-98f4-942ac9284935 318s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 318s Traceback (most recent call last): 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 318s out = await method(self, *args, **kwargs) 318s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 318s await self._async_finish_shutdown(restart=restart) 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 318s await asyncio.wait_for( 318s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 318s ) 318s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 318s async with timeouts.timeout(timeout): 318s ~~~~~~~~~~~~~~~~^^^^^^^^^ 318s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 318s raise RuntimeError("Timeout should be used inside a task") 318s RuntimeError: Timeout should be used inside a task 318s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 318s Traceback (most recent call last): 318s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 318s await kernel_awaitable 318s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 318s result = await obj 318s ^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 318s raise e 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 318s out = await method(self, *args, **kwargs) 318s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 318s await self._async_finish_shutdown(restart=restart) 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 318s await asyncio.wait_for( 318s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 318s ) 318s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 318s async with timeouts.timeout(timeout): 318s ~~~~~~~~~~~~~~~~^^^^^^^^^ 318s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 318s raise RuntimeError("Timeout should be used inside a task") 318s RuntimeError: Timeout should be used inside a task 318s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/16b73333-b978-4f16-bba2-428c1e291e9e (127.0.0.1) 318s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/16b73333-b978-4f16-bba2-428c1e291e9e', version='HTTP/1.1', remote_ip='127.0.0.1') 318s Traceback (most recent call last): 318s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 318s result = await result 318s ^^^^^^^^^^^^ 318s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 318s future.result() 318s ~~~~~~~~~~~~~^^ 318s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 318s yielded = self.gen.throw(exc) 318s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 318s yield maybe_future(sm.delete_session(session_id)) 318s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 318s value = future.result() 318s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 318s yielded = self.gen.throw(exc) 318s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 318s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 318s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 318s value = future.result() 318s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 318s raise self._exception.with_traceback(self._exception_tb) 318s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 318s result = coro.send(None) 318s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 318s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 318s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 318s raise km.ready.exception() # type: ignore[misc] 318s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 318s await kernel_awaitable 318s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 318s result = await obj 318s ^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 318s raise e 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 318s out = await method(self, *args, **kwargs) 318s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 318s await self._async_finish_shutdown(restart=restart) 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 318s await asyncio.wait_for( 318s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 318s ) 318s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 318s async with timeouts.timeout(timeout): 318s ~~~~~~~~~~~~~~~~^^^^^^^^^ 318s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 318s raise RuntimeError("Timeout should be used inside a task") 318s RuntimeError: Timeout should be used inside a task 318s WARNING NotebookApp:handlers.py:612 Unhandled error 318s ERROR NotebookApp:log.py:55 { 318s "Host": "localhost:12341", 318s "Accept": "*/*", 318s "User-Agent": "python-requests/2.32.5" 318s } 318s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/16b73333-b978-4f16-bba2-428c1e291e9e (127.0.0.1) 9.240000ms referer=None 318s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 318s 318s self = 318s 318s def test_modify_kernel_name(self): 318s before = self.sess_api.create('foo/nb1.ipynb').json() 318s sid = before['id'] 318s 318s after = self.sess_api.modify_kernel_name(sid, before['kernel']['name']).json() 318s self.assertEqual(after['id'], sid) 318s self.assertEqual(after['path'], before['path']) 318s self.assertEqual(after['type'], before['type']) 318s self.assertNotEqual(after['kernel']['id'], before['kernel']['id']) 318s 318s # check kernel list, to be sure previous kernel was cleaned up 318s r = self.request('GET', 'api/kernels') 318s r.raise_for_status() 318s kernel_list = r.json() 318s after['kernel'].pop('last_activity') 318s [ k.pop('last_activity') for k in kernel_list ] 318s > self.assertEqual(kernel_list, [after['kernel']]) 318s E AssertionError: Lists differ: [{'id': 'aec77b88-461f-4042-8361-67ab1b5f287c', 'n[177 chars]: 0}] != [{'id': 'd565ff0a-bab3-4118-95a5-3ff69fe8aa51', 'n[61 chars]: 0}] 318s E 318s E First differing element 0: 318s E {'id': 'aec77b88-461f-4042-8361-67ab1b5f287c', 'n[60 chars]': 0} 318s E {'id': 'd565ff0a-bab3-4118-95a5-3ff69fe8aa51', 'n[60 chars]': 0} 318s E 318s E First list contains 1 additional elements. 318s E First extra element 1: 318s E {'id': 'd565ff0a-bab3-4118-95a5-3ff69fe8aa51', 'name': 'python3', 'execution_state': 'starting', 'connections': 0} 318s E 318s E [{'connections': 0, 318s E - 'execution_state': 'starting', 318s E - 'id': 'aec77b88-461f-4042-8361-67ab1b5f287c', 318s E - 'name': 'python3'}, 318s E - {'connections': 0, 318s E 'execution_state': 'starting', 318s E 'id': 'd565ff0a-bab3-4118-95a5-3ff69fe8aa51', 318s E 'name': 'python3'}] 318s 318s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:238: AssertionError 318s ------------------------------ Captured log call ------------------------------- 318s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 318s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.690000ms 318s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 318s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 318s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_4notggd/runtime/kernel-d565ff0a-bab3-4118-95a5-3ff69fe8aa51.json'] 318s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54503 318s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40161 318s INFO NotebookApp:kernelmanager.py:179 Kernel started: d565ff0a-bab3-4118-95a5-3ff69fe8aa51, name: python3 318s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp_4notggd/notebooks/foo'} 318s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0b0bb80a-6660-44ec-98f4-942ac9284935 318s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0b0bb80a-6660-44ec-98f4-942ac9284935 318s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/16b73333-b978-4f16-bba2-428c1e291e9e (127.0.0.1) 19.790000ms 318s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 318s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.330000ms 318s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 318s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.460000ms 318s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 318s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d565ff0a-bab3-4118-95a5-3ff69fe8aa51 318s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d565ff0a-bab3-4118-95a5-3ff69fe8aa51 318s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 318s Traceback (most recent call last): 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 318s out = await method(self, *args, **kwargs) 318s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 318s await self._async_finish_shutdown(restart=restart) 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 318s await asyncio.wait_for( 318s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 318s ) 318s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 318s async with timeouts.timeout(timeout): 318s ~~~~~~~~~~~~~~~~^^^^^^^^^ 318s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 318s raise RuntimeError("Timeout should be used inside a task") 318s RuntimeError: Timeout should be used inside a task 318s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 318s Traceback (most recent call last): 318s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 318s await kernel_awaitable 318s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 318s result = await obj 318s ^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 318s raise e 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 318s out = await method(self, *args, **kwargs) 318s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 318s await self._async_finish_shutdown(restart=restart) 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 318s await asyncio.wait_for( 318s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 318s ) 318s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 318s async with timeouts.timeout(timeout): 318s ~~~~~~~~~~~~~~~~^^^^^^^^^ 318s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 318s raise RuntimeError("Timeout should be used inside a task") 318s RuntimeError: Timeout should be used inside a task 318s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/16b73333-b978-4f16-bba2-428c1e291e9e (127.0.0.1) 318s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/16b73333-b978-4f16-bba2-428c1e291e9e', version='HTTP/1.1', remote_ip='127.0.0.1') 318s Traceback (most recent call last): 318s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 318s result = await result 318s ^^^^^^^^^^^^ 318s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 318s future.result() 318s ~~~~~~~~~~~~~^^ 318s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 318s yielded = self.gen.throw(exc) 318s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 318s yield maybe_future(sm.delete_session(session_id)) 318s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 318s value = future.result() 318s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 318s yielded = self.gen.throw(exc) 318s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 318s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 318s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 318s value = future.result() 318s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 318s raise self._exception.with_traceback(self._exception_tb) 318s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 318s result = coro.send(None) 318s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 318s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 318s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 318s raise km.ready.exception() # type: ignore[misc] 318s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 318s await kernel_awaitable 318s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 318s result = await obj 318s ^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 318s raise e 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 318s out = await method(self, *args, **kwargs) 318s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 318s await self._async_finish_shutdown(restart=restart) 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 318s await asyncio.wait_for( 318s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 318s ) 318s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 318s async with timeouts.timeout(timeout): 318s ~~~~~~~~~~~~~~~~^^^^^^^^^ 318s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 318s raise RuntimeError("Timeout should be used inside a task") 318s RuntimeError: Timeout should be used inside a task 318s WARNING NotebookApp:handlers.py:612 Unhandled error 318s ERROR NotebookApp:log.py:55 { 318s "Host": "localhost:12341", 318s "Accept": "*/*", 318s "User-Agent": "python-requests/2.32.5" 318s } 318s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/16b73333-b978-4f16-bba2-428c1e291e9e (127.0.0.1) 9.520000ms referer=None 318s _______________ AsyncSessionAPITest.test_modify_path_deprecated ________________ 318s 318s @self.addCleanup 318s def cleanup_sessions(): 318s for session in self.sess_api.list().json(): 318s > self.sess_api.delete(session['id']) 318s 318s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 318s return self._req('DELETE', id) 318s ^^^^^^^^^^^^^^^^^^^^^^^ 318s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 318s response.raise_for_status() 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s self = 318s 318s def raise_for_status(self): 318s """Raises :class:`HTTPError`, if one occurred.""" 318s 318s http_error_msg = "" 318s if isinstance(self.reason, bytes): 318s # We attempt to decode utf-8 first because some servers 318s # choose to localize their reason strings. If the string 318s # isn't utf-8, we fall back to iso-8859-1 for all other 318s # encodings. (See PR #3538) 318s try: 318s reason = self.reason.decode("utf-8") 318s except UnicodeDecodeError: 318s reason = self.reason.decode("iso-8859-1") 318s else: 318s reason = self.reason 318s 318s if 400 <= self.status_code < 500: 318s http_error_msg = ( 318s f"{self.status_code} Client Error: {reason} for url: {self.url}" 318s ) 318s 318s elif 500 <= self.status_code < 600: 318s http_error_msg = ( 318s f"{self.status_code} Server Error: {reason} for url: {self.url}" 318s ) 318s 318s if http_error_msg: 318s > raise HTTPError(http_error_msg, response=self) 318s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f5a8b8c0-676f-4a8d-8c55-5dea36e806fc 318s 318s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 318s ------------------------------ Captured log call ------------------------------- 318s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 318s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 318s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_4notggd/runtime/kernel-c65ac30c-04b4-4011-8424-1dfa2f42851b.json'] 318s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42209 318s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41509 318s INFO NotebookApp:kernelmanager.py:179 Kernel started: c65ac30c-04b4-4011-8424-1dfa2f42851b, name: python3 318s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_4notggd/notebooks/foo'} 318s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 19.130000ms 318s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 318s WARNING NotebookApp:handlers.py:124 Sessions API changed, see updated swagger docs 318s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/f5a8b8c0-676f-4a8d-8c55-5dea36e806fc (127.0.0.1) 1.880000ms 318s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 318s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.430000ms 318s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 318s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c65ac30c-04b4-4011-8424-1dfa2f42851b 318s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c65ac30c-04b4-4011-8424-1dfa2f42851b 318s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 318s Traceback (most recent call last): 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 318s out = await method(self, *args, **kwargs) 318s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 318s await self._async_finish_shutdown(restart=restart) 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 318s await asyncio.wait_for( 318s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 318s ) 318s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 318s async with timeouts.timeout(timeout): 318s ~~~~~~~~~~~~~~~~^^^^^^^^^ 318s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 318s raise RuntimeError("Timeout should be used inside a task") 318s RuntimeError: Timeout should be used inside a task 318s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 318s Traceback (most recent call last): 318s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 318s await kernel_awaitable 318s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 318s result = await obj 318s ^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 318s raise e 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 318s out = await method(self, *args, **kwargs) 318s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 318s await self._async_finish_shutdown(restart=restart) 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 318s await asyncio.wait_for( 318s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 318s ) 318s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 318s async with timeouts.timeout(timeout): 318s ~~~~~~~~~~~~~~~~^^^^^^^^^ 318s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 318s raise RuntimeError("Timeout should be used inside a task") 318s RuntimeError: Timeout should be used inside a task 318s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f5a8b8c0-676f-4a8d-8c55-5dea36e806fc (127.0.0.1) 318s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f5a8b8c0-676f-4a8d-8c55-5dea36e806fc', version='HTTP/1.1', remote_ip='127.0.0.1') 318s Traceback (most recent call last): 318s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 318s result = await result 318s ^^^^^^^^^^^^ 318s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 318s future.result() 318s ~~~~~~~~~~~~~^^ 318s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 318s yielded = self.gen.throw(exc) 318s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 318s yield maybe_future(sm.delete_session(session_id)) 318s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 318s value = future.result() 318s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 318s yielded = self.gen.throw(exc) 318s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 318s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 318s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 318s value = future.result() 318s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 318s raise self._exception.with_traceback(self._exception_tb) 318s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 318s result = coro.send(None) 318s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 318s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 318s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 318s raise km.ready.exception() # type: ignore[misc] 318s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 318s await kernel_awaitable 318s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 318s result = await obj 318s ^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 318s raise e 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 318s out = await method(self, *args, **kwargs) 318s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 318s await self._async_finish_shutdown(restart=restart) 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 318s await asyncio.wait_for( 318s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 318s ) 318s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 318s async with timeouts.timeout(timeout): 318s ~~~~~~~~~~~~~~~~^^^^^^^^^ 318s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 318s raise RuntimeError("Timeout should be used inside a task") 318s RuntimeError: Timeout should be used inside a task 318s WARNING NotebookApp:handlers.py:612 Unhandled error 318s ERROR NotebookApp:log.py:55 { 318s "Host": "localhost:12341", 318s "Accept": "*/*", 318s "User-Agent": "python-requests/2.32.5" 318s } 318s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/f5a8b8c0-676f-4a8d-8c55-5dea36e806fc (127.0.0.1) 9.400000ms referer=None 318s --------------------------- Captured stderr teardown --------------------------- 318s Traceback (most recent call last): 318s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 318s return _run_code(code, main_globals, None, 318s "__main__", mod_spec) 318s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 318s exec(code, run_globals) 318s ~~~~^^^^^^^^^^^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 318s from pathlib import Path 318s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 318s from glob import _StringGlobber, _no_recurse_symlinks 318s File "/usr/lib/python3.14/glob.py", line 236, in 318s magic_check = re.compile('([*?[])') 318s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 318s return _compile(pattern, flags) 318s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 318s p = _compiler.compile(pattern, flags) 318s File "/usr/lib/python3.14/re/_compiler.py", line 774, in compile 318s indexgroup = [None] * p.state.groups 318s ^^^^^^^^^^^^^^ 318s File "/usr/lib/python3.14/re/_parser.py", line 83, in groups 318s @property 318s 318s KeyboardInterrupt 318s _____________________ AsyncSessionAPITest.test_modify_type _____________________ 318s 318s @self.addCleanup 318s def cleanup_sessions(): 318s for session in self.sess_api.list().json(): 318s > self.sess_api.delete(session['id']) 318s 318s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 318s return self._req('DELETE', id) 318s ^^^^^^^^^^^^^^^^^^^^^^^ 318s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 318s response.raise_for_status() 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s self = 318s 318s def raise_for_status(self): 318s """Raises :class:`HTTPError`, if one occurred.""" 318s 318s http_error_msg = "" 318s if isinstance(self.reason, bytes): 318s # We attempt to decode utf-8 first because some servers 318s # choose to localize their reason strings. If the string 318s # isn't utf-8, we fall back to iso-8859-1 for all other 318s # encodings. (See PR #3538) 318s try: 318s reason = self.reason.decode("utf-8") 318s except UnicodeDecodeError: 318s reason = self.reason.decode("iso-8859-1") 318s else: 318s reason = self.reason 318s 318s if 400 <= self.status_code < 500: 318s http_error_msg = ( 318s f"{self.status_code} Client Error: {reason} for url: {self.url}" 318s ) 318s 318s elif 500 <= self.status_code < 600: 318s http_error_msg = ( 318s f"{self.status_code} Server Error: {reason} for url: {self.url}" 318s ) 318s 318s if http_error_msg: 318s > raise HTTPError(http_error_msg, response=self) 318s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b57be64b-0a02-4cf0-83c1-9440c141727c 318s 318s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 318s ------------------------------ Captured log call ------------------------------- 318s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 318s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 318s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_4notggd/runtime/kernel-9509688b-8025-4b2d-b8aa-04b5f4543bf2.json'] 318s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35139 318s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59493 318s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9509688b-8025-4b2d-b8aa-04b5f4543bf2, name: python3 318s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_4notggd/notebooks/foo'} 318s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 19.490000ms 318s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 318s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/b57be64b-0a02-4cf0-83c1-9440c141727c (127.0.0.1) 1.890000ms 318s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 318s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.540000ms 318s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 318s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c65ac30c-04b4-4011-8424-1dfa2f42851b 318s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c65ac30c-04b4-4011-8424-1dfa2f42851b 318s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/f5a8b8c0-676f-4a8d-8c55-5dea36e806fc (127.0.0.1) 1.830000ms 318s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 318s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9509688b-8025-4b2d-b8aa-04b5f4543bf2 318s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9509688b-8025-4b2d-b8aa-04b5f4543bf2 318s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 318s Traceback (most recent call last): 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 318s out = await method(self, *args, **kwargs) 318s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 318s await self._async_finish_shutdown(restart=restart) 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 318s await asyncio.wait_for( 318s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 318s ) 318s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 318s async with timeouts.timeout(timeout): 318s ~~~~~~~~~~~~~~~~^^^^^^^^^ 318s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 318s raise RuntimeError("Timeout should be used inside a task") 318s RuntimeError: Timeout should be used inside a task 318s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 318s Traceback (most recent call last): 318s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 318s await kernel_awaitable 318s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 318s result = await obj 318s ^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 318s raise e 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 318s out = await method(self, *args, **kwargs) 318s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 318s await self._async_finish_shutdown(restart=restart) 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 318s await asyncio.wait_for( 318s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 318s ) 318s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 318s async with timeouts.timeout(timeout): 318s ~~~~~~~~~~~~~~~~^^^^^^^^^ 318s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 318s raise RuntimeError("Timeout should be used inside a task") 318s RuntimeError: Timeout should be used inside a task 318s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b57be64b-0a02-4cf0-83c1-9440c141727c (127.0.0.1) 318s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b57be64b-0a02-4cf0-83c1-9440c141727c', version='HTTP/1.1', remote_ip='127.0.0.1') 318s Traceback (most recent call last): 318s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 318s result = await result 318s ^^^^^^^^^^^^ 318s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 318s future.result() 318s ~~~~~~~~~~~~~^^ 318s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 318s yielded = self.gen.throw(exc) 318s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 318s yield maybe_future(sm.delete_session(session_id)) 318s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 318s value = future.result() 318s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 318s yielded = self.gen.throw(exc) 318s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 318s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 318s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 318s value = future.result() 318s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 318s raise self._exception.with_traceback(self._exception_tb) 318s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 318s result = coro.send(None) 318s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 318s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 318s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 318s raise km.ready.exception() # type: ignore[misc] 318s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 318s await kernel_awaitable 318s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 318s result = await obj 318s ^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 318s raise e 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 318s out = await method(self, *args, **kwargs) 318s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 318s await self._async_finish_shutdown(restart=restart) 318s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 318s await asyncio.wait_for( 318s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 318s ) 318s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 318s async with timeouts.timeout(timeout): 318s ~~~~~~~~~~~~~~~~^^^^^^^^^ 318s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 318s raise RuntimeError("Timeout should be used inside a task") 318s RuntimeError: Timeout should be used inside a task 318s WARNING NotebookApp:handlers.py:612 Unhandled error 318s ERROR NotebookApp:log.py:55 { 318s "Host": "localhost:12341", 318s "Accept": "*/*", 318s "User-Agent": "python-requests/2.32.5" 318s } 318s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b57be64b-0a02-4cf0-83c1-9440c141727c (127.0.0.1) 9.320000ms referer=None 318s --------------------------- Captured stderr teardown --------------------------- 318s Traceback (most recent call last): 318s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 318s return _run_code(code, main_globals, None, 318s "__main__", mod_spec) 318s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 318s exec(code, run_globals) 318s ~~~~^^^^^^^^^^^^^^^^^^^ 318s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 318s from pathlib import Path 318s File "/usr/lib/python3.14/pathlib/__init__.py", line 622, in 318s class Path(PurePath): 318s ...<660 lines>... 318s return path 318s File "/usr/lib/python3.14/pathlib/__init__.py", line 638, in Path 318s @property 318s ^^^^^^^^ 318s KeyboardInterrupt 318s ---------------------------- Captured log teardown ----------------------------- 318s INFO NotebookApp:notebookapp.py:2164 Shutting down 2 kernels 318s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9509688b-8025-4b2d-b8aa-04b5f4543bf2 318s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bd8533d9-6dc7-4400-9604-f45c1e481324 318s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d565ff0a-bab3-4118-95a5-3ff69fe8aa51 318s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5933c553-b341-4732-9a8e-9ad71f61f3cb 318s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0b0bb80a-6660-44ec-98f4-942ac9284935 318s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: aec77b88-461f-4042-8361-67ab1b5f287c 318s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c65ac30c-04b4-4011-8424-1dfa2f42851b 318s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bb494837-6328-40e8-a51c-9310823089fe 318s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0ea19926-8667-441a-86e4-7db2be666442 318s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f5f81266-52af-4ea3-be36-6b738f6de526 318s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 318s =============================== warnings summary =============================== 318s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 318s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 318s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 318s return LooseVersion(v) >= LooseVersion(check) 318s 318s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 318s auth/tests/test_login.py: 2 warnings 318s bundler/tests/test_bundler_api.py: 2 warnings 318s services/api/tests/test_api.py: 4 warnings 318s services/config/tests/test_config_api.py: 7 warnings 318s services/contents/tests/test_contents_api.py: 318 warnings 318s services/kernels/tests/test_kernels_api.py: 113 warnings 318s services/kernelspecs/tests/test_kernelspecs_api.py: 7 warnings 318s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 318s services/sessions/tests/test_sessionmanager.py: 9 warnings 318s services/sessions/tests/test_sessions_api.py: 128 warnings 318s terminal/tests/test_terminals_api.py: 50 warnings 318s tests/test_files.py: 2 warnings 318s tests/test_gateway.py: 21 warnings 318s tests/test_notebookapp.py: 8 warnings 318s tests/test_paths.py: 2 warnings 318s tree/tests/test_tree_handler.py: 2 warnings 318s /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). 318s dt = unaware(*args, **kwargs) 318s 318s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 318s /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 318s pytestmark = pytest.mark.integration_tests 318s 318s auth/tests/test_login.py: 3 warnings 318s bundler/tests/test_bundler_api.py: 3 warnings 318s services/api/tests/test_api.py: 3 warnings 318s services/config/tests/test_config_api.py: 3 warnings 318s services/contents/tests/test_contents_api.py: 6 warnings 318s services/kernels/tests/test_kernels_api.py: 12 warnings 318s services/kernelspecs/tests/test_kernelspecs_api.py: 3 warnings 318s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 318s services/sessions/tests/test_sessions_api.py: 6 warnings 318s terminal/tests/test_terminals_api.py: 6 warnings 318s tests/test_files.py: 3 warnings 318s tests/test_gateway.py: 3 warnings 318s tests/test_notebookapp.py: 11 warnings 318s tests/test_paths.py: 3 warnings 318s tree/tests/test_tree_handler.py: 3 warnings 318s /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 318s policy = events.get_event_loop_policy() 318s 318s auth/tests/test_login.py: 8 warnings 318s bundler/tests/test_bundler_api.py: 8 warnings 318s services/api/tests/test_api.py: 8 warnings 318s services/config/tests/test_config_api.py: 8 warnings 318s services/contents/tests/test_contents_api.py: 16 warnings 318s services/kernels/tests/test_kernels_api.py: 43 warnings 318s services/kernelspecs/tests/test_kernelspecs_api.py: 8 warnings 318s services/nbconvert/tests/test_nbconvert_api.py: 8 warnings 318s services/sessions/tests/test_sessionmanager.py: 18 warnings 318s services/sessions/tests/test_sessions_api.py: 17 warnings 318s terminal/tests/test_terminals_api.py: 16 warnings 318s tests/test_files.py: 8 warnings 318s tests/test_gateway.py: 8 warnings 318s tests/test_notebookapp.py: 26 warnings 318s tests/test_paths.py: 8 warnings 318s tree/tests/test_tree_handler.py: 8 warnings 318s /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 318s loop = events.get_event_loop_policy().get_event_loop() 318s 318s bundler/tests/test_bundler_api.py: 6 warnings 318s services/api/tests/test_api.py: 6 warnings 318s services/contents/tests/test_contents_api.py: 806 warnings 318s services/contents/tests/test_largefilemanager.py: 42 warnings 318s services/contents/tests/test_manager.py: 526 warnings 318s tests/test_files.py: 8 warnings 318s tree/tests/test_tree_handler.py: 6 warnings 318s /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). 318s dt = unaware(*args, **kwargs) 318s 318s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 318s services/kernels/tests/test_kernels_api.py::KernelCullingTest::test_culling 318s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 318s loop.make_current() 318s 318s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs 318s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs_bad 318s /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/tmpc91lrh4i/data/kernels/sample 2 318s d = self.find_kernel_specs() 318s 318s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal 318s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 318s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 318s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_with_name 318s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_handler 318s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 318s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 318s terminal/tests/test_terminals_api.py::TerminalCullingTest::test_culling 318s /usr/lib/python3.14/pty.py:66: DeprecationWarning: This process (pid=6053) is multi-threaded, use of forkpty() may lead to deadlocks in the child. 318s pid, fd = os.forkpty() 318s 318s tests/test_gateway.py::TestGateway::test_gateway_kernel_lifecycle 318s tests/test_gateway.py::TestGateway::test_gateway_session_lifecycle 318s /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). 318s dt = datetime.utcnow().isoformat() + 'Z' 318s 318s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 318s =========================== short test summary info ============================ 318s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:86: Pandoc wasn't found. Skipping this test. 318s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:101: Pandoc wasn't found. Skipping this test. 318s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:109: Pandoc wasn't found. Skipping this test. 318s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:119: Pandoc wasn't found. Skipping this test. 318s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:128: Pandoc wasn't found. Skipping this test. 318s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:145: Pandoc wasn't found. Skipping this test. 318s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:682: skip send2trash tests 318s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:592: skip send2trash tests 318s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:606: skip send2trash tests 318s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:616: skip send2trash tests 318s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:332: skip send2trash tests 318s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:658: skip send2trash tests 318s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:727: skip send2trash tests 318s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/tests/test_utils.py:83: run on windows only 318s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 318s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 318s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 318s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 318s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 318s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 318s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 318s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 318s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 318s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 318s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 318s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 318s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 318s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 318s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 318s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 318s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_path_deprecated 318s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_type 318s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 318s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 318s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 318s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 318s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 318s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 318s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 318s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_path_deprecated 318s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_type 318s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 318s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 318s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 318s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 318s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 318s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 318s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 318s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 318s = 27 failed, 277 passed, 20 skipped, 6 deselected, 2383 warnings, 8 errors in 37.19s = 319s *** END OF RUN 1: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 319s *** 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 322s ============================= test session starts ============================== 322s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 322s rootdir: /tmp/autopkgtest.2Ulezp/autopkgtest_tmp 322s plugins: typeguard-4.4.4 322s collected 330 items / 303 deselected / 27 selected 322s run-last-failure: rerun previous 27 failures 322s 325s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 33%] 327s services/sessions/tests/test_sessions_api.py FFFFFEFF.FFFFFFEFF.F [100%] 327s 327s ==================================== ERRORS ==================================== 327s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 327s 327s self = 327s 327s def tearDown(self): 327s for k in self.kern_api.list().json(): 327s > self.kern_api.shutdown(k['id']) 327s 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 327s return self._req('DELETE', id) 327s ^^^^^^^^^^^^^^^^^^^^^^^ 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 327s response.raise_for_status() 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s 327s self = 327s 327s def raise_for_status(self): 327s """Raises :class:`HTTPError`, if one occurred.""" 327s 327s http_error_msg = "" 327s if isinstance(self.reason, bytes): 327s # We attempt to decode utf-8 first because some servers 327s # choose to localize their reason strings. If the string 327s # isn't utf-8, we fall back to iso-8859-1 for all other 327s # encodings. (See PR #3538) 327s try: 327s reason = self.reason.decode("utf-8") 327s except UnicodeDecodeError: 327s reason = self.reason.decode("iso-8859-1") 327s else: 327s reason = self.reason 327s 327s if 400 <= self.status_code < 500: 327s http_error_msg = ( 327s f"{self.status_code} Client Error: {reason} for url: {self.url}" 327s ) 327s 327s elif 500 <= self.status_code < 600: 327s http_error_msg = ( 327s f"{self.status_code} Server Error: {reason} for url: {self.url}" 327s ) 327s 327s if http_error_msg: 327s > raise HTTPError(http_error_msg, response=self) 327s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/139fb192-667c-4b13-9769-61f0108340d2 327s 327s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 327s ----------------------------- Captured stderr call ----------------------------- 327s Traceback (most recent call last): 327s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 327s return _run_code(code, main_globals, None, 327s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 327s exec(code, run_globals) 327s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 327s from pathlib import Path 327s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 327s from glob import _StringGlobber, _no_recurse_symlinks 327s File "/usr/lib/python3.14/glob.py", line 5, in 327s import re 327s File "/usr/lib/python3.14/re/__init__.py", line 125, in 327s import enum 327s File "", line 1371, in _find_and_load 327s File "", line 1342, in _find_and_load_unlocked 327s File "", line 938, in _load_unlocked 327s File "", line 755, in exec_module 327s File "", line 888, in get_code 327s File "", line 511, in _compile_bytecode 327s KeyboardInterrupt 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4klu1ou7/runtime/kernel-139fb192-667c-4b13-9769-61f0108340d2.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58341 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38773 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: 139fb192-667c-4b13-9769-61f0108340d2, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 20.300000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.470000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4klu1ou7/runtime/kernel-270510fc-10f0-45b7-8130-be752fe54125.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54043 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59849 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: 270510fc-10f0-45b7-8130-be752fe54125, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 21.110000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.440000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 270510fc-10f0-45b7-8130-be752fe54125 327s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/270510fc-10f0-45b7-8130-be752fe54125/interrupt (127.0.0.1) 2.100000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 327s yield maybe_future(km.restart_kernel(kernel_id)) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 327s raise self._exception.with_traceback(self._exception_tb) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 327s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 327s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 327s await ensure_async(kernel.restart_kernel(now=now)) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 327s await self._async_shutdown_kernel(now=now, restart=True) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/270510fc-10f0-45b7-8130-be752fe54125/restart (127.0.0.1) 7.380000ms referer=None 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.470000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 139fb192-667c-4b13-9769-61f0108340d2 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 139fb192-667c-4b13-9769-61f0108340d2 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/139fb192-667c-4b13-9769-61f0108340d2 (127.0.0.1) 327s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/139fb192-667c-4b13-9769-61f0108340d2', version='HTTP/1.1', remote_ip='127.0.0.1') 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 327s result = await result 327s ^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 327s yielded = ctx_run(next, result) 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 327s yield maybe_future(km.shutdown_kernel(kernel_id)) 327s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 327s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 327s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 327s stopper = ensure_async(km.shutdown_kernel(now, restart)) 327s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s WARNING NotebookApp:handlers.py:612 Unhandled error 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/139fb192-667c-4b13-9769-61f0108340d2 (127.0.0.1) 9.920000ms referer=None 327s --------------------------- Captured stderr teardown --------------------------- 327s Traceback (most recent call last): 327s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 327s return _run_code(code, main_globals, None, 327s "__main__", mod_spec) 327s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 327s exec(code, run_globals) 327s ~~~~^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 327s from ipykernel import kernelapp as app 327s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 327s from .connect import * # noqa: F403 327s ^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 327s import jupyter_client 327s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 327s from .asynchronous import AsyncKernelClient 327s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 327s from .client import AsyncKernelClient # noqa 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 327s import zmq.asyncio 327s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 327s from zmq import sugar 327s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 327s from zmq.sugar import context, frame, poll, socket, tracker, version 327s File "/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 23, in 327s from .socket import Socket, SyncSocket 327s File "/usr/lib/python3/dist-packages/zmq/sugar/socket.py", line 42, in 327s _SocketType = TypeVar("_SocketType", bound="Socket") 327s File "/usr/lib/python3.14/typing.py", line 202, in _type_check 327s arg = _type_convert(arg, module=module, allow_special_forms=allow_special_forms, owner=owner) 327s File "/usr/lib/python3.14/typing.py", line 180, in _type_convert 327s return _make_forward_ref(arg, module=module, is_class=allow_special_forms, owner=owner) 327s File "/usr/lib/python3.14/typing.py", line 958, in _make_forward_ref 327s forward_ref = _lazy_annotationlib.ForwardRef(code, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3.14/typing.py", line 168, in __getattr__ 327s import annotationlib 327s File "", line 1371, in _find_and_load 327s File "", line 1342, in _find_and_load_unlocked 327s File "", line 938, in _load_unlocked 327s File "", line 755, in exec_module 327s File "", line 888, in get_code 327s File "", line 511, in _compile_bytecode 327s KeyboardInterrupt 327s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 327s 327s self = 327s 327s def tearDown(self): 327s for k in self.kern_api.list().json(): 327s > self.kern_api.shutdown(k['id']) 327s 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 327s return self._req('DELETE', id) 327s ^^^^^^^^^^^^^^^^^^^^^^^ 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 327s response.raise_for_status() 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s 327s self = 327s 327s def raise_for_status(self): 327s """Raises :class:`HTTPError`, if one occurred.""" 327s 327s http_error_msg = "" 327s if isinstance(self.reason, bytes): 327s # We attempt to decode utf-8 first because some servers 327s # choose to localize their reason strings. If the string 327s # isn't utf-8, we fall back to iso-8859-1 for all other 327s # encodings. (See PR #3538) 327s try: 327s reason = self.reason.decode("utf-8") 327s except UnicodeDecodeError: 327s reason = self.reason.decode("iso-8859-1") 327s else: 327s reason = self.reason 327s 327s if 400 <= self.status_code < 500: 327s http_error_msg = ( 327s f"{self.status_code} Client Error: {reason} for url: {self.url}" 327s ) 327s 327s elif 500 <= self.status_code < 600: 327s http_error_msg = ( 327s f"{self.status_code} Server Error: {reason} for url: {self.url}" 327s ) 327s 327s if http_error_msg: 327s > raise HTTPError(http_error_msg, response=self) 327s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/2d0c9131-d604-4efd-b0ae-74dcfa58ce02 327s 327s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 327s ----------------------------- Captured stderr call ----------------------------- 327s Traceback (most recent call last): 327s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 327s return _run_code(code, main_globals, None, 327s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 327s exec(code, run_globals) 327s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 327s from pathlib import Path 327s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 327s from glob import _StringGlobber, _no_recurse_symlinks 327s File "/usr/lib/python3.14/glob.py", line 5, in 327s import re 327s File "/usr/lib/python3.14/re/__init__.py", line 125, in 327s import enum 327s File "/usr/lib/python3.14/enum.py", line 153, in 327s class _not_given: 327s KeyboardInterrupt 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpcnd_l1lb/runtime/kernel-2d0c9131-d604-4efd-b0ae-74dcfa58ce02.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37385 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43781 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2d0c9131-d604-4efd-b0ae-74dcfa58ce02, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.880000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.440000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpcnd_l1lb/runtime/kernel-1c37277b-9978-4235-97aa-e5d6d8550508.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46559 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44567 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1c37277b-9978-4235-97aa-e5d6d8550508, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.620000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.390000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 1c37277b-9978-4235-97aa-e5d6d8550508 327s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/1c37277b-9978-4235-97aa-e5d6d8550508/interrupt (127.0.0.1) 1.570000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 327s yield maybe_future(km.restart_kernel(kernel_id)) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 327s raise self._exception.with_traceback(self._exception_tb) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 327s result = coro.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 327s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 327s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 327s yield self # This tells Task to wait for completion. 327s ^^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 327s future.result() 327s ~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 327s raise self._exception.with_traceback(self._exception_tb) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 327s await ensure_async(kernel.restart_kernel(now=now)) 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 327s await self._async_shutdown_kernel(now=now, restart=True) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/1c37277b-9978-4235-97aa-e5d6d8550508/restart (127.0.0.1) 5.040000ms referer=None 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.370000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2d0c9131-d604-4efd-b0ae-74dcfa58ce02 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2d0c9131-d604-4efd-b0ae-74dcfa58ce02 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 327s await kernel_awaitable 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/2d0c9131-d604-4efd-b0ae-74dcfa58ce02 (127.0.0.1) 327s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/2d0c9131-d604-4efd-b0ae-74dcfa58ce02', version='HTTP/1.1', remote_ip='127.0.0.1') 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 327s result = await result 327s ^^^^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 327s future.result() 327s ~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 327s yield maybe_future(km.shutdown_kernel(kernel_id)) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 327s raise self._exception.with_traceback(self._exception_tb) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 327s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 327s raise km.ready.exception() # type: ignore[misc] 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 327s await kernel_awaitable 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s WARNING NotebookApp:handlers.py:612 Unhandled error 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/2d0c9131-d604-4efd-b0ae-74dcfa58ce02 (127.0.0.1) 8.580000ms referer=None 327s --------------------------- Captured stderr teardown --------------------------- 327s Traceback (most recent call last): 327s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 327s return _run_code(code, main_globals, None, 327s "__main__", mod_spec) 327s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 327s exec(code, run_globals) 327s ~~~~^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 327s from ipykernel import kernelapp as app 327s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 327s from .connect import * # noqa: F403 327s ^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 327s import jupyter_client 327s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 327s from .asynchronous import AsyncKernelClient 327s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 327s from .client import AsyncKernelClient # noqa 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 327s import zmq.asyncio 327s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 327s from zmq import sugar 327s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 327s from zmq.sugar import context, frame, poll, socket, tracker, version 327s File "/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 23, in 327s from .socket import Socket, SyncSocket 327s File "/usr/lib/python3/dist-packages/zmq/sugar/socket.py", line 80, in 327s class Socket(SocketBase, AttributeSetter, Generic[SocketReturnType]): 327s ...<1039 lines>... 327s self.monitor(None, 0) 327s File "/usr/lib/python3/dist-packages/zmq/sugar/socket.py", line 230, in Socket 327s @classmethod 327s ^^^^^^^^^^^ 327s KeyboardInterrupt 327s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 327s 327s @self.addCleanup 327s def cleanup_sessions(): 327s for session in self.sess_api.list().json(): 327s > self.sess_api.delete(session['id']) 327s 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 327s return self._req('DELETE', id) 327s ^^^^^^^^^^^^^^^^^^^^^^^ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 327s response.raise_for_status() 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s 327s self = 327s 327s def raise_for_status(self): 327s """Raises :class:`HTTPError`, if one occurred.""" 327s 327s http_error_msg = "" 327s if isinstance(self.reason, bytes): 327s # We attempt to decode utf-8 first because some servers 327s # choose to localize their reason strings. If the string 327s # isn't utf-8, we fall back to iso-8859-1 for all other 327s # encodings. (See PR #3538) 327s try: 327s reason = self.reason.decode("utf-8") 327s except UnicodeDecodeError: 327s reason = self.reason.decode("iso-8859-1") 327s else: 327s reason = self.reason 327s 327s if 400 <= self.status_code < 500: 327s http_error_msg = ( 327s f"{self.status_code} Client Error: {reason} for url: {self.url}" 327s ) 327s 327s elif 500 <= self.status_code < 600: 327s http_error_msg = ( 327s f"{self.status_code} Server Error: {reason} for url: {self.url}" 327s ) 327s 327s if http_error_msg: 327s > raise HTTPError(http_error_msg, response=self) 327s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/aa2e34d6-ca34-4d63-ab7c-7aa678be21d5 327s 327s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphqcs0ysk/runtime/kernel-d4dcb178-79c8-4df0-9169-b3fd3d599ef6.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41865 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38817 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: d4dcb178-79c8-4df0-9169-b3fd3d599ef6, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 20.530000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.770000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.680000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.710000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 41b5ba9d-bcec-4a06-a447-85ece0090d44 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 41b5ba9d-bcec-4a06-a447-85ece0090d44 327s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c386be23-7b1a-47d4-8609-c4224bab5877 (127.0.0.1) 2.590000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d4dcb178-79c8-4df0-9169-b3fd3d599ef6 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d4dcb178-79c8-4df0-9169-b3fd3d599ef6 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/aa2e34d6-ca34-4d63-ab7c-7aa678be21d5 (127.0.0.1) 327s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/aa2e34d6-ca34-4d63-ab7c-7aa678be21d5', version='HTTP/1.1', remote_ip='127.0.0.1') 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 327s result = await result 327s ^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 327s yield maybe_future(sm.delete_session(session_id)) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 327s yielded = self.gen.send(value) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 327s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 327s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 327s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 327s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 327s stopper = ensure_async(km.shutdown_kernel(now, restart)) 327s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s WARNING NotebookApp:handlers.py:612 Unhandled error 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/aa2e34d6-ca34-4d63-ab7c-7aa678be21d5 (127.0.0.1) 11.250000ms referer=None 327s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 327s 327s @self.addCleanup 327s def cleanup_sessions(): 327s for session in self.sess_api.list().json(): 327s > self.sess_api.delete(session['id']) 327s 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 327s return self._req('DELETE', id) 327s ^^^^^^^^^^^^^^^^^^^^^^^ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 327s response.raise_for_status() 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s 327s self = 327s 327s def raise_for_status(self): 327s """Raises :class:`HTTPError`, if one occurred.""" 327s 327s http_error_msg = "" 327s if isinstance(self.reason, bytes): 327s # We attempt to decode utf-8 first because some servers 327s # choose to localize their reason strings. If the string 327s # isn't utf-8, we fall back to iso-8859-1 for all other 327s # encodings. (See PR #3538) 327s try: 327s reason = self.reason.decode("utf-8") 327s except UnicodeDecodeError: 327s reason = self.reason.decode("iso-8859-1") 327s else: 327s reason = self.reason 327s 327s if 400 <= self.status_code < 500: 327s http_error_msg = ( 327s f"{self.status_code} Client Error: {reason} for url: {self.url}" 327s ) 327s 327s elif 500 <= self.status_code < 600: 327s http_error_msg = ( 327s f"{self.status_code} Server Error: {reason} for url: {self.url}" 327s ) 327s 327s if http_error_msg: 327s > raise HTTPError(http_error_msg, response=self) 327s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d724beb5-00c0-4daa-be55-d7a242286e5e 327s 327s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqukw3ap5/runtime/kernel-1f5af816-9bc3-4a56-ad66-da9bb2193494.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33123 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43387 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1f5af816-9bc3-4a56-ad66-da9bb2193494, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.960000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.640000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.550000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 2.630000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b1138a8b-e99d-4a56-af98-9eed457a36e6 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b1138a8b-e99d-4a56-af98-9eed457a36e6 327s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/4e62d88c-9bde-49fa-a14c-58e2d37ad7a8 (127.0.0.1) 1.820000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1f5af816-9bc3-4a56-ad66-da9bb2193494 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1f5af816-9bc3-4a56-ad66-da9bb2193494 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 327s await kernel_awaitable 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d724beb5-00c0-4daa-be55-d7a242286e5e (127.0.0.1) 327s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d724beb5-00c0-4daa-be55-d7a242286e5e', version='HTTP/1.1', remote_ip='127.0.0.1') 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 327s result = await result 327s ^^^^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 327s future.result() 327s ~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 327s yield maybe_future(sm.delete_session(session_id)) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 327s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 327s raise self._exception.with_traceback(self._exception_tb) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 327s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 327s raise km.ready.exception() # type: ignore[misc] 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 327s await kernel_awaitable 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s WARNING NotebookApp:handlers.py:612 Unhandled error 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/d724beb5-00c0-4daa-be55-d7a242286e5e (127.0.0.1) 9.370000ms referer=None 327s =================================== FAILURES =================================== 327s ______________________ KernelAPITest.test_default_kernel _______________________ 327s 327s self = 327s 327s def tearDown(self): 327s for k in self.kern_api.list().json(): 327s > self.kern_api.shutdown(k['id']) 327s 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 327s return self._req('DELETE', id) 327s ^^^^^^^^^^^^^^^^^^^^^^^ 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 327s response.raise_for_status() 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s 327s self = 327s 327s def raise_for_status(self): 327s """Raises :class:`HTTPError`, if one occurred.""" 327s 327s http_error_msg = "" 327s if isinstance(self.reason, bytes): 327s # We attempt to decode utf-8 first because some servers 327s # choose to localize their reason strings. If the string 327s # isn't utf-8, we fall back to iso-8859-1 for all other 327s # encodings. (See PR #3538) 327s try: 327s reason = self.reason.decode("utf-8") 327s except UnicodeDecodeError: 327s reason = self.reason.decode("iso-8859-1") 327s else: 327s reason = self.reason 327s 327s if 400 <= self.status_code < 500: 327s http_error_msg = ( 327s f"{self.status_code} Client Error: {reason} for url: {self.url}" 327s ) 327s 327s elif 500 <= self.status_code < 600: 327s http_error_msg = ( 327s f"{self.status_code} Server Error: {reason} for url: {self.url}" 327s ) 327s 327s if http_error_msg: 327s > raise HTTPError(http_error_msg, response=self) 327s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/eec58295-5974-470e-87d7-66fb3a3138d5 327s 327s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 327s ------------------------------ Captured log setup ------------------------------ 327s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp4klu1ou7/config', '/tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp4klu1ou7/etc/jupyter'] for config files 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp4klu1ou7/etc/jupyter 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp4klu1ou7/config 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp4klu1ou7/etc/jupyter 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp4klu1ou7/config 327s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp4klu1ou7/notebooks 327s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 327s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 327s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 327s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 327s WARNING NotebookApp:handlers.py:612 Forbidden 327s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (127.0.0.1) 1.700000ms referer=None 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4klu1ou7/runtime/kernel-eec58295-5974-470e-87d7-66fb3a3138d5.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58187 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59693 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: eec58295-5974-470e-87d7-66fb3a3138d5, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 72.330000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.810000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eec58295-5974-470e-87d7-66fb3a3138d5 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eec58295-5974-470e-87d7-66fb3a3138d5 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/eec58295-5974-470e-87d7-66fb3a3138d5 (127.0.0.1) 327s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/eec58295-5974-470e-87d7-66fb3a3138d5', version='HTTP/1.1', remote_ip='127.0.0.1') 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 327s result = await result 327s ^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 327s yielded = ctx_run(next, result) 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 327s yield maybe_future(km.shutdown_kernel(kernel_id)) 327s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 327s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 327s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 327s stopper = ensure_async(km.shutdown_kernel(now, restart)) 327s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s WARNING NotebookApp:handlers.py:612 Unhandled error 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/eec58295-5974-470e-87d7-66fb3a3138d5 (127.0.0.1) 13.250000ms referer=None 327s --------------------------- Captured stderr teardown --------------------------- 327s Traceback (most recent call last): 327s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 327s return _run_code(code, main_globals, None, 327s "__main__", mod_spec) 327s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 327s exec(code, run_globals) 327s ~~~~^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 327s from pathlib import Path 327s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 327s from glob import _StringGlobber, _no_recurse_symlinks 327s File "/usr/lib/python3.14/glob.py", line 5, in 327s import re 327s File "/usr/lib/python3.14/re/__init__.py", line 126, in 327s from . import _compiler, _parser 327s File "", line 1371, in _find_and_load 327s File "", line 1333, in _find_and_load_unlocked 327s File "", line 1267, in _find_spec 327s File "", line 1292, in find_spec 327s File "", line 1266, in _get_spec 327s File "", line 1398, in find_spec 327s File "", line 166, in _path_isfile 327s File "", line 158, in _path_is_mode_type 327s File "", line 152, in _path_stat 327s KeyboardInterrupt 327s ______________________ KernelAPITest.test_kernel_handler _______________________ 327s 327s self = 327s 327s def test_kernel_handler(self): 327s # GET kernel with given id 327s kid = self.kern_api.start().json()['id'] 327s r = self.kern_api.get(kid) 327s kern1 = r.json() 327s self.assertEqual(r.status_code, 200) 327s assert isinstance(kern1, dict) 327s self.assertIn('id', kern1) 327s self.assertEqual(kern1['id'], kid) 327s 327s # Request a bad kernel id and check that a JSON 327s # message is returned! 327s bad_id = '111-111-111-111-111' 327s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 327s self.kern_api.get(bad_id) 327s 327s # DELETE kernel with id 327s > r = self.kern_api.shutdown(kid) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 327s return self._req('DELETE', id) 327s ^^^^^^^^^^^^^^^^^^^^^^^ 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 327s response.raise_for_status() 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s 327s self = 327s 327s def raise_for_status(self): 327s """Raises :class:`HTTPError`, if one occurred.""" 327s 327s http_error_msg = "" 327s if isinstance(self.reason, bytes): 327s # We attempt to decode utf-8 first because some servers 327s # choose to localize their reason strings. If the string 327s # isn't utf-8, we fall back to iso-8859-1 for all other 327s # encodings. (See PR #3538) 327s try: 327s reason = self.reason.decode("utf-8") 327s except UnicodeDecodeError: 327s reason = self.reason.decode("iso-8859-1") 327s else: 327s reason = self.reason 327s 327s if 400 <= self.status_code < 500: 327s http_error_msg = ( 327s f"{self.status_code} Client Error: {reason} for url: {self.url}" 327s ) 327s 327s elif 500 <= self.status_code < 600: 327s http_error_msg = ( 327s f"{self.status_code} Server Error: {reason} for url: {self.url}" 327s ) 327s 327s if http_error_msg: 327s > raise HTTPError(http_error_msg, response=self) 327s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/fff1dba5-d8c3-44c2-83a4-a071090a86df 327s 327s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4klu1ou7/runtime/kernel-fff1dba5-d8c3-44c2-83a4-a071090a86df.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48455 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43867 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: fff1dba5-d8c3-44c2-83a4-a071090a86df, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 22.150000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/fff1dba5-d8c3-44c2-83a4-a071090a86df (127.0.0.1) 1.510000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (127.0.0.1): Kernel does not exist: 111-111-111-111-111 327s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 327s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (127.0.0.1) 1.580000ms referer=None 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fff1dba5-d8c3-44c2-83a4-a071090a86df 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fff1dba5-d8c3-44c2-83a4-a071090a86df 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/fff1dba5-d8c3-44c2-83a4-a071090a86df (127.0.0.1) 327s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/fff1dba5-d8c3-44c2-83a4-a071090a86df', version='HTTP/1.1', remote_ip='127.0.0.1') 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 327s result = await result 327s ^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 327s yielded = ctx_run(next, result) 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 327s yield maybe_future(km.shutdown_kernel(kernel_id)) 327s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 327s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 327s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 327s stopper = ensure_async(km.shutdown_kernel(now, restart)) 327s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s WARNING NotebookApp:handlers.py:612 Unhandled error 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/fff1dba5-d8c3-44c2-83a4-a071090a86df (127.0.0.1) 10.120000ms referer=None 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.410000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eec58295-5974-470e-87d7-66fb3a3138d5 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eec58295-5974-470e-87d7-66fb3a3138d5 327s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/eec58295-5974-470e-87d7-66fb3a3138d5 (127.0.0.1) 2.070000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fff1dba5-d8c3-44c2-83a4-a071090a86df 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fff1dba5-d8c3-44c2-83a4-a071090a86df 327s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/fff1dba5-d8c3-44c2-83a4-a071090a86df (127.0.0.1) 2.090000ms 327s --------------------------- Captured stderr teardown --------------------------- 327s Traceback (most recent call last): 327s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 327s return _run_code(code, main_globals, None, 327s "__main__", mod_spec) 327s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 327s exec(code, run_globals) 327s ~~~~^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 327s from pathlib import Path 327s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 327s from glob import _StringGlobber, _no_recurse_symlinks 327s File "/usr/lib/python3.14/glob.py", line 5, in 327s import re 327s File "/usr/lib/python3.14/re/__init__.py", line 126, in 327s from . import _compiler, _parser 327s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 327s from . import _parser 327s File "", line 1371, in _find_and_load 327s File "", line 1342, in _find_and_load_unlocked 327s File "", line 938, in _load_unlocked 327s File "", line 755, in exec_module 327s File "", line 888, in get_code 327s File "", line 511, in _compile_bytecode 327s KeyboardInterrupt 327s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 327s 327s self = 327s 327s def test_main_kernel_handler(self): 327s # POST request 327s r = self.kern_api.start() 327s kern1 = r.json() 327s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 327s self.assertEqual(r.status_code, 201) 327s self.assertIsInstance(kern1, dict) 327s 327s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 327s expected_csp = '; '.join([ 327s "frame-ancestors 'self'", 327s 'report-uri ' + report_uri, 327s "default-src 'none'" 327s ]) 327s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 327s 327s # GET request 327s r = self.kern_api.list() 327s self.assertEqual(r.status_code, 200) 327s assert isinstance(r.json(), list) 327s self.assertEqual(r.json()[0]['id'], kern1['id']) 327s self.assertEqual(r.json()[0]['name'], kern1['name']) 327s 327s # create another kernel and check that they both are added to the 327s # list of kernels from a GET request 327s kern2 = self.kern_api.start().json() 327s assert isinstance(kern2, dict) 327s r = self.kern_api.list() 327s kernels = r.json() 327s self.assertEqual(r.status_code, 200) 327s assert isinstance(kernels, list) 327s self.assertEqual(len(kernels), 2) 327s 327s # Interrupt a kernel 327s r = self.kern_api.interrupt(kern2['id']) 327s self.assertEqual(r.status_code, 204) 327s 327s # Restart a kernel 327s > r = self.kern_api.restart(kern2['id']) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 327s return self._req('POST', url_path_join(id, 'restart')) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 327s response.raise_for_status() 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s 327s self = 327s 327s def raise_for_status(self): 327s """Raises :class:`HTTPError`, if one occurred.""" 327s 327s http_error_msg = "" 327s if isinstance(self.reason, bytes): 327s # We attempt to decode utf-8 first because some servers 327s # choose to localize their reason strings. If the string 327s # isn't utf-8, we fall back to iso-8859-1 for all other 327s # encodings. (See PR #3538) 327s try: 327s reason = self.reason.decode("utf-8") 327s except UnicodeDecodeError: 327s reason = self.reason.decode("iso-8859-1") 327s else: 327s reason = self.reason 327s 327s if 400 <= self.status_code < 500: 327s http_error_msg = ( 327s f"{self.status_code} Client Error: {reason} for url: {self.url}" 327s ) 327s 327s elif 500 <= self.status_code < 600: 327s http_error_msg = ( 327s f"{self.status_code} Server Error: {reason} for url: {self.url}" 327s ) 327s 327s if http_error_msg: 327s > raise HTTPError(http_error_msg, response=self) 327s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/270510fc-10f0-45b7-8130-be752fe54125/restart 327s 327s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 327s ----------------------------- Captured stderr call ----------------------------- 327s Traceback (most recent call last): 327s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 327s return _run_code(code, main_globals, None, 327s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 327s exec(code, run_globals) 327s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 327s from pathlib import Path 327s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 327s from glob import _StringGlobber, _no_recurse_symlinks 327s File "/usr/lib/python3.14/glob.py", line 5, in 327s import re 327s File "/usr/lib/python3.14/re/__init__.py", line 125, in 327s import enum 327s File "", line 1371, in _find_and_load 327s File "", line 1342, in _find_and_load_unlocked 327s File "", line 938, in _load_unlocked 327s File "", line 755, in exec_module 327s File "", line 888, in get_code 327s File "", line 511, in _compile_bytecode 327s KeyboardInterrupt 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4klu1ou7/runtime/kernel-139fb192-667c-4b13-9769-61f0108340d2.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58341 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38773 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: 139fb192-667c-4b13-9769-61f0108340d2, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 20.300000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.470000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4klu1ou7/runtime/kernel-270510fc-10f0-45b7-8130-be752fe54125.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54043 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59849 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: 270510fc-10f0-45b7-8130-be752fe54125, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 21.110000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.440000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 270510fc-10f0-45b7-8130-be752fe54125 327s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/270510fc-10f0-45b7-8130-be752fe54125/interrupt (127.0.0.1) 2.100000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 327s yield maybe_future(km.restart_kernel(kernel_id)) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 327s raise self._exception.with_traceback(self._exception_tb) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 327s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 327s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 327s gc.collect() 327s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 327s 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 327s await ensure_async(kernel.restart_kernel(now=now)) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 327s await self._async_shutdown_kernel(now=now, restart=True) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/270510fc-10f0-45b7-8130-be752fe54125/restart (127.0.0.1) 7.380000ms referer=None 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.470000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 139fb192-667c-4b13-9769-61f0108340d2 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 139fb192-667c-4b13-9769-61f0108340d2 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/139fb192-667c-4b13-9769-61f0108340d2 (127.0.0.1) 327s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/139fb192-667c-4b13-9769-61f0108340d2', version='HTTP/1.1', remote_ip='127.0.0.1') 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 327s result = await result 327s ^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 327s yielded = ctx_run(next, result) 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 327s yield maybe_future(km.shutdown_kernel(kernel_id)) 327s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 327s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 327s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 327s stopper = ensure_async(km.shutdown_kernel(now, restart)) 327s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s WARNING NotebookApp:handlers.py:612 Unhandled error 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/139fb192-667c-4b13-9769-61f0108340d2 (127.0.0.1) 9.920000ms referer=None 327s ________________________ KernelAPITest.test_no_kernels _________________________ 327s 327s self = 327s 327s def test_no_kernels(self): 327s """Make sure there are no kernels running at the start""" 327s kernels = self.kern_api.list().json() 327s > self.assertEqual(kernels, []) 327s E AssertionError: Lists differ: [{'id': '139fb192-667c-4b13-9769-61f010834[281 chars]: 0}] != [] 327s E 327s E First list contains 2 additional elements. 327s E First extra element 0: 327s E {'id': '139fb192-667c-4b13-9769-61f0108340d2', 'name': 'python3', 'last_activity': '2026-01-22T18:28:43.694101Z', 'execution_state': 'starting', 'connections': 0} 327s E 327s E + [] 327s E - [{'connections': 0, 327s E - 'execution_state': 'starting', 327s E - 'id': '139fb192-667c-4b13-9769-61f0108340d2', 327s E - 'last_activity': '2026-01-22T18:28:43.694101Z', 327s E - 'name': 'python3'}, 327s E - {'connections': 0, 327s E - 'execution_state': 'starting', 327s E - 'id': '270510fc-10f0-45b7-8130-be752fe54125', 327s E - 'last_activity': '2026-01-22T18:28:43.723909Z', 327s E - 'name': 'python3'}] 327s 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.570000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.450000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 139fb192-667c-4b13-9769-61f0108340d2 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 139fb192-667c-4b13-9769-61f0108340d2 327s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/139fb192-667c-4b13-9769-61f0108340d2 (127.0.0.1) 2.700000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 270510fc-10f0-45b7-8130-be752fe54125 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 270510fc-10f0-45b7-8130-be752fe54125 327s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/270510fc-10f0-45b7-8130-be752fe54125 (127.0.0.1) 2.450000ms 327s ---------------------------- Captured log teardown ----------------------------- 327s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 327s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 327s _____________________ AsyncKernelAPITest.test_connections ______________________ 327s 327s self = 327s 327s def tearDown(self): 327s for k in self.kern_api.list().json(): 327s > self.kern_api.shutdown(k['id']) 327s 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 327s return self._req('DELETE', id) 327s ^^^^^^^^^^^^^^^^^^^^^^^ 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 327s response.raise_for_status() 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s 327s self = 327s 327s def raise_for_status(self): 327s """Raises :class:`HTTPError`, if one occurred.""" 327s 327s http_error_msg = "" 327s if isinstance(self.reason, bytes): 327s # We attempt to decode utf-8 first because some servers 327s # choose to localize their reason strings. If the string 327s # isn't utf-8, we fall back to iso-8859-1 for all other 327s # encodings. (See PR #3538) 327s try: 327s reason = self.reason.decode("utf-8") 327s except UnicodeDecodeError: 327s reason = self.reason.decode("iso-8859-1") 327s else: 327s reason = self.reason 327s 327s if 400 <= self.status_code < 500: 327s http_error_msg = ( 327s f"{self.status_code} Client Error: {reason} for url: {self.url}" 327s ) 327s 327s elif 500 <= self.status_code < 600: 327s http_error_msg = ( 327s f"{self.status_code} Server Error: {reason} for url: {self.url}" 327s ) 327s 327s if http_error_msg: 327s > raise HTTPError(http_error_msg, response=self) 327s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/213bd83e-7366-4038-94d1-97d9ac43ca85 327s 327s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 327s ------------------------------ Captured log setup ------------------------------ 327s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpcnd_l1lb/config', '/tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpcnd_l1lb/etc/jupyter'] for config files 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpcnd_l1lb/etc/jupyter 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpcnd_l1lb/config 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpcnd_l1lb/etc/jupyter 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpcnd_l1lb/config 327s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpcnd_l1lb/notebooks 327s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 327s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 327s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 327s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 327s WARNING NotebookApp:handlers.py:612 Forbidden 327s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (127.0.0.1) 1.980000ms referer=None 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpcnd_l1lb/runtime/kernel-213bd83e-7366-4038-94d1-97d9ac43ca85.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45929 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34089 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: 213bd83e-7366-4038-94d1-97d9ac43ca85, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 19.580000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/213bd83e-7366-4038-94d1-97d9ac43ca85 (127.0.0.1) 1.430000ms 327s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/213bd83e-7366-4038-94d1-97d9ac43ca85/channels 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 327s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 213bd83e-7366-4038-94d1-97d9ac43ca85 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50251 327s DEBUG NotebookApp:kernelmanager.py:423 activity on 213bd83e-7366-4038-94d1-97d9ac43ca85: status (starting) 327s DEBUG NotebookApp:kernelmanager.py:423 activity on 213bd83e-7366-4038-94d1-97d9ac43ca85: status (busy) 327s DEBUG NotebookApp:handlers.py:306 Received kernel info: {'status': 'ok', 'protocol_version': '5.3', 'implementation': 'ipython', 'implementation_version': '8.35.0', 'language_info': {'name': 'python', 'version': '3.14.2', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.14.2 (main, Dec 6 2025, 13:20:08) [GCC 15.2.0]\nType 'copyright', 'credits' or 'license' for more information\nIPython 8.35.0 -- An enhanced Interactive Python. Type '?' for help.\n", 'help_links': [{'text': 'Python Reference', 'url': 'https://docs.python.org/3.14'}, {'text': 'IPython Reference', 'url': 'https://ipython.org/documentation.html'}, {'text': 'NumPy Reference', 'url': 'https://docs.scipy.org/doc/numpy/reference/'}, {'text': 'SciPy Reference', 'url': 'https://docs.scipy.org/doc/scipy/reference/'}, {'text': 'Matplotlib Reference', 'url': 'https://matplotlib.org/contents.html'}, {'text': 'SymPy Reference', 'url': 'http://docs.sympy.org/latest/index.html'}, {'text': 'pandas Reference', 'url': 'https://pandas.pydata.org/pandas-docs/stable/'}]} 327s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 213bd83e-7366-4038-94d1-97d9ac43ca85) to 5.4 (client). 327s DEBUG NotebookApp:kernelmanager.py:423 activity on 213bd83e-7366-4038-94d1-97d9ac43ca85: status (idle) 327s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/213bd83e-7366-4038-94d1-97d9ac43ca85/channels (127.0.0.1) 939.790000ms 327s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/213bd83e-7366-4038-94d1-97d9ac43ca85/channels 327s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 213bd83e-7366-4038-94d1-97d9ac43ca85 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34089 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50251 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45929 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50869 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50251 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45929 327s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 327s Setting websocket_ping_timeout=30000 327s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 213bd83e-7366-4038-94d1-97d9ac43ca85 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/213bd83e-7366-4038-94d1-97d9ac43ca85 (127.0.0.1) 1.540000ms 327s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 213bd83e-7366-4038-94d1-97d9ac43ca85 327s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 213bd83e-7366-4038-94d1-97d9ac43ca85 327s DEBUG NotebookApp:kernelmanager.py:423 activity on 213bd83e-7366-4038-94d1-97d9ac43ca85: status (busy) 327s DEBUG NotebookApp:kernelmanager.py:423 activity on 213bd83e-7366-4038-94d1-97d9ac43ca85: status (busy) 327s DEBUG NotebookApp:kernelmanager.py:423 activity on 213bd83e-7366-4038-94d1-97d9ac43ca85: status (idle) 327s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 213bd83e-7366-4038-94d1-97d9ac43ca85 327s DEBUG NotebookApp:handlers.py:203 Nudge: resolving control future: 213bd83e-7366-4038-94d1-97d9ac43ca85 327s DEBUG NotebookApp:kernelmanager.py:423 activity on 213bd83e-7366-4038-94d1-97d9ac43ca85: status (idle) 327s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: 213bd83e-7366-4038-94d1-97d9ac43ca85 327s DEBUG NotebookApp:handlers.py:579 Websocket closed 213bd83e-7366-4038-94d1-97d9ac43ca85:7733312e-1f50885e8cd60c31f83c7094 327s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 213bd83e-7366-4038-94d1-97d9ac43ca85:7733312e-1f50885e8cd60c31f83c7094 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 213bd83e-7366-4038-94d1-97d9ac43ca85 327s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 213bd83e-7366-4038-94d1-97d9ac43ca85:iopub 327s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 213bd83e-7366-4038-94d1-97d9ac43ca85:iopub 327s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 213bd83e-7366-4038-94d1-97d9ac43ca85:iopub 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/213bd83e-7366-4038-94d1-97d9ac43ca85 (127.0.0.1) 1.380000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/213bd83e-7366-4038-94d1-97d9ac43ca85 (127.0.0.1) 1.340000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 2.350000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 213bd83e-7366-4038-94d1-97d9ac43ca85 327s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for 213bd83e-7366-4038-94d1-97d9ac43ca85:7733312e-1f50885e8cd60c31f83c7094 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 213bd83e-7366-4038-94d1-97d9ac43ca85 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 327s await kernel_awaitable 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/213bd83e-7366-4038-94d1-97d9ac43ca85 (127.0.0.1) 327s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/213bd83e-7366-4038-94d1-97d9ac43ca85', version='HTTP/1.1', remote_ip='127.0.0.1') 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 327s result = await result 327s ^^^^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 327s future.result() 327s ~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 327s yield maybe_future(km.shutdown_kernel(kernel_id)) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 327s raise self._exception.with_traceback(self._exception_tb) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 327s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 327s raise km.ready.exception() # type: ignore[misc] 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 327s await kernel_awaitable 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s WARNING NotebookApp:handlers.py:612 Unhandled error 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/213bd83e-7366-4038-94d1-97d9ac43ca85 (127.0.0.1) 8.860000ms referer=None 327s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 327s 327s self = 327s 327s def tearDown(self): 327s for k in self.kern_api.list().json(): 327s > self.kern_api.shutdown(k['id']) 327s 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 327s return self._req('DELETE', id) 327s ^^^^^^^^^^^^^^^^^^^^^^^ 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 327s response.raise_for_status() 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s 327s self = 327s 327s def raise_for_status(self): 327s """Raises :class:`HTTPError`, if one occurred.""" 327s 327s http_error_msg = "" 327s if isinstance(self.reason, bytes): 327s # We attempt to decode utf-8 first because some servers 327s # choose to localize their reason strings. If the string 327s # isn't utf-8, we fall back to iso-8859-1 for all other 327s # encodings. (See PR #3538) 327s try: 327s reason = self.reason.decode("utf-8") 327s except UnicodeDecodeError: 327s reason = self.reason.decode("iso-8859-1") 327s else: 327s reason = self.reason 327s 327s if 400 <= self.status_code < 500: 327s http_error_msg = ( 327s f"{self.status_code} Client Error: {reason} for url: {self.url}" 327s ) 327s 327s elif 500 <= self.status_code < 600: 327s http_error_msg = ( 327s f"{self.status_code} Server Error: {reason} for url: {self.url}" 327s ) 327s 327s if http_error_msg: 327s > raise HTTPError(http_error_msg, response=self) 327s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/7b1995a7-4dbd-49cb-ac22-af62aca40510 327s 327s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpcnd_l1lb/runtime/kernel-7b1995a7-4dbd-49cb-ac22-af62aca40510.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42833 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51815 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7b1995a7-4dbd-49cb-ac22-af62aca40510, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.280000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.710000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 213bd83e-7366-4038-94d1-97d9ac43ca85 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 213bd83e-7366-4038-94d1-97d9ac43ca85 327s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/213bd83e-7366-4038-94d1-97d9ac43ca85 (127.0.0.1) 1.560000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7b1995a7-4dbd-49cb-ac22-af62aca40510 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7b1995a7-4dbd-49cb-ac22-af62aca40510 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 327s await kernel_awaitable 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/7b1995a7-4dbd-49cb-ac22-af62aca40510 (127.0.0.1) 327s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/7b1995a7-4dbd-49cb-ac22-af62aca40510', version='HTTP/1.1', remote_ip='127.0.0.1') 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 327s result = await result 327s ^^^^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 327s future.result() 327s ~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 327s yield maybe_future(km.shutdown_kernel(kernel_id)) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 327s raise self._exception.with_traceback(self._exception_tb) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 327s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 327s raise km.ready.exception() # type: ignore[misc] 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 327s await kernel_awaitable 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s WARNING NotebookApp:handlers.py:612 Unhandled error 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/7b1995a7-4dbd-49cb-ac22-af62aca40510 (127.0.0.1) 8.540000ms referer=None 327s --------------------------- Captured stderr teardown --------------------------- 327s Traceback (most recent call last): 327s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 327s return _run_code(code, main_globals, None, 327s "__main__", mod_spec) 327s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 327s exec(code, run_globals) 327s ~~~~^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 327s from pathlib import Path 327s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 327s from glob import _StringGlobber, _no_recurse_symlinks 327s File "/usr/lib/python3.14/glob.py", line 6, in 327s import fnmatch 327s File "", line 1371, in _find_and_load 327s File "", line 1333, in _find_and_load_unlocked 327s File "", line 1267, in _find_spec 327s File "", line 1292, in find_spec 327s File "", line 1266, in _get_spec 327s File "", line 1365, in find_spec 327s File "", line 152, in _path_stat 327s KeyboardInterrupt 327s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 327s 327s self = 327s 327s def test_kernel_handler(self): 327s # GET kernel with given id 327s kid = self.kern_api.start().json()['id'] 327s r = self.kern_api.get(kid) 327s kern1 = r.json() 327s self.assertEqual(r.status_code, 200) 327s assert isinstance(kern1, dict) 327s self.assertIn('id', kern1) 327s self.assertEqual(kern1['id'], kid) 327s 327s # Request a bad kernel id and check that a JSON 327s # message is returned! 327s bad_id = '111-111-111-111-111' 327s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 327s self.kern_api.get(bad_id) 327s 327s # DELETE kernel with id 327s > r = self.kern_api.shutdown(kid) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 327s return self._req('DELETE', id) 327s ^^^^^^^^^^^^^^^^^^^^^^^ 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 327s response.raise_for_status() 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s 327s self = 327s 327s def raise_for_status(self): 327s """Raises :class:`HTTPError`, if one occurred.""" 327s 327s http_error_msg = "" 327s if isinstance(self.reason, bytes): 327s # We attempt to decode utf-8 first because some servers 327s # choose to localize their reason strings. If the string 327s # isn't utf-8, we fall back to iso-8859-1 for all other 327s # encodings. (See PR #3538) 327s try: 327s reason = self.reason.decode("utf-8") 327s except UnicodeDecodeError: 327s reason = self.reason.decode("iso-8859-1") 327s else: 327s reason = self.reason 327s 327s if 400 <= self.status_code < 500: 327s http_error_msg = ( 327s f"{self.status_code} Client Error: {reason} for url: {self.url}" 327s ) 327s 327s elif 500 <= self.status_code < 600: 327s http_error_msg = ( 327s f"{self.status_code} Server Error: {reason} for url: {self.url}" 327s ) 327s 327s if http_error_msg: 327s > raise HTTPError(http_error_msg, response=self) 327s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/b3d67c09-52a4-4531-bcba-c0650f194020 327s 327s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 327s ----------------------------- Captured stderr call ----------------------------- 327s Could not import runpy._run_module_as_main 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpcnd_l1lb/runtime/kernel-b3d67c09-52a4-4531-bcba-c0650f194020.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42705 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43085 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: b3d67c09-52a4-4531-bcba-c0650f194020, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 19.150000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/b3d67c09-52a4-4531-bcba-c0650f194020 (127.0.0.1) 1.370000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (127.0.0.1): Kernel does not exist: 111-111-111-111-111 327s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 327s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (127.0.0.1) 1.460000ms referer=None 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b3d67c09-52a4-4531-bcba-c0650f194020 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b3d67c09-52a4-4531-bcba-c0650f194020 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 327s await kernel_awaitable 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/b3d67c09-52a4-4531-bcba-c0650f194020 (127.0.0.1) 327s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/b3d67c09-52a4-4531-bcba-c0650f194020', version='HTTP/1.1', remote_ip='127.0.0.1') 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 327s result = await result 327s ^^^^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 327s future.result() 327s ~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 327s yield maybe_future(km.shutdown_kernel(kernel_id)) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 327s raise self._exception.with_traceback(self._exception_tb) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 327s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 327s raise km.ready.exception() # type: ignore[misc] 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 327s await kernel_awaitable 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s WARNING NotebookApp:handlers.py:612 Unhandled error 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/b3d67c09-52a4-4531-bcba-c0650f194020 (127.0.0.1) 8.430000ms referer=None 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.490000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7b1995a7-4dbd-49cb-ac22-af62aca40510 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7b1995a7-4dbd-49cb-ac22-af62aca40510 327s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/7b1995a7-4dbd-49cb-ac22-af62aca40510 (127.0.0.1) 1.550000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b3d67c09-52a4-4531-bcba-c0650f194020 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b3d67c09-52a4-4531-bcba-c0650f194020 327s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/b3d67c09-52a4-4531-bcba-c0650f194020 (127.0.0.1) 1.600000ms 327s --------------------------- Captured stderr teardown --------------------------- 327s Traceback (most recent call last): 327s File "/usr/lib/python3.14/runpy.py", line 14, in 327s import importlib.machinery # importlib first so we can test #15386 via -m 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "", line 1371, in _find_and_load 327s File "", line 1333, in _find_and_load_unlocked 327s File "", line 1267, in _find_spec 327s File "", line 1292, in find_spec 327s File "", line 1266, in _get_spec 327s File "", line 1369, in find_spec 327s File "", line 1412, in _fill_cache 327s KeyboardInterrupt 327s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 327s 327s self = 327s 327s def test_main_kernel_handler(self): 327s # POST request 327s r = self.kern_api.start() 327s kern1 = r.json() 327s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 327s self.assertEqual(r.status_code, 201) 327s self.assertIsInstance(kern1, dict) 327s 327s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 327s expected_csp = '; '.join([ 327s "frame-ancestors 'self'", 327s 'report-uri ' + report_uri, 327s "default-src 'none'" 327s ]) 327s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 327s 327s # GET request 327s r = self.kern_api.list() 327s self.assertEqual(r.status_code, 200) 327s assert isinstance(r.json(), list) 327s self.assertEqual(r.json()[0]['id'], kern1['id']) 327s self.assertEqual(r.json()[0]['name'], kern1['name']) 327s 327s # create another kernel and check that they both are added to the 327s # list of kernels from a GET request 327s kern2 = self.kern_api.start().json() 327s assert isinstance(kern2, dict) 327s r = self.kern_api.list() 327s kernels = r.json() 327s self.assertEqual(r.status_code, 200) 327s assert isinstance(kernels, list) 327s self.assertEqual(len(kernels), 2) 327s 327s # Interrupt a kernel 327s r = self.kern_api.interrupt(kern2['id']) 327s self.assertEqual(r.status_code, 204) 327s 327s # Restart a kernel 327s > r = self.kern_api.restart(kern2['id']) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 327s return self._req('POST', url_path_join(id, 'restart')) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 327s response.raise_for_status() 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s 327s self = 327s 327s def raise_for_status(self): 327s """Raises :class:`HTTPError`, if one occurred.""" 327s 327s http_error_msg = "" 327s if isinstance(self.reason, bytes): 327s # We attempt to decode utf-8 first because some servers 327s # choose to localize their reason strings. If the string 327s # isn't utf-8, we fall back to iso-8859-1 for all other 327s # encodings. (See PR #3538) 327s try: 327s reason = self.reason.decode("utf-8") 327s except UnicodeDecodeError: 327s reason = self.reason.decode("iso-8859-1") 327s else: 327s reason = self.reason 327s 327s if 400 <= self.status_code < 500: 327s http_error_msg = ( 327s f"{self.status_code} Client Error: {reason} for url: {self.url}" 327s ) 327s 327s elif 500 <= self.status_code < 600: 327s http_error_msg = ( 327s f"{self.status_code} Server Error: {reason} for url: {self.url}" 327s ) 327s 327s if http_error_msg: 327s > raise HTTPError(http_error_msg, response=self) 327s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/1c37277b-9978-4235-97aa-e5d6d8550508/restart 327s 327s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 327s ----------------------------- Captured stderr call ----------------------------- 327s Traceback (most recent call last): 327s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 327s return _run_code(code, main_globals, None, 327s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 327s exec(code, run_globals) 327s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 327s from pathlib import Path 327s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 327s from glob import _StringGlobber, _no_recurse_symlinks 327s File "/usr/lib/python3.14/glob.py", line 5, in 327s import re 327s File "/usr/lib/python3.14/re/__init__.py", line 125, in 327s import enum 327s File "/usr/lib/python3.14/enum.py", line 153, in 327s class _not_given: 327s KeyboardInterrupt 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpcnd_l1lb/runtime/kernel-2d0c9131-d604-4efd-b0ae-74dcfa58ce02.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37385 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43781 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2d0c9131-d604-4efd-b0ae-74dcfa58ce02, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.880000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.440000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpcnd_l1lb/runtime/kernel-1c37277b-9978-4235-97aa-e5d6d8550508.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46559 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44567 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1c37277b-9978-4235-97aa-e5d6d8550508, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.620000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.390000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 1c37277b-9978-4235-97aa-e5d6d8550508 327s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/1c37277b-9978-4235-97aa-e5d6d8550508/interrupt (127.0.0.1) 1.570000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 327s yield maybe_future(km.restart_kernel(kernel_id)) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 327s raise self._exception.with_traceback(self._exception_tb) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 327s result = coro.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 327s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 327s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 327s yield self # This tells Task to wait for completion. 327s ^^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 327s future.result() 327s ~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 327s raise self._exception.with_traceback(self._exception_tb) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 327s await ensure_async(kernel.restart_kernel(now=now)) 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 327s await self._async_shutdown_kernel(now=now, restart=True) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/1c37277b-9978-4235-97aa-e5d6d8550508/restart (127.0.0.1) 5.040000ms referer=None 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.370000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2d0c9131-d604-4efd-b0ae-74dcfa58ce02 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2d0c9131-d604-4efd-b0ae-74dcfa58ce02 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 327s await kernel_awaitable 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/2d0c9131-d604-4efd-b0ae-74dcfa58ce02 (127.0.0.1) 327s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/2d0c9131-d604-4efd-b0ae-74dcfa58ce02', version='HTTP/1.1', remote_ip='127.0.0.1') 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 327s result = await result 327s ^^^^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 327s future.result() 327s ~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 327s yield maybe_future(km.shutdown_kernel(kernel_id)) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 327s raise self._exception.with_traceback(self._exception_tb) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 327s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 327s raise km.ready.exception() # type: ignore[misc] 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 327s await kernel_awaitable 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s WARNING NotebookApp:handlers.py:612 Unhandled error 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/2d0c9131-d604-4efd-b0ae-74dcfa58ce02 (127.0.0.1) 8.580000ms referer=None 327s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 327s 327s self = 327s 327s def test_no_kernels(self): 327s """Make sure there are no kernels running at the start""" 327s kernels = self.kern_api.list().json() 327s > self.assertEqual(kernels, []) 327s E AssertionError: Lists differ: [{'id': '2d0c9131-d604-4efd-b0ae-74dcfa58c[281 chars]: 0}] != [] 327s E 327s E First list contains 2 additional elements. 327s E First extra element 0: 327s E {'id': '2d0c9131-d604-4efd-b0ae-74dcfa58ce02', 'name': 'python3', 'last_activity': '2026-01-22T18:28:45.183871Z', 'execution_state': 'starting', 'connections': 0} 327s E 327s E + [] 327s E - [{'connections': 0, 327s E - 'execution_state': 'starting', 327s E - 'id': '2d0c9131-d604-4efd-b0ae-74dcfa58ce02', 327s E - 'last_activity': '2026-01-22T18:28:45.183871Z', 327s E - 'name': 'python3'}, 327s E - {'connections': 0, 327s E - 'execution_state': 'starting', 327s E - 'id': '1c37277b-9978-4235-97aa-e5d6d8550508', 327s E - 'last_activity': '2026-01-22T18:28:45.211930Z', 327s E - 'name': 'python3'}] 327s 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.520000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.460000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2d0c9131-d604-4efd-b0ae-74dcfa58ce02 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2d0c9131-d604-4efd-b0ae-74dcfa58ce02 327s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/2d0c9131-d604-4efd-b0ae-74dcfa58ce02 (127.0.0.1) 1.610000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1c37277b-9978-4235-97aa-e5d6d8550508 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1c37277b-9978-4235-97aa-e5d6d8550508 327s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/1c37277b-9978-4235-97aa-e5d6d8550508 (127.0.0.1) 1.800000ms 327s ---------------------------- Captured log teardown ----------------------------- 327s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 213bd83e-7366-4038-94d1-97d9ac43ca85 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b3d67c09-52a4-4531-bcba-c0650f194020 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7b1995a7-4dbd-49cb-ac22-af62aca40510 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2d0c9131-d604-4efd-b0ae-74dcfa58ce02 327s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 327s __________________________ SessionAPITest.test_create __________________________ 327s 327s @self.addCleanup 327s def cleanup_sessions(): 327s for session in self.sess_api.list().json(): 327s > self.sess_api.delete(session['id']) 327s 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 327s return self._req('DELETE', id) 327s ^^^^^^^^^^^^^^^^^^^^^^^ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 327s response.raise_for_status() 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s 327s self = 327s 327s def raise_for_status(self): 327s """Raises :class:`HTTPError`, if one occurred.""" 327s 327s http_error_msg = "" 327s if isinstance(self.reason, bytes): 327s # We attempt to decode utf-8 first because some servers 327s # choose to localize their reason strings. If the string 327s # isn't utf-8, we fall back to iso-8859-1 for all other 327s # encodings. (See PR #3538) 327s try: 327s reason = self.reason.decode("utf-8") 327s except UnicodeDecodeError: 327s reason = self.reason.decode("iso-8859-1") 327s else: 327s reason = self.reason 327s 327s if 400 <= self.status_code < 500: 327s http_error_msg = ( 327s f"{self.status_code} Client Error: {reason} for url: {self.url}" 327s ) 327s 327s elif 500 <= self.status_code < 600: 327s http_error_msg = ( 327s f"{self.status_code} Server Error: {reason} for url: {self.url}" 327s ) 327s 327s if http_error_msg: 327s > raise HTTPError(http_error_msg, response=self) 327s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/caae5a7a-4116-4262-9ad0-a4e6dbaf9c2b 327s 327s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 327s ------------------------------ Captured log setup ------------------------------ 327s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmphqcs0ysk/config', '/tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmphqcs0ysk/etc/jupyter'] for config files 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmphqcs0ysk/etc/jupyter 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmphqcs0ysk/config 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmphqcs0ysk/etc/jupyter 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmphqcs0ysk/config 327s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmphqcs0ysk/notebooks 327s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 327s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 327s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 327s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 327s WARNING NotebookApp:handlers.py:612 Forbidden 327s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (127.0.0.1) 1.110000ms referer=None 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.930000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphqcs0ysk/runtime/kernel-7ed54ce2-9ed3-49b4-b5e1-2425e920f904.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54935 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57247 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7ed54ce2-9ed3-49b4-b5e1-2425e920f904, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmphqcs0ysk/notebooks/foo'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 26.110000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.640000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/caae5a7a-4116-4262-9ad0-a4e6dbaf9c2b (127.0.0.1) 1.670000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.670000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7ed54ce2-9ed3-49b4-b5e1-2425e920f904 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7ed54ce2-9ed3-49b4-b5e1-2425e920f904 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/caae5a7a-4116-4262-9ad0-a4e6dbaf9c2b (127.0.0.1) 327s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/caae5a7a-4116-4262-9ad0-a4e6dbaf9c2b', version='HTTP/1.1', remote_ip='127.0.0.1') 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 327s result = await result 327s ^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 327s yield maybe_future(sm.delete_session(session_id)) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 327s yielded = self.gen.send(value) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 327s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 327s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 327s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 327s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 327s stopper = ensure_async(km.shutdown_kernel(now, restart)) 327s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s WARNING NotebookApp:handlers.py:612 Unhandled error 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/caae5a7a-4116-4262-9ad0-a4e6dbaf9c2b (127.0.0.1) 11.750000ms referer=None 327s --------------------------- Captured stderr teardown --------------------------- 327s Traceback (most recent call last): 327s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 327s return _run_code(code, main_globals, None, 327s "__main__", mod_spec) 327s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 327s exec(code, run_globals) 327s ~~~~^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 327s from ipykernel import kernelapp as app 327s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 327s from .connect import * # noqa: F403 327s ^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 327s from subprocess import PIPE, Popen 327s File "/usr/lib/python3.14/subprocess.py", line 46, in 327s import locale 327s File "", line 1368, in _find_and_load 327s File "", line 421, in __enter__ 327s File "", line 316, in acquire 327s KeyboardInterrupt 327s __________________ SessionAPITest.test_create_console_session __________________ 327s 327s @self.addCleanup 327s def cleanup_sessions(): 327s for session in self.sess_api.list().json(): 327s > self.sess_api.delete(session['id']) 327s 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 327s return self._req('DELETE', id) 327s ^^^^^^^^^^^^^^^^^^^^^^^ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 327s response.raise_for_status() 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s 327s self = 327s 327s def raise_for_status(self): 327s """Raises :class:`HTTPError`, if one occurred.""" 327s 327s http_error_msg = "" 327s if isinstance(self.reason, bytes): 327s # We attempt to decode utf-8 first because some servers 327s # choose to localize their reason strings. If the string 327s # isn't utf-8, we fall back to iso-8859-1 for all other 327s # encodings. (See PR #3538) 327s try: 327s reason = self.reason.decode("utf-8") 327s except UnicodeDecodeError: 327s reason = self.reason.decode("iso-8859-1") 327s else: 327s reason = self.reason 327s 327s if 400 <= self.status_code < 500: 327s http_error_msg = ( 327s f"{self.status_code} Client Error: {reason} for url: {self.url}" 327s ) 327s 327s elif 500 <= self.status_code < 600: 327s http_error_msg = ( 327s f"{self.status_code} Server Error: {reason} for url: {self.url}" 327s ) 327s 327s if http_error_msg: 327s > raise HTTPError(http_error_msg, response=self) 327s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/fbb187ec-b744-45ed-9983-40ff5dec2e3f 327s 327s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphqcs0ysk/runtime/kernel-8908e657-87a7-43ba-9544-1c82959ba264.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44843 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54425 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8908e657-87a7-43ba-9544-1c82959ba264, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmphqcs0ysk/notebooks/foo'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 21.640000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.550000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7ed54ce2-9ed3-49b4-b5e1-2425e920f904 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7ed54ce2-9ed3-49b4-b5e1-2425e920f904 327s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/caae5a7a-4116-4262-9ad0-a4e6dbaf9c2b (127.0.0.1) 2.530000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8908e657-87a7-43ba-9544-1c82959ba264 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8908e657-87a7-43ba-9544-1c82959ba264 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/fbb187ec-b744-45ed-9983-40ff5dec2e3f (127.0.0.1) 327s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/fbb187ec-b744-45ed-9983-40ff5dec2e3f', version='HTTP/1.1', remote_ip='127.0.0.1') 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 327s result = await result 327s ^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 327s yield maybe_future(sm.delete_session(session_id)) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 327s yielded = self.gen.send(value) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 327s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 327s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 327s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 327s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 327s stopper = ensure_async(km.shutdown_kernel(now, restart)) 327s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s WARNING NotebookApp:handlers.py:612 Unhandled error 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/fbb187ec-b744-45ed-9983-40ff5dec2e3f (127.0.0.1) 10.920000ms referer=None 327s --------------------------- Captured stderr teardown --------------------------- 327s Traceback (most recent call last): 327s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 327s return _run_code(code, main_globals, None, 327s "__main__", mod_spec) 327s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 327s exec(code, run_globals) 327s ~~~~^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 327s from pathlib import Path 327s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 327s from glob import _StringGlobber, _no_recurse_symlinks 327s File "/usr/lib/python3.14/glob.py", line 5, in 327s import re 327s File "/usr/lib/python3.14/re/__init__.py", line 381, in 327s import copyreg 327s File "", line 1371, in _find_and_load 327s File "", line 1342, in _find_and_load_unlocked 327s File "", line 938, in _load_unlocked 327s File "", line 755, in exec_module 327s File "", line 851, in get_code 327s File "", line 950, in get_data 327s KeyboardInterrupt 327s ____________________ SessionAPITest.test_create_deprecated _____________________ 327s 327s @self.addCleanup 327s def cleanup_sessions(): 327s for session in self.sess_api.list().json(): 327s > self.sess_api.delete(session['id']) 327s 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 327s return self._req('DELETE', id) 327s ^^^^^^^^^^^^^^^^^^^^^^^ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 327s response.raise_for_status() 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s 327s self = 327s 327s def raise_for_status(self): 327s """Raises :class:`HTTPError`, if one occurred.""" 327s 327s http_error_msg = "" 327s if isinstance(self.reason, bytes): 327s # We attempt to decode utf-8 first because some servers 327s # choose to localize their reason strings. If the string 327s # isn't utf-8, we fall back to iso-8859-1 for all other 327s # encodings. (See PR #3538) 327s try: 327s reason = self.reason.decode("utf-8") 327s except UnicodeDecodeError: 327s reason = self.reason.decode("iso-8859-1") 327s else: 327s reason = self.reason 327s 327s if 400 <= self.status_code < 500: 327s http_error_msg = ( 327s f"{self.status_code} Client Error: {reason} for url: {self.url}" 327s ) 327s 327s elif 500 <= self.status_code < 600: 327s http_error_msg = ( 327s f"{self.status_code} Server Error: {reason} for url: {self.url}" 327s ) 327s 327s if http_error_msg: 327s > raise HTTPError(http_error_msg, response=self) 327s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d81096af-3b3e-4299-8bf9-95653106f741 327s 327s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphqcs0ysk/runtime/kernel-99c97aaa-d99d-4905-a144-e55ac7105c16.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42935 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48945 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: 99c97aaa-d99d-4905-a144-e55ac7105c16, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmphqcs0ysk/notebooks/foo'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 21.740000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.600000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8908e657-87a7-43ba-9544-1c82959ba264 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8908e657-87a7-43ba-9544-1c82959ba264 327s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/fbb187ec-b744-45ed-9983-40ff5dec2e3f (127.0.0.1) 2.450000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 99c97aaa-d99d-4905-a144-e55ac7105c16 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 99c97aaa-d99d-4905-a144-e55ac7105c16 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d81096af-3b3e-4299-8bf9-95653106f741 (127.0.0.1) 327s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d81096af-3b3e-4299-8bf9-95653106f741', version='HTTP/1.1', remote_ip='127.0.0.1') 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 327s result = await result 327s ^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 327s yield maybe_future(sm.delete_session(session_id)) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 327s yielded = self.gen.send(value) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 327s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 327s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 327s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 327s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 327s stopper = ensure_async(km.shutdown_kernel(now, restart)) 327s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s WARNING NotebookApp:handlers.py:612 Unhandled error 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/d81096af-3b3e-4299-8bf9-95653106f741 (127.0.0.1) 10.890000ms referer=None 327s --------------------------- Captured stderr teardown --------------------------- 327s Traceback (most recent call last): 327s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 327s return _run_code(code, main_globals, None, 327s "__main__", mod_spec) 327s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 327s exec(code, run_globals) 327s ~~~~^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 327s from pathlib import Path 327s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 327s from pathlib._os import ( 327s ...<3 lines>... 327s ) 327s File "/usr/lib/python3.14/pathlib/_os.py", line 11, in 327s import fcntl 327s KeyboardInterrupt 327s ___________________ SessionAPITest.test_create_file_session ____________________ 327s 327s @self.addCleanup 327s def cleanup_sessions(): 327s for session in self.sess_api.list().json(): 327s > self.sess_api.delete(session['id']) 327s 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 327s return self._req('DELETE', id) 327s ^^^^^^^^^^^^^^^^^^^^^^^ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 327s response.raise_for_status() 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s 327s self = 327s 327s def raise_for_status(self): 327s """Raises :class:`HTTPError`, if one occurred.""" 327s 327s http_error_msg = "" 327s if isinstance(self.reason, bytes): 327s # We attempt to decode utf-8 first because some servers 327s # choose to localize their reason strings. If the string 327s # isn't utf-8, we fall back to iso-8859-1 for all other 327s # encodings. (See PR #3538) 327s try: 327s reason = self.reason.decode("utf-8") 327s except UnicodeDecodeError: 327s reason = self.reason.decode("iso-8859-1") 327s else: 327s reason = self.reason 327s 327s if 400 <= self.status_code < 500: 327s http_error_msg = ( 327s f"{self.status_code} Client Error: {reason} for url: {self.url}" 327s ) 327s 327s elif 500 <= self.status_code < 600: 327s http_error_msg = ( 327s f"{self.status_code} Server Error: {reason} for url: {self.url}" 327s ) 327s 327s if http_error_msg: 327s > raise HTTPError(http_error_msg, response=self) 327s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c386be23-7b1a-47d4-8609-c4224bab5877 327s 327s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphqcs0ysk/runtime/kernel-41b5ba9d-bcec-4a06-a447-85ece0090d44.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37803 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59969 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: 41b5ba9d-bcec-4a06-a447-85ece0090d44, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmphqcs0ysk/notebooks/foo'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 21.710000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.620000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 99c97aaa-d99d-4905-a144-e55ac7105c16 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 99c97aaa-d99d-4905-a144-e55ac7105c16 327s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d81096af-3b3e-4299-8bf9-95653106f741 (127.0.0.1) 2.600000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 41b5ba9d-bcec-4a06-a447-85ece0090d44 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 41b5ba9d-bcec-4a06-a447-85ece0090d44 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c386be23-7b1a-47d4-8609-c4224bab5877 (127.0.0.1) 327s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c386be23-7b1a-47d4-8609-c4224bab5877', version='HTTP/1.1', remote_ip='127.0.0.1') 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 327s result = await result 327s ^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 327s yield maybe_future(sm.delete_session(session_id)) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 327s yielded = self.gen.send(value) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 327s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 327s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 327s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 327s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 327s stopper = ensure_async(km.shutdown_kernel(now, restart)) 327s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s WARNING NotebookApp:handlers.py:612 Unhandled error 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c386be23-7b1a-47d4-8609-c4224bab5877 (127.0.0.1) 10.980000ms referer=None 327s --------------------------- Captured stderr teardown --------------------------- 327s Traceback (most recent call last): 327s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 327s return _run_code(code, main_globals, None, 327s "__main__", mod_spec) 327s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 327s exec(code, run_globals) 327s ~~~~^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 327s from pathlib import Path 327s File "/usr/lib/python3.14/pathlib/__init__.py", line 48, in 327s class _PathParents(Sequence): 327s ...<25 lines>... 327s return "<{}.parents>".format(type(self._path).__name__) 327s File "/usr/lib/python3.14/abc.py", line 106, in __new__ 327s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 327s KeyboardInterrupt 327s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 327s 327s self = 327s 327s def test_create_with_kernel_id(self): 327s # create a new kernel 327s r = self.request('POST', 'api/kernels') 327s r.raise_for_status() 327s kernel = r.json() 327s 327s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 327s self.assertEqual(resp.status_code, 201) 327s newsession = resp.json() 327s self.assertIn('id', newsession) 327s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 327s self.assertEqual(newsession['kernel']['id'], kernel['id']) 327s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 327s 327s sessions = self.sess_api.list().json() 327s > self.assertEqual(sessions, [newsession]) 327s E AssertionError: Lists differ: [{'id': 'c386be23-7b1a-47d4-8609-c4224bab5877', 'p[553 chars]ne}}] != [{'id': 'aa2e34d6-ca34-4d63-ab7c-7aa678be21d5', 'p[279 chars]ne}}] 327s E 327s E First differing element 0: 327s E {'id': 'c386be23-7b1a-47d4-8609-c4224bab5877', 'p[218 chars]: 0}} 327s E {'id': 'aa2e34d6-ca34-4d63-ab7c-7aa678be21d5', 'p[278 chars]one}} 327s E 327s E First list contains 1 additional elements. 327s E First extra element 1: 327s E {'id': 'aa2e34d6-ca34-4d63-ab7c-7aa678be21d5', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'd4dcb178-79c8-4df0-9169-b3fd3d599ef6', 'name': 'python3', 'last_activity': '2026-01-22T18:28:45.864649Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 327s E 327s E Diff is 830 characters long. Set self.maxDiff to None to see it. 327s 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphqcs0ysk/runtime/kernel-d4dcb178-79c8-4df0-9169-b3fd3d599ef6.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41865 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38817 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: d4dcb178-79c8-4df0-9169-b3fd3d599ef6, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 20.530000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.770000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.680000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.710000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 41b5ba9d-bcec-4a06-a447-85ece0090d44 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 41b5ba9d-bcec-4a06-a447-85ece0090d44 327s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c386be23-7b1a-47d4-8609-c4224bab5877 (127.0.0.1) 2.590000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d4dcb178-79c8-4df0-9169-b3fd3d599ef6 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d4dcb178-79c8-4df0-9169-b3fd3d599ef6 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/aa2e34d6-ca34-4d63-ab7c-7aa678be21d5 (127.0.0.1) 327s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/aa2e34d6-ca34-4d63-ab7c-7aa678be21d5', version='HTTP/1.1', remote_ip='127.0.0.1') 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 327s result = await result 327s ^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 327s yield maybe_future(sm.delete_session(session_id)) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 327s yielded = self.gen.send(value) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 327s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 327s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 327s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 327s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 327s stopper = ensure_async(km.shutdown_kernel(now, restart)) 327s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s WARNING NotebookApp:handlers.py:612 Unhandled error 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/aa2e34d6-ca34-4d63-ab7c-7aa678be21d5 (127.0.0.1) 11.250000ms referer=None 327s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 327s 327s @self.addCleanup 327s def cleanup_sessions(): 327s for session in self.sess_api.list().json(): 327s > self.sess_api.delete(session['id']) 327s 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 327s return self._req('DELETE', id) 327s ^^^^^^^^^^^^^^^^^^^^^^^ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 327s response.raise_for_status() 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s 327s self = 327s 327s def raise_for_status(self): 327s """Raises :class:`HTTPError`, if one occurred.""" 327s 327s http_error_msg = "" 327s if isinstance(self.reason, bytes): 327s # We attempt to decode utf-8 first because some servers 327s # choose to localize their reason strings. If the string 327s # isn't utf-8, we fall back to iso-8859-1 for all other 327s # encodings. (See PR #3538) 327s try: 327s reason = self.reason.decode("utf-8") 327s except UnicodeDecodeError: 327s reason = self.reason.decode("iso-8859-1") 327s else: 327s reason = self.reason 327s 327s if 400 <= self.status_code < 500: 327s http_error_msg = ( 327s f"{self.status_code} Client Error: {reason} for url: {self.url}" 327s ) 327s 327s elif 500 <= self.status_code < 600: 327s http_error_msg = ( 327s f"{self.status_code} Server Error: {reason} for url: {self.url}" 327s ) 327s 327s if http_error_msg: 327s > raise HTTPError(http_error_msg, response=self) 327s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/aa2e34d6-ca34-4d63-ab7c-7aa678be21d5 327s 327s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 327s ---------------------------- Captured stderr setup ----------------------------- 327s Traceback (most recent call last): 327s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 327s return _run_code(code, main_globals, None, 327s "__main__", mod_spec) 327s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 327s exec(code, run_globals) 327s ~~~~^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 327s from ipykernel import kernelapp as app 327s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 327s from .connect import * # noqa: F403 327s ^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 327s from subprocess import PIPE, Popen 327s File "/usr/lib/python3.14/subprocess.py", line 51, in 327s import threading 327s File "", line 1371, in _find_and_load 327s File "", line 1342, in _find_and_load_unlocked 327s File "", line 938, in _load_unlocked 327s File "", line 755, in exec_module 327s File "", line 888, in get_code 327s File "", line 511, in _compile_bytecode 327s KeyboardInterrupt 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.740000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphqcs0ysk/runtime/kernel-22051ddf-37e2-4783-9847-2ff5f9c771ad.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56893 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57239 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: 22051ddf-37e2-4783-9847-2ff5f9c771ad, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 20.160000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d4dcb178-79c8-4df0-9169-b3fd3d599ef6 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d4dcb178-79c8-4df0-9169-b3fd3d599ef6 327s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/aa2e34d6-ca34-4d63-ab7c-7aa678be21d5 (127.0.0.1) 2.910000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.440000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.470000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 22051ddf-37e2-4783-9847-2ff5f9c771ad 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 22051ddf-37e2-4783-9847-2ff5f9c771ad 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/aa2e34d6-ca34-4d63-ab7c-7aa678be21d5 (127.0.0.1) 327s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/aa2e34d6-ca34-4d63-ab7c-7aa678be21d5', version='HTTP/1.1', remote_ip='127.0.0.1') 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 327s result = await result 327s ^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 327s yield maybe_future(sm.delete_session(session_id)) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 327s yielded = self.gen.send(value) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 327s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 327s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 327s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 327s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 327s stopper = ensure_async(km.shutdown_kernel(now, restart)) 327s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s WARNING NotebookApp:handlers.py:612 Unhandled error 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/aa2e34d6-ca34-4d63-ab7c-7aa678be21d5 (127.0.0.1) 10.540000ms referer=None 327s --------------------------- Captured stderr teardown --------------------------- 327s Traceback (most recent call last): 327s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 327s return _run_code(code, main_globals, None, 327s "__main__", mod_spec) 327s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 327s exec(code, run_globals) 327s ~~~~^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 327s from ipykernel import kernelapp as app 327s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 327s from .connect import * # noqa: F403 327s ^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 327s from subprocess import PIPE, Popen 327s File "/usr/lib/python3.14/subprocess.py", line 49, in 327s import signal 327s File "/usr/lib/python3.14/signal.py", line 7, in 327s _IntEnum._convert_( 327s ~~~~~~~~~~~~~~~~~~^ 327s 'Signals', __name__, 327s ^^^^^^^^^^^^^^^^^^^^ 327s ...<2 lines>... 327s and (name.startswith('SIG') and not name.startswith('SIG_')) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s or name.startswith('CTRL_')) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3.14/enum.py", line 909, in _convert_ 327s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 327s File "/usr/lib/python3.14/enum.py", line 1895, in convert_class 327s setattr(enum_class, name, member) 327s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3.14/enum.py", line 810, in __setattr__ 327s def __setattr__(cls, name, value): 327s 327s KeyboardInterrupt 327s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 327s 327s @self.addCleanup 327s def cleanup_sessions(): 327s for session in self.sess_api.list().json(): 327s > self.sess_api.delete(session['id']) 327s 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 327s return self._req('DELETE', id) 327s ^^^^^^^^^^^^^^^^^^^^^^^ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 327s response.raise_for_status() 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s 327s self = 327s 327s def raise_for_status(self): 327s """Raises :class:`HTTPError`, if one occurred.""" 327s 327s http_error_msg = "" 327s if isinstance(self.reason, bytes): 327s # We attempt to decode utf-8 first because some servers 327s # choose to localize their reason strings. If the string 327s # isn't utf-8, we fall back to iso-8859-1 for all other 327s # encodings. (See PR #3538) 327s try: 327s reason = self.reason.decode("utf-8") 327s except UnicodeDecodeError: 327s reason = self.reason.decode("iso-8859-1") 327s else: 327s reason = self.reason 327s 327s if 400 <= self.status_code < 500: 327s http_error_msg = ( 327s f"{self.status_code} Client Error: {reason} for url: {self.url}" 327s ) 327s 327s elif 500 <= self.status_code < 600: 327s http_error_msg = ( 327s f"{self.status_code} Server Error: {reason} for url: {self.url}" 327s ) 327s 327s if http_error_msg: 327s > raise HTTPError(http_error_msg, response=self) 327s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/aa2e34d6-ca34-4d63-ab7c-7aa678be21d5 327s 327s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.670000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphqcs0ysk/runtime/kernel-d3c9d96a-def3-498d-a930-0caa5fd68b15.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33835 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47615 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: d3c9d96a-def3-498d-a930-0caa5fd68b15, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmphqcs0ysk/notebooks/foo'} 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 22051ddf-37e2-4783-9847-2ff5f9c771ad 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 22051ddf-37e2-4783-9847-2ff5f9c771ad 327s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/aa2e34d6-ca34-4d63-ab7c-7aa678be21d5 (127.0.0.1) 22.420000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.520000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.500000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d3c9d96a-def3-498d-a930-0caa5fd68b15 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d3c9d96a-def3-498d-a930-0caa5fd68b15 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/aa2e34d6-ca34-4d63-ab7c-7aa678be21d5 (127.0.0.1) 327s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/aa2e34d6-ca34-4d63-ab7c-7aa678be21d5', version='HTTP/1.1', remote_ip='127.0.0.1') 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 327s result = await result 327s ^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 327s yield maybe_future(sm.delete_session(session_id)) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 327s yielded = self.gen.send(value) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 327s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 327s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 327s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 327s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 327s stopper = ensure_async(km.shutdown_kernel(now, restart)) 327s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s WARNING NotebookApp:handlers.py:612 Unhandled error 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/aa2e34d6-ca34-4d63-ab7c-7aa678be21d5 (127.0.0.1) 11.690000ms referer=None 327s --------------------------- Captured stderr teardown --------------------------- 327s Traceback (most recent call last): 327s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 327s return _run_code(code, main_globals, None, 327s "__main__", mod_spec) 327s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 327s exec(code, run_globals) 327s ~~~~^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 327s from ipykernel import kernelapp as app 327s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 327s from .connect import * # noqa: F403 327s ^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 327s from subprocess import PIPE, Popen 327s File "/usr/lib/python3.14/subprocess.py", line 49, in 327s import signal 327s File "/usr/lib/python3.14/signal.py", line 7, in 327s _IntEnum._convert_( 327s ~~~~~~~~~~~~~~~~~~^ 327s 'Signals', __name__, 327s ^^^^^^^^^^^^^^^^^^^^ 327s ...<2 lines>... 327s and (name.startswith('SIG') and not name.startswith('SIG_')) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s or name.startswith('CTRL_')) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3.14/enum.py", line 909, in _convert_ 327s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 327s File "/usr/lib/python3.14/enum.py", line 1895, in convert_class 327s setattr(enum_class, name, member) 327s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3.14/enum.py", line 810, in __setattr__ 327s def __setattr__(cls, name, value): 327s 327s KeyboardInterrupt 327s _______________________ SessionAPITest.test_modify_type ________________________ 327s 327s @self.addCleanup 327s def cleanup_sessions(): 327s for session in self.sess_api.list().json(): 327s > self.sess_api.delete(session['id']) 327s 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 327s return self._req('DELETE', id) 327s ^^^^^^^^^^^^^^^^^^^^^^^ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 327s response.raise_for_status() 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s 327s self = 327s 327s def raise_for_status(self): 327s """Raises :class:`HTTPError`, if one occurred.""" 327s 327s http_error_msg = "" 327s if isinstance(self.reason, bytes): 327s # We attempt to decode utf-8 first because some servers 327s # choose to localize their reason strings. If the string 327s # isn't utf-8, we fall back to iso-8859-1 for all other 327s # encodings. (See PR #3538) 327s try: 327s reason = self.reason.decode("utf-8") 327s except UnicodeDecodeError: 327s reason = self.reason.decode("iso-8859-1") 327s else: 327s reason = self.reason 327s 327s if 400 <= self.status_code < 500: 327s http_error_msg = ( 327s f"{self.status_code} Client Error: {reason} for url: {self.url}" 327s ) 327s 327s elif 500 <= self.status_code < 600: 327s http_error_msg = ( 327s f"{self.status_code} Server Error: {reason} for url: {self.url}" 327s ) 327s 327s if http_error_msg: 327s > raise HTTPError(http_error_msg, response=self) 327s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/613480e3-04f4-4010-bda1-10fddc9a7c1e 327s 327s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphqcs0ysk/runtime/kernel-ff8b8aaa-6e4e-407d-b8e3-f27850bcbb87.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36879 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41529 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: ff8b8aaa-6e4e-407d-b8e3-f27850bcbb87, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmphqcs0ysk/notebooks/foo'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 20.970000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/613480e3-04f4-4010-bda1-10fddc9a7c1e (127.0.0.1) 2.120000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.460000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ff8b8aaa-6e4e-407d-b8e3-f27850bcbb87 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ff8b8aaa-6e4e-407d-b8e3-f27850bcbb87 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/613480e3-04f4-4010-bda1-10fddc9a7c1e (127.0.0.1) 327s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/613480e3-04f4-4010-bda1-10fddc9a7c1e', version='HTTP/1.1', remote_ip='127.0.0.1') 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 327s result = await result 327s ^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 327s yield maybe_future(sm.delete_session(session_id)) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 327s yielded = self.gen.send(value) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 327s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 327s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 327s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 327s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 327s stopper = ensure_async(km.shutdown_kernel(now, restart)) 327s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 327s return _runner_map[name].run(inner) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 327s return fut.result(None) 327s ~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 327s return self.__get_result() 327s ~~~~~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 327s raise self._exception 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s WARNING NotebookApp:handlers.py:612 Unhandled error 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/613480e3-04f4-4010-bda1-10fddc9a7c1e (127.0.0.1) 11.020000ms referer=None 327s --------------------------- Captured stderr teardown --------------------------- 327s Traceback (most recent call last): 327s File "", line 1249, in _path_importer_cache 327s KeyError: '/usr/lib/python3/dist-packages/ipykernel' 327s 327s During handling of the above exception, another exception occurred: 327s 327s Traceback (most recent call last): 327s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 327s return _run_code(code, main_globals, None, 327s "__main__", mod_spec) 327s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 327s exec(code, run_globals) 327s ~~~~^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 327s from ipykernel import kernelapp as app 327s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 327s from ._version import ( 327s ...<4 lines>... 327s ) 327s File "", line 1371, in _find_and_load 327s File "", line 1333, in _find_and_load_unlocked 327s File "", line 1267, in _find_spec 327s File "", line 1292, in find_spec 327s File "", line 1264, in _get_spec 327s File "", line 1251, in _path_importer_cache 327s File "", line 1227, in _path_hooks 327s File "", line 1451, in path_hook_for_FileFinder 327s File "", line 173, in _path_isdir 327s File "", line 158, in _path_is_mode_type 327s File "", line 152, in _path_stat 327s KeyboardInterrupt 327s ---------------------------- Captured log teardown ----------------------------- 327s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ff8b8aaa-6e4e-407d-b8e3-f27850bcbb87 327s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 327s _______________________ AsyncSessionAPITest.test_create ________________________ 327s 327s @self.addCleanup 327s def cleanup_sessions(): 327s for session in self.sess_api.list().json(): 327s > self.sess_api.delete(session['id']) 327s 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 327s return self._req('DELETE', id) 327s ^^^^^^^^^^^^^^^^^^^^^^^ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 327s response.raise_for_status() 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s 327s self = 327s 327s def raise_for_status(self): 327s """Raises :class:`HTTPError`, if one occurred.""" 327s 327s http_error_msg = "" 327s if isinstance(self.reason, bytes): 327s # We attempt to decode utf-8 first because some servers 327s # choose to localize their reason strings. If the string 327s # isn't utf-8, we fall back to iso-8859-1 for all other 327s # encodings. (See PR #3538) 327s try: 327s reason = self.reason.decode("utf-8") 327s except UnicodeDecodeError: 327s reason = self.reason.decode("iso-8859-1") 327s else: 327s reason = self.reason 327s 327s if 400 <= self.status_code < 500: 327s http_error_msg = ( 327s f"{self.status_code} Client Error: {reason} for url: {self.url}" 327s ) 327s 327s elif 500 <= self.status_code < 600: 327s http_error_msg = ( 327s f"{self.status_code} Server Error: {reason} for url: {self.url}" 327s ) 327s 327s if http_error_msg: 327s > raise HTTPError(http_error_msg, response=self) 327s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1934ee7c-42b6-4dec-9512-b818166b1054 327s 327s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 327s ------------------------------ Captured log setup ------------------------------ 327s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpqukw3ap5/config', '/tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpqukw3ap5/etc/jupyter'] for config files 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpqukw3ap5/etc/jupyter 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpqukw3ap5/config 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpqukw3ap5/etc/jupyter 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 327s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpqukw3ap5/config 327s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpqukw3ap5/notebooks 327s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 327s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 327s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 327s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 327s WARNING NotebookApp:handlers.py:612 Forbidden 327s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (127.0.0.1) 1.140000ms referer=None 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.840000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqukw3ap5/runtime/kernel-8fd545e1-40bd-4455-a1fd-6092f0769a09.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49753 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36481 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8fd545e1-40bd-4455-a1fd-6092f0769a09, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpqukw3ap5/notebooks/foo'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 20.290000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.480000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/1934ee7c-42b6-4dec-9512-b818166b1054 (127.0.0.1) 1.670000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.490000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8fd545e1-40bd-4455-a1fd-6092f0769a09 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8fd545e1-40bd-4455-a1fd-6092f0769a09 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 327s await kernel_awaitable 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1934ee7c-42b6-4dec-9512-b818166b1054 (127.0.0.1) 327s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1934ee7c-42b6-4dec-9512-b818166b1054', version='HTTP/1.1', remote_ip='127.0.0.1') 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 327s result = await result 327s ^^^^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 327s future.result() 327s ~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 327s yield maybe_future(sm.delete_session(session_id)) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 327s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 327s raise self._exception.with_traceback(self._exception_tb) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 327s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 327s raise km.ready.exception() # type: ignore[misc] 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 327s await kernel_awaitable 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s WARNING NotebookApp:handlers.py:612 Unhandled error 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1934ee7c-42b6-4dec-9512-b818166b1054 (127.0.0.1) 9.350000ms referer=None 327s --------------------------- Captured stderr teardown --------------------------- 327s Traceback (most recent call last): 327s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 327s return _run_code(code, main_globals, None, 327s "__main__", mod_spec) 327s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 327s exec(code, run_globals) 327s ~~~~^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 327s from ipykernel import kernelapp as app 327s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 327s from .connect import * # noqa: F403 327s ^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 327s import json 327s File "/usr/lib/python3.14/json/__init__.py", line 106, in 327s from .decoder import JSONDecoder, JSONDecodeError 327s File "", line 1371, in _find_and_load 327s File "", line 1333, in _find_and_load_unlocked 327s File "", line 1267, in _find_spec 327s File "", line 1292, in find_spec 327s File "", line 1266, in _get_spec 327s File "", line 1369, in find_spec 327s File "", line 1412, in _fill_cache 327s KeyboardInterrupt 327s _______________ AsyncSessionAPITest.test_create_console_session ________________ 327s 327s @self.addCleanup 327s def cleanup_sessions(): 327s for session in self.sess_api.list().json(): 327s > self.sess_api.delete(session['id']) 327s 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 327s return self._req('DELETE', id) 327s ^^^^^^^^^^^^^^^^^^^^^^^ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 327s response.raise_for_status() 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s 327s self = 327s 327s def raise_for_status(self): 327s """Raises :class:`HTTPError`, if one occurred.""" 327s 327s http_error_msg = "" 327s if isinstance(self.reason, bytes): 327s # We attempt to decode utf-8 first because some servers 327s # choose to localize their reason strings. If the string 327s # isn't utf-8, we fall back to iso-8859-1 for all other 327s # encodings. (See PR #3538) 327s try: 327s reason = self.reason.decode("utf-8") 327s except UnicodeDecodeError: 327s reason = self.reason.decode("iso-8859-1") 327s else: 327s reason = self.reason 327s 327s if 400 <= self.status_code < 500: 327s http_error_msg = ( 327s f"{self.status_code} Client Error: {reason} for url: {self.url}" 327s ) 327s 327s elif 500 <= self.status_code < 600: 327s http_error_msg = ( 327s f"{self.status_code} Server Error: {reason} for url: {self.url}" 327s ) 327s 327s if http_error_msg: 327s > raise HTTPError(http_error_msg, response=self) 327s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3cd62c56-980a-4f11-a117-890b238c9ffd 327s 327s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqukw3ap5/runtime/kernel-d405f04e-d648-4075-b7df-98005b091877.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51561 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50231 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: d405f04e-d648-4075-b7df-98005b091877, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpqukw3ap5/notebooks/foo'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 19.230000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.510000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8fd545e1-40bd-4455-a1fd-6092f0769a09 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8fd545e1-40bd-4455-a1fd-6092f0769a09 327s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/1934ee7c-42b6-4dec-9512-b818166b1054 (127.0.0.1) 1.880000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d405f04e-d648-4075-b7df-98005b091877 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d405f04e-d648-4075-b7df-98005b091877 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 327s await kernel_awaitable 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3cd62c56-980a-4f11-a117-890b238c9ffd (127.0.0.1) 327s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3cd62c56-980a-4f11-a117-890b238c9ffd', version='HTTP/1.1', remote_ip='127.0.0.1') 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 327s result = await result 327s ^^^^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 327s future.result() 327s ~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 327s yield maybe_future(sm.delete_session(session_id)) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 327s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 327s raise self._exception.with_traceback(self._exception_tb) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 327s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 327s raise km.ready.exception() # type: ignore[misc] 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 327s await kernel_awaitable 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s WARNING NotebookApp:handlers.py:612 Unhandled error 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/3cd62c56-980a-4f11-a117-890b238c9ffd (127.0.0.1) 9.570000ms referer=None 327s --------------------------- Captured stderr teardown --------------------------- 327s Traceback (most recent call last): 327s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 327s return _run_code(code, main_globals, None, 327s "__main__", mod_spec) 327s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 327s exec(code, run_globals) 327s ~~~~^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 327s from pathlib import Path 327s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 327s from glob import _StringGlobber, _no_recurse_symlinks 327s File "/usr/lib/python3.14/glob.py", line 5, in 327s import re 327s File "/usr/lib/python3.14/re/__init__.py", line 143, in 327s @enum._simple_enum(enum.IntFlag, boundary=enum.KEEP) 327s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3.14/enum.py", line 1830, in convert_class 327s contained._add_alias_(name) 327s ~~~~~~~~~~~~~~~~~~~~~^^^^^^ 327s File "/usr/lib/python3.14/enum.py", line 1207, in _add_alias_ 327s self.__class__._add_member_(name, self) 327s ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ 327s File "/usr/lib/python3.14/enum.py", line 1052, in _add_member_ 327s attr = base.__dict__.get(name) 327s KeyboardInterrupt 327s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 327s 327s @self.addCleanup 327s def cleanup_sessions(): 327s for session in self.sess_api.list().json(): 327s > self.sess_api.delete(session['id']) 327s 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 327s return self._req('DELETE', id) 327s ^^^^^^^^^^^^^^^^^^^^^^^ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 327s response.raise_for_status() 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s 327s self = 327s 327s def raise_for_status(self): 327s """Raises :class:`HTTPError`, if one occurred.""" 327s 327s http_error_msg = "" 327s if isinstance(self.reason, bytes): 327s # We attempt to decode utf-8 first because some servers 327s # choose to localize their reason strings. If the string 327s # isn't utf-8, we fall back to iso-8859-1 for all other 327s # encodings. (See PR #3538) 327s try: 327s reason = self.reason.decode("utf-8") 327s except UnicodeDecodeError: 327s reason = self.reason.decode("iso-8859-1") 327s else: 327s reason = self.reason 327s 327s if 400 <= self.status_code < 500: 327s http_error_msg = ( 327s f"{self.status_code} Client Error: {reason} for url: {self.url}" 327s ) 327s 327s elif 500 <= self.status_code < 600: 327s http_error_msg = ( 327s f"{self.status_code} Server Error: {reason} for url: {self.url}" 327s ) 327s 327s if http_error_msg: 327s > raise HTTPError(http_error_msg, response=self) 327s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/304937f3-6d1e-4ee9-b296-098a4a78129a 327s 327s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqukw3ap5/runtime/kernel-11613eef-c1ee-4eac-a52b-fe4ee17e3723.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56075 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59227 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: 11613eef-c1ee-4eac-a52b-fe4ee17e3723, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpqukw3ap5/notebooks/foo'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 19.170000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.580000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d405f04e-d648-4075-b7df-98005b091877 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d405f04e-d648-4075-b7df-98005b091877 327s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/3cd62c56-980a-4f11-a117-890b238c9ffd (127.0.0.1) 1.800000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 11613eef-c1ee-4eac-a52b-fe4ee17e3723 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 11613eef-c1ee-4eac-a52b-fe4ee17e3723 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 327s await kernel_awaitable 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/304937f3-6d1e-4ee9-b296-098a4a78129a (127.0.0.1) 327s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/304937f3-6d1e-4ee9-b296-098a4a78129a', version='HTTP/1.1', remote_ip='127.0.0.1') 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 327s result = await result 327s ^^^^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 327s future.result() 327s ~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 327s yield maybe_future(sm.delete_session(session_id)) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 327s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 327s raise self._exception.with_traceback(self._exception_tb) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 327s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 327s raise km.ready.exception() # type: ignore[misc] 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 327s await kernel_awaitable 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s WARNING NotebookApp:handlers.py:612 Unhandled error 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/304937f3-6d1e-4ee9-b296-098a4a78129a (127.0.0.1) 9.790000ms referer=None 327s --------------------------- Captured stderr teardown --------------------------- 327s Traceback (most recent call last): 327s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 327s return _run_code(code, main_globals, None, 327s "__main__", mod_spec) 327s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 327s exec(code, run_globals) 327s ~~~~^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 327s from pathlib import Path 327s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 327s from glob import _StringGlobber, _no_recurse_symlinks 327s File "/usr/lib/python3.14/glob.py", line 236, in 327s magic_check = re.compile('([*?[])') 327s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 327s return _compile(pattern, flags) 327s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 327s p = _compiler.compile(pattern, flags) 327s File "/usr/lib/python3.14/re/_compiler.py", line 766, in compile 327s code = _code(p, flags) 327s File "/usr/lib/python3.14/re/_compiler.py", line 599, in _code 327s _compile(code, p.data, flags) 327s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3.14/re/_compiler.py", line 133, in _compile 327s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 327s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3.14/re/_compiler.py", line 58, in _compile 327s for op, av in pattern: 327s ^^^^^^^ 327s File "/usr/lib/python3.14/re/_parser.py", line 168, in __getitem__ 327s def __getitem__(self, index): 327s 327s KeyboardInterrupt 327s _________________ AsyncSessionAPITest.test_create_file_session _________________ 327s 327s @self.addCleanup 327s def cleanup_sessions(): 327s for session in self.sess_api.list().json(): 327s > self.sess_api.delete(session['id']) 327s 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 327s return self._req('DELETE', id) 327s ^^^^^^^^^^^^^^^^^^^^^^^ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 327s response.raise_for_status() 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s 327s self = 327s 327s def raise_for_status(self): 327s """Raises :class:`HTTPError`, if one occurred.""" 327s 327s http_error_msg = "" 327s if isinstance(self.reason, bytes): 327s # We attempt to decode utf-8 first because some servers 327s # choose to localize their reason strings. If the string 327s # isn't utf-8, we fall back to iso-8859-1 for all other 327s # encodings. (See PR #3538) 327s try: 327s reason = self.reason.decode("utf-8") 327s except UnicodeDecodeError: 327s reason = self.reason.decode("iso-8859-1") 327s else: 327s reason = self.reason 327s 327s if 400 <= self.status_code < 500: 327s http_error_msg = ( 327s f"{self.status_code} Client Error: {reason} for url: {self.url}" 327s ) 327s 327s elif 500 <= self.status_code < 600: 327s http_error_msg = ( 327s f"{self.status_code} Server Error: {reason} for url: {self.url}" 327s ) 327s 327s if http_error_msg: 327s > raise HTTPError(http_error_msg, response=self) 327s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/4e62d88c-9bde-49fa-a14c-58e2d37ad7a8 327s 327s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqukw3ap5/runtime/kernel-b1138a8b-e99d-4a56-af98-9eed457a36e6.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43331 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34717 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: b1138a8b-e99d-4a56-af98-9eed457a36e6, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpqukw3ap5/notebooks/foo'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 18.900000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.490000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 11613eef-c1ee-4eac-a52b-fe4ee17e3723 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 11613eef-c1ee-4eac-a52b-fe4ee17e3723 327s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/304937f3-6d1e-4ee9-b296-098a4a78129a (127.0.0.1) 2.130000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b1138a8b-e99d-4a56-af98-9eed457a36e6 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b1138a8b-e99d-4a56-af98-9eed457a36e6 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 327s await kernel_awaitable 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/4e62d88c-9bde-49fa-a14c-58e2d37ad7a8 (127.0.0.1) 327s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/4e62d88c-9bde-49fa-a14c-58e2d37ad7a8', version='HTTP/1.1', remote_ip='127.0.0.1') 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 327s result = await result 327s ^^^^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 327s future.result() 327s ~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 327s yield maybe_future(sm.delete_session(session_id)) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 327s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 327s raise self._exception.with_traceback(self._exception_tb) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 327s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 327s raise km.ready.exception() # type: ignore[misc] 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 327s await kernel_awaitable 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s WARNING NotebookApp:handlers.py:612 Unhandled error 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/4e62d88c-9bde-49fa-a14c-58e2d37ad7a8 (127.0.0.1) 9.740000ms referer=None 327s --------------------------- Captured stderr teardown --------------------------- 327s Traceback (most recent call last): 327s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 327s return _run_code(code, main_globals, None, 327s "__main__", mod_spec) 327s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 327s exec(code, run_globals) 327s ~~~~^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 327s from pathlib import Path 327s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 327s from glob import _StringGlobber, _no_recurse_symlinks 327s File "/usr/lib/python3.14/glob.py", line 236, in 327s magic_check = re.compile('([*?[])') 327s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 327s return _compile(pattern, flags) 327s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 327s p = _compiler.compile(pattern, flags) 327s File "/usr/lib/python3.14/re/_compiler.py", line 766, in compile 327s code = _code(p, flags) 327s File "/usr/lib/python3.14/re/_compiler.py", line 596, in _code 327s _compile_info(code, p, flags) 327s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3.14/re/_compiler.py", line 541, in _compile_info 327s prefix, prefix_skip, got_all = _get_literal_prefix(pattern, flags) 327s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3.14/re/_compiler.py", line 472, in _get_literal_prefix 327s prefix.extend(prefix1) 327s ~~~~~~~~~~~~~^^^^^^^^^ 327s KeyboardInterrupt 327s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 327s 327s self = 327s 327s def test_create_with_kernel_id(self): 327s # create a new kernel 327s r = self.request('POST', 'api/kernels') 327s r.raise_for_status() 327s kernel = r.json() 327s 327s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 327s self.assertEqual(resp.status_code, 201) 327s newsession = resp.json() 327s self.assertIn('id', newsession) 327s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 327s self.assertEqual(newsession['kernel']['id'], kernel['id']) 327s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 327s 327s sessions = self.sess_api.list().json() 327s > self.assertEqual(sessions, [newsession]) 327s E AssertionError: Lists differ: [{'id': '4e62d88c-9bde-49fa-a14c-58e2d37ad7a8', 'p[553 chars]ne}}] != [{'id': 'd724beb5-00c0-4daa-be55-d7a242286e5e', 'p[279 chars]ne}}] 327s E 327s E First differing element 0: 327s E {'id': '4e62d88c-9bde-49fa-a14c-58e2d37ad7a8', 'p[218 chars]: 0}} 327s E {'id': 'd724beb5-00c0-4daa-be55-d7a242286e5e', 'p[278 chars]one}} 327s E 327s E First list contains 1 additional elements. 327s E First extra element 1: 327s E {'id': 'd724beb5-00c0-4daa-be55-d7a242286e5e', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '1f5af816-9bc3-4a56-ad66-da9bb2193494', 'name': 'python3', 'last_activity': '2026-01-22T18:28:46.740506Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 327s E 327s E Diff is 830 characters long. Set self.maxDiff to None to see it. 327s 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqukw3ap5/runtime/kernel-1f5af816-9bc3-4a56-ad66-da9bb2193494.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33123 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43387 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1f5af816-9bc3-4a56-ad66-da9bb2193494, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.960000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.640000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.550000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 2.630000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b1138a8b-e99d-4a56-af98-9eed457a36e6 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b1138a8b-e99d-4a56-af98-9eed457a36e6 327s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/4e62d88c-9bde-49fa-a14c-58e2d37ad7a8 (127.0.0.1) 1.820000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1f5af816-9bc3-4a56-ad66-da9bb2193494 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1f5af816-9bc3-4a56-ad66-da9bb2193494 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 327s await kernel_awaitable 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d724beb5-00c0-4daa-be55-d7a242286e5e (127.0.0.1) 327s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d724beb5-00c0-4daa-be55-d7a242286e5e', version='HTTP/1.1', remote_ip='127.0.0.1') 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 327s result = await result 327s ^^^^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 327s future.result() 327s ~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 327s yield maybe_future(sm.delete_session(session_id)) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 327s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 327s raise self._exception.with_traceback(self._exception_tb) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 327s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 327s raise km.ready.exception() # type: ignore[misc] 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 327s await kernel_awaitable 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s WARNING NotebookApp:handlers.py:612 Unhandled error 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/d724beb5-00c0-4daa-be55-d7a242286e5e (127.0.0.1) 9.370000ms referer=None 327s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 327s 327s @self.addCleanup 327s def cleanup_sessions(): 327s for session in self.sess_api.list().json(): 327s > self.sess_api.delete(session['id']) 327s 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 327s return self._req('DELETE', id) 327s ^^^^^^^^^^^^^^^^^^^^^^^ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 327s response.raise_for_status() 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s 327s self = 327s 327s def raise_for_status(self): 327s """Raises :class:`HTTPError`, if one occurred.""" 327s 327s http_error_msg = "" 327s if isinstance(self.reason, bytes): 327s # We attempt to decode utf-8 first because some servers 327s # choose to localize their reason strings. If the string 327s # isn't utf-8, we fall back to iso-8859-1 for all other 327s # encodings. (See PR #3538) 327s try: 327s reason = self.reason.decode("utf-8") 327s except UnicodeDecodeError: 327s reason = self.reason.decode("iso-8859-1") 327s else: 327s reason = self.reason 327s 327s if 400 <= self.status_code < 500: 327s http_error_msg = ( 327s f"{self.status_code} Client Error: {reason} for url: {self.url}" 327s ) 327s 327s elif 500 <= self.status_code < 600: 327s http_error_msg = ( 327s f"{self.status_code} Server Error: {reason} for url: {self.url}" 327s ) 327s 327s if http_error_msg: 327s > raise HTTPError(http_error_msg, response=self) 327s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d724beb5-00c0-4daa-be55-d7a242286e5e 327s 327s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 327s ---------------------------- Captured stderr setup ----------------------------- 327s Traceback (most recent call last): 327s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 327s return _run_code(code, main_globals, None, 327s "__main__", mod_spec) 327s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 327s exec(code, run_globals) 327s ~~~~^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 327s from ipykernel import kernelapp as app 327s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 327s from .connect import * # noqa: F403 327s ^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 327s from subprocess import PIPE, Popen 327s File "/usr/lib/python3.14/subprocess.py", line 49, in 327s import signal 327s File "/usr/lib/python3.14/signal.py", line 7, in 327s _IntEnum._convert_( 327s ~~~~~~~~~~~~~~~~~~^ 327s 'Signals', __name__, 327s ^^^^^^^^^^^^^^^^^^^^ 327s ...<2 lines>... 327s and (name.startswith('SIG') and not name.startswith('SIG_')) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s or name.startswith('CTRL_')) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3.14/enum.py", line 909, in _convert_ 327s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 327s File "/usr/lib/python3.14/enum.py", line 1895, in convert_class 327s setattr(enum_class, name, member) 327s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3.14/enum.py", line 810, in __setattr__ 327s def __setattr__(cls, name, value): 327s 327s KeyboardInterrupt 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 2.880000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqukw3ap5/runtime/kernel-14327c81-f5ad-4cb3-bf2f-9fbd007e7b67.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58781 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48097 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: 14327c81-f5ad-4cb3-bf2f-9fbd007e7b67, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.860000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1f5af816-9bc3-4a56-ad66-da9bb2193494 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1f5af816-9bc3-4a56-ad66-da9bb2193494 327s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/d724beb5-00c0-4daa-be55-d7a242286e5e (127.0.0.1) 2.260000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.420000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.670000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 14327c81-f5ad-4cb3-bf2f-9fbd007e7b67 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 14327c81-f5ad-4cb3-bf2f-9fbd007e7b67 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 327s await kernel_awaitable 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d724beb5-00c0-4daa-be55-d7a242286e5e (127.0.0.1) 327s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d724beb5-00c0-4daa-be55-d7a242286e5e', version='HTTP/1.1', remote_ip='127.0.0.1') 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 327s result = await result 327s ^^^^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 327s future.result() 327s ~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 327s yield maybe_future(sm.delete_session(session_id)) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 327s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 327s raise self._exception.with_traceback(self._exception_tb) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 327s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 327s raise km.ready.exception() # type: ignore[misc] 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 327s await kernel_awaitable 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s WARNING NotebookApp:handlers.py:612 Unhandled error 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/d724beb5-00c0-4daa-be55-d7a242286e5e (127.0.0.1) 9.470000ms referer=None 327s --------------------------- Captured stderr teardown --------------------------- 327s Traceback (most recent call last): 327s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 327s return _run_code(code, main_globals, None, 327s "__main__", mod_spec) 327s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 327s exec(code, run_globals) 327s ~~~~^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 327s from ipykernel import kernelapp as app 327s File "", line 1368, in _find_and_load 327s File "", line 415, in __init__ 327s KeyboardInterrupt 327s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 327s 327s @self.addCleanup 327s def cleanup_sessions(): 327s for session in self.sess_api.list().json(): 327s > self.sess_api.delete(session['id']) 327s 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 327s return self._req('DELETE', id) 327s ^^^^^^^^^^^^^^^^^^^^^^^ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 327s response.raise_for_status() 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s 327s self = 327s 327s def raise_for_status(self): 327s """Raises :class:`HTTPError`, if one occurred.""" 327s 327s http_error_msg = "" 327s if isinstance(self.reason, bytes): 327s # We attempt to decode utf-8 first because some servers 327s # choose to localize their reason strings. If the string 327s # isn't utf-8, we fall back to iso-8859-1 for all other 327s # encodings. (See PR #3538) 327s try: 327s reason = self.reason.decode("utf-8") 327s except UnicodeDecodeError: 327s reason = self.reason.decode("iso-8859-1") 327s else: 327s reason = self.reason 327s 327s if 400 <= self.status_code < 500: 327s http_error_msg = ( 327s f"{self.status_code} Client Error: {reason} for url: {self.url}" 327s ) 327s 327s elif 500 <= self.status_code < 600: 327s http_error_msg = ( 327s f"{self.status_code} Server Error: {reason} for url: {self.url}" 327s ) 327s 327s if http_error_msg: 327s > raise HTTPError(http_error_msg, response=self) 327s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d724beb5-00c0-4daa-be55-d7a242286e5e 327s 327s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.710000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqukw3ap5/runtime/kernel-53deb318-490f-461b-a9e7-7f6df0a3de31.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34425 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34231 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: 53deb318-490f-461b-a9e7-7f6df0a3de31, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpqukw3ap5/notebooks/foo'} 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 14327c81-f5ad-4cb3-bf2f-9fbd007e7b67 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 14327c81-f5ad-4cb3-bf2f-9fbd007e7b67 327s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/d724beb5-00c0-4daa-be55-d7a242286e5e (127.0.0.1) 19.760000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.510000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.500000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 53deb318-490f-461b-a9e7-7f6df0a3de31 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 53deb318-490f-461b-a9e7-7f6df0a3de31 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 327s await kernel_awaitable 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d724beb5-00c0-4daa-be55-d7a242286e5e (127.0.0.1) 327s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d724beb5-00c0-4daa-be55-d7a242286e5e', version='HTTP/1.1', remote_ip='127.0.0.1') 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 327s result = await result 327s ^^^^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 327s future.result() 327s ~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 327s yield maybe_future(sm.delete_session(session_id)) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 327s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 327s raise self._exception.with_traceback(self._exception_tb) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 327s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 327s raise km.ready.exception() # type: ignore[misc] 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 327s await kernel_awaitable 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s WARNING NotebookApp:handlers.py:612 Unhandled error 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/d724beb5-00c0-4daa-be55-d7a242286e5e (127.0.0.1) 9.510000ms referer=None 327s --------------------------- Captured stderr teardown --------------------------- 327s Traceback (most recent call last): 327s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 327s return _run_code(code, main_globals, None, 327s "__main__", mod_spec) 327s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 327s exec(code, run_globals) 327s ~~~~^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 327s from pathlib import Path 327s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 327s from glob import _StringGlobber, _no_recurse_symlinks 327s File "/usr/lib/python3.14/glob.py", line 5, in 327s import re 327s File "/usr/lib/python3.14/re/__init__.py", line 126, in 327s from . import _compiler, _parser 327s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 327s from . import _parser 327s File "", line 1371, in _find_and_load 327s File "", line 1342, in _find_and_load_unlocked 327s File "", line 938, in _load_unlocked 327s File "", line 755, in exec_module 327s File "", line 888, in get_code 327s File "", line 511, in _compile_bytecode 327s KeyboardInterrupt 327s _____________________ AsyncSessionAPITest.test_modify_type _____________________ 327s 327s @self.addCleanup 327s def cleanup_sessions(): 327s for session in self.sess_api.list().json(): 327s > self.sess_api.delete(session['id']) 327s 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 327s return self._req('DELETE', id) 327s ^^^^^^^^^^^^^^^^^^^^^^^ 327s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 327s response.raise_for_status() 327s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 327s 327s self = 327s 327s def raise_for_status(self): 327s """Raises :class:`HTTPError`, if one occurred.""" 327s 327s http_error_msg = "" 327s if isinstance(self.reason, bytes): 327s # We attempt to decode utf-8 first because some servers 327s # choose to localize their reason strings. If the string 327s # isn't utf-8, we fall back to iso-8859-1 for all other 327s # encodings. (See PR #3538) 327s try: 327s reason = self.reason.decode("utf-8") 327s except UnicodeDecodeError: 327s reason = self.reason.decode("iso-8859-1") 327s else: 327s reason = self.reason 327s 327s if 400 <= self.status_code < 500: 327s http_error_msg = ( 327s f"{self.status_code} Client Error: {reason} for url: {self.url}" 327s ) 327s 327s elif 500 <= self.status_code < 600: 327s http_error_msg = ( 327s f"{self.status_code} Server Error: {reason} for url: {self.url}" 327s ) 327s 327s if http_error_msg: 327s > raise HTTPError(http_error_msg, response=self) 327s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1d55ae6b-f4ac-4d8b-9f8c-d01b651d47e4 327s 327s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 327s ------------------------------ Captured log call ------------------------------- 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 327s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqukw3ap5/runtime/kernel-8d970507-0f50-4ccd-bb1e-401b0c1b32bf.json'] 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40995 327s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45471 327s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8d970507-0f50-4ccd-bb1e-401b0c1b32bf, name: python3 327s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpqukw3ap5/notebooks/foo'} 327s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 18.870000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/1d55ae6b-f4ac-4d8b-9f8c-d01b651d47e4 (127.0.0.1) 2.140000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.530000ms 327s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 327s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8d970507-0f50-4ccd-bb1e-401b0c1b32bf 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8d970507-0f50-4ccd-bb1e-401b0c1b32bf 327s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 327s await kernel_awaitable 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1d55ae6b-f4ac-4d8b-9f8c-d01b651d47e4 (127.0.0.1) 327s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1d55ae6b-f4ac-4d8b-9f8c-d01b651d47e4', version='HTTP/1.1', remote_ip='127.0.0.1') 327s Traceback (most recent call last): 327s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 327s result = await result 327s ^^^^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 327s future.result() 327s ~~~~~~~~~~~~~^^ 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 327s yield maybe_future(sm.delete_session(session_id)) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 327s yielded = self.gen.throw(exc) 327s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 327s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 327s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 327s value = future.result() 327s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 327s raise self._exception.with_traceback(self._exception_tb) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 327s result = coro.send(None) 327s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 327s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 327s raise km.ready.exception() # type: ignore[misc] 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 327s await kernel_awaitable 327s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 327s result = await obj 327s ^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 327s raise e 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 327s out = await method(self, *args, **kwargs) 327s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 327s await self._async_finish_shutdown(restart=restart) 327s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 327s await asyncio.wait_for( 327s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 327s ) 327s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 327s async with timeouts.timeout(timeout): 327s ~~~~~~~~~~~~~~~~^^^^^^^^^ 327s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 327s raise RuntimeError("Timeout should be used inside a task") 327s RuntimeError: Timeout should be used inside a task 327s WARNING NotebookApp:handlers.py:612 Unhandled error 327s ERROR NotebookApp:log.py:55 { 327s "Host": "localhost:12341", 327s "Accept": "*/*", 327s "User-Agent": "python-requests/2.32.5" 327s } 327s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1d55ae6b-f4ac-4d8b-9f8c-d01b651d47e4 (127.0.0.1) 9.210000ms referer=None 327s --------------------------- Captured stderr teardown --------------------------- 327s Traceback (most recent call last): 327s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 327s return _run_code(code, main_globals, None, 327s "__main__", mod_spec) 327s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 327s exec(code, run_globals) 327s ~~~~^^^^^^^^^^^^^^^^^^^ 327s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 327s from pathlib import Path 327s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 327s from glob import _StringGlobber, _no_recurse_symlinks 327s File "/usr/lib/python3.14/glob.py", line 5, in 327s import re 327s File "/usr/lib/python3.14/re/__init__.py", line 126, in 327s from . import _compiler, _parser 327s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 327s from . import _parser 327s File "/usr/lib/python3.14/re/_parser.py", line 15, in 327s from ._constants import * 327s File "", line 1371, in _find_and_load 327s File "", line 1342, in _find_and_load_unlocked 327s File "", line 938, in _load_unlocked 327s File "", line 755, in exec_module 327s File "", line 876, in get_code 327s File "", line 481, in _validate_timestamp_pyc 327s File "", line 89, in _unpack_uint32 327s KeyboardInterrupt 327s ---------------------------- Captured log teardown ----------------------------- 327s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 11613eef-c1ee-4eac-a52b-fe4ee17e3723 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d405f04e-d648-4075-b7df-98005b091877 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 14327c81-f5ad-4cb3-bf2f-9fbd007e7b67 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8fd545e1-40bd-4455-a1fd-6092f0769a09 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 53deb318-490f-461b-a9e7-7f6df0a3de31 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b1138a8b-e99d-4a56-af98-9eed457a36e6 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1f5af816-9bc3-4a56-ad66-da9bb2193494 327s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8d970507-0f50-4ccd-bb1e-401b0c1b32bf 327s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 327s =============================== warnings summary =============================== 327s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 327s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 327s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 327s return LooseVersion(v) >= LooseVersion(check) 327s 327s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 327s services/kernels/tests/test_kernels_api.py: 72 warnings 327s services/sessions/tests/test_sessions_api.py: 106 warnings 327s /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). 327s dt = unaware(*args, **kwargs) 327s 327s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 327s /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 327s pytestmark = pytest.mark.integration_tests 327s 327s services/kernels/tests/test_kernels_api.py: 6 warnings 327s services/sessions/tests/test_sessions_api.py: 6 warnings 327s /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 327s policy = events.get_event_loop_policy() 327s 327s services/kernels/tests/test_kernels_api.py: 22 warnings 327s services/sessions/tests/test_sessions_api.py: 17 warnings 327s /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 327s loop = events.get_event_loop_policy().get_event_loop() 327s 327s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 327s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 327s loop.make_current() 327s 327s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 327s =========================== short test summary info ============================ 327s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 327s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 327s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 327s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 327s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 327s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 327s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 327s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 327s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 327s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 327s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 327s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 327s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 327s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 327s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 327s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 327s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_type 327s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 327s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 327s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 327s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 327s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 327s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 327s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 327s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_type 327s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 327s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 327s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 327s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 327s ===== 25 failed, 2 passed, 303 deselected, 234 warnings, 4 errors in 7.44s ===== 328s *** END OF RUN 2: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 328s *** 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 332s ============================= test session starts ============================== 332s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 332s rootdir: /tmp/autopkgtest.2Ulezp/autopkgtest_tmp 332s plugins: typeguard-4.4.4 332s collected 330 items / 305 deselected / 25 selected 332s run-last-failure: rerun previous 25 failures 332s 334s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 36%] 336s services/sessions/tests/test_sessions_api.py FFFFFEFF.FFFFFEFF. [100%] 336s 336s ==================================== ERRORS ==================================== 336s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 336s 336s self = 336s 336s def tearDown(self): 336s for k in self.kern_api.list().json(): 336s > self.kern_api.shutdown(k['id']) 336s 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 336s return self._req('DELETE', id) 336s ^^^^^^^^^^^^^^^^^^^^^^^ 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 336s response.raise_for_status() 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s 336s self = 336s 336s def raise_for_status(self): 336s """Raises :class:`HTTPError`, if one occurred.""" 336s 336s http_error_msg = "" 336s if isinstance(self.reason, bytes): 336s # We attempt to decode utf-8 first because some servers 336s # choose to localize their reason strings. If the string 336s # isn't utf-8, we fall back to iso-8859-1 for all other 336s # encodings. (See PR #3538) 336s try: 336s reason = self.reason.decode("utf-8") 336s except UnicodeDecodeError: 336s reason = self.reason.decode("iso-8859-1") 336s else: 336s reason = self.reason 336s 336s if 400 <= self.status_code < 500: 336s http_error_msg = ( 336s f"{self.status_code} Client Error: {reason} for url: {self.url}" 336s ) 336s 336s elif 500 <= self.status_code < 600: 336s http_error_msg = ( 336s f"{self.status_code} Server Error: {reason} for url: {self.url}" 336s ) 336s 336s if http_error_msg: 336s > raise HTTPError(http_error_msg, response=self) 336s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/eca04532-ba31-48d6-94cf-e5da3aa8cbcd 336s 336s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 336s ----------------------------- Captured stderr call ----------------------------- 336s Traceback (most recent call last): 336s File "", line 1249, in _path_importer_cache 336s KeyError: '/usr/lib/python3.14/re' 336s 336s During handling of the above exception, another exception occurred: 336s 336s Traceback (most recent call last): 336s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 336s return _run_code(code, main_globals, None, 336s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 336s exec(code, run_globals) 336s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 336s from pathlib import Path 336s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 336s from glob import _StringGlobber, _no_recurse_symlinks 336s File "/usr/lib/python3.14/glob.py", line 5, in 336s import re 336s File "/usr/lib/python3.14/re/__init__.py", line 126, in 336s from . import _compiler, _parser 336s File "", line 1371, in _find_and_load 336s File "", line 1333, in _find_and_load_unlocked 336s File "", line 1267, in _find_spec 336s File "", line 1292, in find_spec 336s File "", line 1264, in _get_spec 336s File "", line 1251, in _path_importer_cache 336s File "", line 1227, in _path_hooks 336s File "", line 1451, in path_hook_for_FileFinder 336s File "", line 173, in _path_isdir 336s File "", line 158, in _path_is_mode_type 336s File "", line 152, in _path_stat 336s KeyboardInterrupt 336s ------------------------------ Captured log call ------------------------------- 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 336s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4l_08fy4/runtime/kernel-eca04532-ba31-48d6-94cf-e5da3aa8cbcd.json'] 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34599 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48641 336s INFO NotebookApp:kernelmanager.py:179 Kernel started: eca04532-ba31-48d6-94cf-e5da3aa8cbcd, name: python3 336s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 336s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 19.730000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.290000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 336s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4l_08fy4/runtime/kernel-f40d8ea2-f6ca-4a32-973a-b52afac759be.json'] 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43167 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42843 336s INFO NotebookApp:kernelmanager.py:179 Kernel started: f40d8ea2-f6ca-4a32-973a-b52afac759be, name: python3 336s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 336s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 21.340000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.470000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: f40d8ea2-f6ca-4a32-973a-b52afac759be 336s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/f40d8ea2-f6ca-4a32-973a-b52afac759be/interrupt (127.0.0.1) 2.250000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 336s yield maybe_future(km.restart_kernel(kernel_id)) 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 336s value = future.result() 336s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 336s raise self._exception.with_traceback(self._exception_tb) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 336s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 336s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 336s return _runner_map[name].run(inner) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 336s return fut.result(None) 336s ~~~~~~~~~~^^^^^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 336s return self.__get_result() 336s ~~~~~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 336s raise self._exception 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 336s await ensure_async(kernel.restart_kernel(now=now)) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 336s return _runner_map[name].run(inner) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 336s return fut.result(None) 336s ~~~~~~~~~~^^^^^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 336s return self.__get_result() 336s ~~~~~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 336s raise self._exception 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 336s await self._async_shutdown_kernel(now=now, restart=True) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:log.py:55 { 336s "Host": "localhost:12341", 336s "Accept": "*/*", 336s "User-Agent": "python-requests/2.32.5" 336s } 336s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/f40d8ea2-f6ca-4a32-973a-b52afac759be/restart (127.0.0.1) 7.760000ms referer=None 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.570000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eca04532-ba31-48d6-94cf-e5da3aa8cbcd 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eca04532-ba31-48d6-94cf-e5da3aa8cbcd 336s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/eca04532-ba31-48d6-94cf-e5da3aa8cbcd (127.0.0.1) 336s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/eca04532-ba31-48d6-94cf-e5da3aa8cbcd', version='HTTP/1.1', remote_ip='127.0.0.1') 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 336s result = await result 336s ^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 336s yielded = ctx_run(next, result) 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 336s yield maybe_future(km.shutdown_kernel(kernel_id)) 336s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 336s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 336s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 336s return _runner_map[name].run(inner) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 336s return fut.result(None) 336s ~~~~~~~~~~^^^^^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 336s return self.__get_result() 336s ~~~~~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 336s raise self._exception 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 336s stopper = ensure_async(km.shutdown_kernel(now, restart)) 336s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 336s return _runner_map[name].run(inner) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 336s return fut.result(None) 336s ~~~~~~~~~~^^^^^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 336s return self.__get_result() 336s ~~~~~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 336s raise self._exception 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s WARNING NotebookApp:handlers.py:612 Unhandled error 336s ERROR NotebookApp:log.py:55 { 336s "Host": "localhost:12341", 336s "Accept": "*/*", 336s "User-Agent": "python-requests/2.32.5" 336s } 336s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/eca04532-ba31-48d6-94cf-e5da3aa8cbcd (127.0.0.1) 10.190000ms referer=None 336s --------------------------- Captured stderr teardown --------------------------- 336s Traceback (most recent call last): 336s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 336s return _run_code(code, main_globals, None, 336s "__main__", mod_spec) 336s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 336s exec(code, run_globals) 336s ~~~~^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 336s from ipykernel import kernelapp as app 336s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 336s from .connect import * # noqa: F403 336s ^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 336s import jupyter_client 336s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 336s from .asynchronous import AsyncKernelClient 336s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 336s from .client import AsyncKernelClient # noqa 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 336s import zmq.asyncio 336s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 336s import asyncio 336s File "", line 1360, in _find_and_load 336s KeyboardInterrupt 336s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 336s 336s self = 336s 336s def tearDown(self): 336s for k in self.kern_api.list().json(): 336s > self.kern_api.shutdown(k['id']) 336s 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 336s return self._req('DELETE', id) 336s ^^^^^^^^^^^^^^^^^^^^^^^ 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 336s response.raise_for_status() 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s 336s self = 336s 336s def raise_for_status(self): 336s """Raises :class:`HTTPError`, if one occurred.""" 336s 336s http_error_msg = "" 336s if isinstance(self.reason, bytes): 336s # We attempt to decode utf-8 first because some servers 336s # choose to localize their reason strings. If the string 336s # isn't utf-8, we fall back to iso-8859-1 for all other 336s # encodings. (See PR #3538) 336s try: 336s reason = self.reason.decode("utf-8") 336s except UnicodeDecodeError: 336s reason = self.reason.decode("iso-8859-1") 336s else: 336s reason = self.reason 336s 336s if 400 <= self.status_code < 500: 336s http_error_msg = ( 336s f"{self.status_code} Client Error: {reason} for url: {self.url}" 336s ) 336s 336s elif 500 <= self.status_code < 600: 336s http_error_msg = ( 336s f"{self.status_code} Server Error: {reason} for url: {self.url}" 336s ) 336s 336s if http_error_msg: 336s > raise HTTPError(http_error_msg, response=self) 336s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/a6e1ff1e-e781-48aa-9ffa-0d321af1d9e8 336s 336s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 336s ----------------------------- Captured stderr call ----------------------------- 336s Traceback (most recent call last): 336s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 336s return _run_code(code, main_globals, None, 336s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 336s exec(code, run_globals) 336s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 336s from pathlib import Path 336s File "/usr/lib/python3.14/pathlib/__init__.py", line 9, in 336s import operator 336s File "", line 1368, in _find_and_load 336s File "", line 421, in __enter__ 336s File "", line 316, in acquire 336s KeyboardInterrupt 336s ------------------------------ Captured log call ------------------------------- 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 336s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppqlr151x/runtime/kernel-a6e1ff1e-e781-48aa-9ffa-0d321af1d9e8.json'] 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34565 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39475 336s INFO NotebookApp:kernelmanager.py:179 Kernel started: a6e1ff1e-e781-48aa-9ffa-0d321af1d9e8, name: python3 336s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 336s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.110000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.310000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 336s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppqlr151x/runtime/kernel-bbe086b5-4209-4342-933c-034331943be7.json'] 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43153 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34043 336s INFO NotebookApp:kernelmanager.py:179 Kernel started: bbe086b5-4209-4342-933c-034331943be7, name: python3 336s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 336s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.100000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.370000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: bbe086b5-4209-4342-933c-034331943be7 336s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/bbe086b5-4209-4342-933c-034331943be7/interrupt (127.0.0.1) 1.530000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 336s yield maybe_future(km.restart_kernel(kernel_id)) 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 336s value = future.result() 336s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 336s raise self._exception.with_traceback(self._exception_tb) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 336s result = coro.throw(exc) 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 336s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 336s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 336s yield self # This tells Task to wait for completion. 336s ^^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 336s future.result() 336s ~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 336s raise self._exception.with_traceback(self._exception_tb) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 336s await ensure_async(kernel.restart_kernel(now=now)) 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 336s result = await obj 336s ^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 336s await self._async_shutdown_kernel(now=now, restart=True) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:log.py:55 { 336s "Host": "localhost:12341", 336s "Accept": "*/*", 336s "User-Agent": "python-requests/2.32.5" 336s } 336s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/bbe086b5-4209-4342-933c-034331943be7/restart (127.0.0.1) 4.960000ms referer=None 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.290000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a6e1ff1e-e781-48aa-9ffa-0d321af1d9e8 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a6e1ff1e-e781-48aa-9ffa-0d321af1d9e8 336s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 336s await kernel_awaitable 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 336s result = await obj 336s ^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/a6e1ff1e-e781-48aa-9ffa-0d321af1d9e8 (127.0.0.1) 336s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/a6e1ff1e-e781-48aa-9ffa-0d321af1d9e8', version='HTTP/1.1', remote_ip='127.0.0.1') 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 336s result = await result 336s ^^^^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 336s future.result() 336s ~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 336s yielded = self.gen.throw(exc) 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 336s yield maybe_future(km.shutdown_kernel(kernel_id)) 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 336s value = future.result() 336s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 336s raise self._exception.with_traceback(self._exception_tb) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 336s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 336s raise km.ready.exception() # type: ignore[misc] 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 336s await kernel_awaitable 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 336s result = await obj 336s ^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s WARNING NotebookApp:handlers.py:612 Unhandled error 336s ERROR NotebookApp:log.py:55 { 336s "Host": "localhost:12341", 336s "Accept": "*/*", 336s "User-Agent": "python-requests/2.32.5" 336s } 336s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/a6e1ff1e-e781-48aa-9ffa-0d321af1d9e8 (127.0.0.1) 8.360000ms referer=None 336s --------------------------- Captured stderr teardown --------------------------- 336s Traceback (most recent call last): 336s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 336s return _run_code(code, main_globals, None, 336s "__main__", mod_spec) 336s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 336s exec(code, run_globals) 336s ~~~~^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 336s from ipykernel import kernelapp as app 336s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 336s from .connect import * # noqa: F403 336s ^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 336s import jupyter_client 336s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 336s from .asynchronous import AsyncKernelClient 336s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 336s from .client import AsyncKernelClient # noqa 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 336s import zmq.asyncio 336s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 336s from zmq import sugar 336s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 336s from zmq.sugar import context, frame, poll, socket, tracker, version 336s File "/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 23, in 336s from .socket import Socket, SyncSocket 336s File "/usr/lib/python3/dist-packages/zmq/sugar/socket.py", line 9, in 336s import pickle 336s File "/usr/lib/python3.14/pickle.py", line 33, in 336s from struct import pack, unpack 336s File "/usr/lib/python3.14/struct.py", line 13, in 336s from _struct import * 336s KeyboardInterrupt 336s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 336s 336s @self.addCleanup 336s def cleanup_sessions(): 336s for session in self.sess_api.list().json(): 336s > self.sess_api.delete(session['id']) 336s 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 336s return self._req('DELETE', id) 336s ^^^^^^^^^^^^^^^^^^^^^^^ 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 336s response.raise_for_status() 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s 336s self = 336s 336s def raise_for_status(self): 336s """Raises :class:`HTTPError`, if one occurred.""" 336s 336s http_error_msg = "" 336s if isinstance(self.reason, bytes): 336s # We attempt to decode utf-8 first because some servers 336s # choose to localize their reason strings. If the string 336s # isn't utf-8, we fall back to iso-8859-1 for all other 336s # encodings. (See PR #3538) 336s try: 336s reason = self.reason.decode("utf-8") 336s except UnicodeDecodeError: 336s reason = self.reason.decode("iso-8859-1") 336s else: 336s reason = self.reason 336s 336s if 400 <= self.status_code < 500: 336s http_error_msg = ( 336s f"{self.status_code} Client Error: {reason} for url: {self.url}" 336s ) 336s 336s elif 500 <= self.status_code < 600: 336s http_error_msg = ( 336s f"{self.status_code} Server Error: {reason} for url: {self.url}" 336s ) 336s 336s if http_error_msg: 336s > raise HTTPError(http_error_msg, response=self) 336s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/befb63d2-105f-4025-b1a3-a7caefd8fc2d 336s 336s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 336s ------------------------------ Captured log call ------------------------------- 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 336s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2ubp_jse/runtime/kernel-81f54a95-4f69-4ba1-b3e4-2119b231edf9.json'] 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37763 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54927 336s INFO NotebookApp:kernelmanager.py:179 Kernel started: 81f54a95-4f69-4ba1-b3e4-2119b231edf9, name: python3 336s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 336s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 21.220000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 2.650000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.590000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.620000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3b1faf0b-417f-4cea-94e3-20c44abdd57a 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3b1faf0b-417f-4cea-94e3-20c44abdd57a 336s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/7283f9a4-bba7-4680-8900-8161e54be9b0 (127.0.0.1) 3.210000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 81f54a95-4f69-4ba1-b3e4-2119b231edf9 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 81f54a95-4f69-4ba1-b3e4-2119b231edf9 336s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/befb63d2-105f-4025-b1a3-a7caefd8fc2d (127.0.0.1) 336s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/befb63d2-105f-4025-b1a3-a7caefd8fc2d', version='HTTP/1.1', remote_ip='127.0.0.1') 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 336s result = await result 336s ^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 336s yielded = self.gen.throw(exc) 336s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 336s yield maybe_future(sm.delete_session(session_id)) 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 336s value = future.result() 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 336s yielded = self.gen.send(value) 336s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 336s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 336s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 336s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 336s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 336s return _runner_map[name].run(inner) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 336s return fut.result(None) 336s ~~~~~~~~~~^^^^^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 336s return self.__get_result() 336s ~~~~~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 336s raise self._exception 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 336s stopper = ensure_async(km.shutdown_kernel(now, restart)) 336s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 336s return _runner_map[name].run(inner) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 336s return fut.result(None) 336s ~~~~~~~~~~^^^^^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 336s return self.__get_result() 336s ~~~~~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 336s raise self._exception 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s WARNING NotebookApp:handlers.py:612 Unhandled error 336s ERROR NotebookApp:log.py:55 { 336s "Host": "localhost:12341", 336s "Accept": "*/*", 336s "User-Agent": "python-requests/2.32.5" 336s } 336s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/befb63d2-105f-4025-b1a3-a7caefd8fc2d (127.0.0.1) 12.970000ms referer=None 336s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 336s 336s @self.addCleanup 336s def cleanup_sessions(): 336s for session in self.sess_api.list().json(): 336s > self.sess_api.delete(session['id']) 336s 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 336s return self._req('DELETE', id) 336s ^^^^^^^^^^^^^^^^^^^^^^^ 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 336s response.raise_for_status() 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s 336s self = 336s 336s def raise_for_status(self): 336s """Raises :class:`HTTPError`, if one occurred.""" 336s 336s http_error_msg = "" 336s if isinstance(self.reason, bytes): 336s # We attempt to decode utf-8 first because some servers 336s # choose to localize their reason strings. If the string 336s # isn't utf-8, we fall back to iso-8859-1 for all other 336s # encodings. (See PR #3538) 336s try: 336s reason = self.reason.decode("utf-8") 336s except UnicodeDecodeError: 336s reason = self.reason.decode("iso-8859-1") 336s else: 336s reason = self.reason 336s 336s if 400 <= self.status_code < 500: 336s http_error_msg = ( 336s f"{self.status_code} Client Error: {reason} for url: {self.url}" 336s ) 336s 336s elif 500 <= self.status_code < 600: 336s http_error_msg = ( 336s f"{self.status_code} Server Error: {reason} for url: {self.url}" 336s ) 336s 336s if http_error_msg: 336s > raise HTTPError(http_error_msg, response=self) 336s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/38188bcd-e0d7-4f56-82a5-7144689a3fdf 336s 336s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 336s ------------------------------ Captured log call ------------------------------- 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 336s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvt_ef4ou/runtime/kernel-5c0661b5-ca03-43d6-8557-87b3ce500c2a.json'] 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35927 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55037 336s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5c0661b5-ca03-43d6-8557-87b3ce500c2a, name: python3 336s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 336s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.620000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.750000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.470000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.800000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4e8178eb-1658-4e37-9346-7be2ea37355d 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4e8178eb-1658-4e37-9346-7be2ea37355d 336s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/b32bf06c-1da0-467c-af9b-55232cf34dd5 (127.0.0.1) 1.800000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5c0661b5-ca03-43d6-8557-87b3ce500c2a 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5c0661b5-ca03-43d6-8557-87b3ce500c2a 336s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 336s await kernel_awaitable 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 336s result = await obj 336s ^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/38188bcd-e0d7-4f56-82a5-7144689a3fdf (127.0.0.1) 336s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/38188bcd-e0d7-4f56-82a5-7144689a3fdf', version='HTTP/1.1', remote_ip='127.0.0.1') 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 336s result = await result 336s ^^^^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 336s future.result() 336s ~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 336s yielded = self.gen.throw(exc) 336s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 336s yield maybe_future(sm.delete_session(session_id)) 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 336s value = future.result() 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 336s yielded = self.gen.throw(exc) 336s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 336s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 336s value = future.result() 336s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 336s raise self._exception.with_traceback(self._exception_tb) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 336s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 336s raise km.ready.exception() # type: ignore[misc] 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 336s await kernel_awaitable 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 336s result = await obj 336s ^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s WARNING NotebookApp:handlers.py:612 Unhandled error 336s ERROR NotebookApp:log.py:55 { 336s "Host": "localhost:12341", 336s "Accept": "*/*", 336s "User-Agent": "python-requests/2.32.5" 336s } 336s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/38188bcd-e0d7-4f56-82a5-7144689a3fdf (127.0.0.1) 12.460000ms referer=None 336s =================================== FAILURES =================================== 336s ______________________ KernelAPITest.test_default_kernel _______________________ 336s 336s self = 336s 336s def tearDown(self): 336s for k in self.kern_api.list().json(): 336s > self.kern_api.shutdown(k['id']) 336s 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 336s return self._req('DELETE', id) 336s ^^^^^^^^^^^^^^^^^^^^^^^ 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 336s response.raise_for_status() 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s 336s self = 336s 336s def raise_for_status(self): 336s """Raises :class:`HTTPError`, if one occurred.""" 336s 336s http_error_msg = "" 336s if isinstance(self.reason, bytes): 336s # We attempt to decode utf-8 first because some servers 336s # choose to localize their reason strings. If the string 336s # isn't utf-8, we fall back to iso-8859-1 for all other 336s # encodings. (See PR #3538) 336s try: 336s reason = self.reason.decode("utf-8") 336s except UnicodeDecodeError: 336s reason = self.reason.decode("iso-8859-1") 336s else: 336s reason = self.reason 336s 336s if 400 <= self.status_code < 500: 336s http_error_msg = ( 336s f"{self.status_code} Client Error: {reason} for url: {self.url}" 336s ) 336s 336s elif 500 <= self.status_code < 600: 336s http_error_msg = ( 336s f"{self.status_code} Server Error: {reason} for url: {self.url}" 336s ) 336s 336s if http_error_msg: 336s > raise HTTPError(http_error_msg, response=self) 336s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/7a345696-6713-4764-b48b-50a6880922af 336s 336s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 336s ------------------------------ Captured log setup ------------------------------ 336s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp4l_08fy4/config', '/tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp4l_08fy4/etc/jupyter'] for config files 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp4l_08fy4/etc/jupyter 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp4l_08fy4/config 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp4l_08fy4/etc/jupyter 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp4l_08fy4/config 336s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp4l_08fy4/notebooks 336s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 336s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 336s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 336s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 336s WARNING NotebookApp:handlers.py:612 Forbidden 336s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (127.0.0.1) 1.600000ms referer=None 336s ------------------------------ Captured log call ------------------------------- 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 336s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4l_08fy4/runtime/kernel-7a345696-6713-4764-b48b-50a6880922af.json'] 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43267 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51621 336s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7a345696-6713-4764-b48b-50a6880922af, name: python3 336s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 336s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 77.310000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.770000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7a345696-6713-4764-b48b-50a6880922af 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7a345696-6713-4764-b48b-50a6880922af 336s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/7a345696-6713-4764-b48b-50a6880922af (127.0.0.1) 336s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/7a345696-6713-4764-b48b-50a6880922af', version='HTTP/1.1', remote_ip='127.0.0.1') 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 336s result = await result 336s ^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 336s yielded = ctx_run(next, result) 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 336s yield maybe_future(km.shutdown_kernel(kernel_id)) 336s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 336s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 336s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 336s return _runner_map[name].run(inner) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 336s return fut.result(None) 336s ~~~~~~~~~~^^^^^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 336s return self.__get_result() 336s ~~~~~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 336s raise self._exception 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 336s stopper = ensure_async(km.shutdown_kernel(now, restart)) 336s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 336s return _runner_map[name].run(inner) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 336s return fut.result(None) 336s ~~~~~~~~~~^^^^^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 336s return self.__get_result() 336s ~~~~~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 336s raise self._exception 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s WARNING NotebookApp:handlers.py:612 Unhandled error 336s ERROR NotebookApp:log.py:55 { 336s "Host": "localhost:12341", 336s "Accept": "*/*", 336s "User-Agent": "python-requests/2.32.5" 336s } 336s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/7a345696-6713-4764-b48b-50a6880922af (127.0.0.1) 13.580000ms referer=None 336s --------------------------- Captured stderr teardown --------------------------- 336s Traceback (most recent call last): 336s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 336s return _run_code(code, main_globals, None, 336s "__main__", mod_spec) 336s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 336s exec(code, run_globals) 336s ~~~~^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 336s from pathlib import Path 336s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 336s from pathlib._os import ( 336s ...<3 lines>... 336s ) 336s File "", line 1371, in _find_and_load 336s File "", line 1342, in _find_and_load_unlocked 336s File "", line 938, in _load_unlocked 336s File "", line 755, in exec_module 336s File "", line 888, in get_code 336s File "", line 511, in _compile_bytecode 336s KeyboardInterrupt 336s ______________________ KernelAPITest.test_kernel_handler _______________________ 336s 336s self = 336s 336s def test_kernel_handler(self): 336s # GET kernel with given id 336s kid = self.kern_api.start().json()['id'] 336s r = self.kern_api.get(kid) 336s kern1 = r.json() 336s self.assertEqual(r.status_code, 200) 336s assert isinstance(kern1, dict) 336s self.assertIn('id', kern1) 336s self.assertEqual(kern1['id'], kid) 336s 336s # Request a bad kernel id and check that a JSON 336s # message is returned! 336s bad_id = '111-111-111-111-111' 336s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 336s self.kern_api.get(bad_id) 336s 336s # DELETE kernel with id 336s > r = self.kern_api.shutdown(kid) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 336s return self._req('DELETE', id) 336s ^^^^^^^^^^^^^^^^^^^^^^^ 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 336s response.raise_for_status() 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s 336s self = 336s 336s def raise_for_status(self): 336s """Raises :class:`HTTPError`, if one occurred.""" 336s 336s http_error_msg = "" 336s if isinstance(self.reason, bytes): 336s # We attempt to decode utf-8 first because some servers 336s # choose to localize their reason strings. If the string 336s # isn't utf-8, we fall back to iso-8859-1 for all other 336s # encodings. (See PR #3538) 336s try: 336s reason = self.reason.decode("utf-8") 336s except UnicodeDecodeError: 336s reason = self.reason.decode("iso-8859-1") 336s else: 336s reason = self.reason 336s 336s if 400 <= self.status_code < 500: 336s http_error_msg = ( 336s f"{self.status_code} Client Error: {reason} for url: {self.url}" 336s ) 336s 336s elif 500 <= self.status_code < 600: 336s http_error_msg = ( 336s f"{self.status_code} Server Error: {reason} for url: {self.url}" 336s ) 336s 336s if http_error_msg: 336s > raise HTTPError(http_error_msg, response=self) 336s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/db4606c9-1387-4367-b44b-18da6b76aa2d 336s 336s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 336s ------------------------------ Captured log call ------------------------------- 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 336s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4l_08fy4/runtime/kernel-db4606c9-1387-4367-b44b-18da6b76aa2d.json'] 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59659 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59961 336s INFO NotebookApp:kernelmanager.py:179 Kernel started: db4606c9-1387-4367-b44b-18da6b76aa2d, name: python3 336s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 336s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 21.510000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/db4606c9-1387-4367-b44b-18da6b76aa2d (127.0.0.1) 1.450000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (127.0.0.1): Kernel does not exist: 111-111-111-111-111 336s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 336s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (127.0.0.1) 1.860000ms referer=None 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for db4606c9-1387-4367-b44b-18da6b76aa2d 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: db4606c9-1387-4367-b44b-18da6b76aa2d 336s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/db4606c9-1387-4367-b44b-18da6b76aa2d (127.0.0.1) 336s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/db4606c9-1387-4367-b44b-18da6b76aa2d', version='HTTP/1.1', remote_ip='127.0.0.1') 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 336s result = await result 336s ^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 336s yielded = ctx_run(next, result) 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 336s yield maybe_future(km.shutdown_kernel(kernel_id)) 336s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 336s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 336s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 336s return _runner_map[name].run(inner) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 336s return fut.result(None) 336s ~~~~~~~~~~^^^^^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 336s return self.__get_result() 336s ~~~~~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 336s raise self._exception 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 336s stopper = ensure_async(km.shutdown_kernel(now, restart)) 336s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 336s return _runner_map[name].run(inner) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 336s return fut.result(None) 336s ~~~~~~~~~~^^^^^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 336s return self.__get_result() 336s ~~~~~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 336s raise self._exception 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s WARNING NotebookApp:handlers.py:612 Unhandled error 336s ERROR NotebookApp:log.py:55 { 336s "Host": "localhost:12341", 336s "Accept": "*/*", 336s "User-Agent": "python-requests/2.32.5" 336s } 336s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/db4606c9-1387-4367-b44b-18da6b76aa2d (127.0.0.1) 10.850000ms referer=None 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.420000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7a345696-6713-4764-b48b-50a6880922af 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7a345696-6713-4764-b48b-50a6880922af 336s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/7a345696-6713-4764-b48b-50a6880922af (127.0.0.1) 2.580000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for db4606c9-1387-4367-b44b-18da6b76aa2d 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: db4606c9-1387-4367-b44b-18da6b76aa2d 336s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/db4606c9-1387-4367-b44b-18da6b76aa2d (127.0.0.1) 2.220000ms 336s --------------------------- Captured stderr teardown --------------------------- 336s Traceback (most recent call last): 336s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 336s return _run_code(code, main_globals, None, 336s "__main__", mod_spec) 336s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 336s exec(code, run_globals) 336s ~~~~^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 336s from pathlib import Path 336s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 336s from glob import _StringGlobber, _no_recurse_symlinks 336s File "/usr/lib/python3.14/glob.py", line 5, in 336s import re 336s File "/usr/lib/python3.14/re/__init__.py", line 381, in 336s import copyreg 336s File "", line 1371, in _find_and_load 336s File "", line 1342, in _find_and_load_unlocked 336s File "", line 938, in _load_unlocked 336s File "", line 755, in exec_module 336s File "", line 888, in get_code 336s File "", line 511, in _compile_bytecode 336s KeyboardInterrupt 336s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 336s 336s self = 336s 336s def test_main_kernel_handler(self): 336s # POST request 336s r = self.kern_api.start() 336s kern1 = r.json() 336s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 336s self.assertEqual(r.status_code, 201) 336s self.assertIsInstance(kern1, dict) 336s 336s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 336s expected_csp = '; '.join([ 336s "frame-ancestors 'self'", 336s 'report-uri ' + report_uri, 336s "default-src 'none'" 336s ]) 336s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 336s 336s # GET request 336s r = self.kern_api.list() 336s self.assertEqual(r.status_code, 200) 336s assert isinstance(r.json(), list) 336s self.assertEqual(r.json()[0]['id'], kern1['id']) 336s self.assertEqual(r.json()[0]['name'], kern1['name']) 336s 336s # create another kernel and check that they both are added to the 336s # list of kernels from a GET request 336s kern2 = self.kern_api.start().json() 336s assert isinstance(kern2, dict) 336s r = self.kern_api.list() 336s kernels = r.json() 336s self.assertEqual(r.status_code, 200) 336s assert isinstance(kernels, list) 336s self.assertEqual(len(kernels), 2) 336s 336s # Interrupt a kernel 336s r = self.kern_api.interrupt(kern2['id']) 336s self.assertEqual(r.status_code, 204) 336s 336s # Restart a kernel 336s > r = self.kern_api.restart(kern2['id']) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 336s return self._req('POST', url_path_join(id, 'restart')) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 336s response.raise_for_status() 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s 336s self = 336s 336s def raise_for_status(self): 336s """Raises :class:`HTTPError`, if one occurred.""" 336s 336s http_error_msg = "" 336s if isinstance(self.reason, bytes): 336s # We attempt to decode utf-8 first because some servers 336s # choose to localize their reason strings. If the string 336s # isn't utf-8, we fall back to iso-8859-1 for all other 336s # encodings. (See PR #3538) 336s try: 336s reason = self.reason.decode("utf-8") 336s except UnicodeDecodeError: 336s reason = self.reason.decode("iso-8859-1") 336s else: 336s reason = self.reason 336s 336s if 400 <= self.status_code < 500: 336s http_error_msg = ( 336s f"{self.status_code} Client Error: {reason} for url: {self.url}" 336s ) 336s 336s elif 500 <= self.status_code < 600: 336s http_error_msg = ( 336s f"{self.status_code} Server Error: {reason} for url: {self.url}" 336s ) 336s 336s if http_error_msg: 336s > raise HTTPError(http_error_msg, response=self) 336s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/f40d8ea2-f6ca-4a32-973a-b52afac759be/restart 336s 336s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 336s ----------------------------- Captured stderr call ----------------------------- 336s Traceback (most recent call last): 336s File "", line 1249, in _path_importer_cache 336s KeyError: '/usr/lib/python3.14/re' 336s 336s During handling of the above exception, another exception occurred: 336s 336s Traceback (most recent call last): 336s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 336s return _run_code(code, main_globals, None, 336s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 336s exec(code, run_globals) 336s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 336s from pathlib import Path 336s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 336s from glob import _StringGlobber, _no_recurse_symlinks 336s File "/usr/lib/python3.14/glob.py", line 5, in 336s import re 336s File "/usr/lib/python3.14/re/__init__.py", line 126, in 336s from . import _compiler, _parser 336s File "", line 1371, in _find_and_load 336s File "", line 1333, in _find_and_load_unlocked 336s File "", line 1267, in _find_spec 336s File "", line 1292, in find_spec 336s File "", line 1264, in _get_spec 336s File "", line 1251, in _path_importer_cache 336s File "", line 1227, in _path_hooks 336s File "", line 1451, in path_hook_for_FileFinder 336s File "", line 173, in _path_isdir 336s File "", line 158, in _path_is_mode_type 336s File "", line 152, in _path_stat 336s KeyboardInterrupt 336s ------------------------------ Captured log call ------------------------------- 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 336s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4l_08fy4/runtime/kernel-eca04532-ba31-48d6-94cf-e5da3aa8cbcd.json'] 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34599 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48641 336s INFO NotebookApp:kernelmanager.py:179 Kernel started: eca04532-ba31-48d6-94cf-e5da3aa8cbcd, name: python3 336s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 336s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 19.730000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.290000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 336s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4l_08fy4/runtime/kernel-f40d8ea2-f6ca-4a32-973a-b52afac759be.json'] 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:4316/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 336s gc.collect() 336s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 336s 7 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42843 336s INFO NotebookApp:kernelmanager.py:179 Kernel started: f40d8ea2-f6ca-4a32-973a-b52afac759be, name: python3 336s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 336s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 21.340000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.470000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: f40d8ea2-f6ca-4a32-973a-b52afac759be 336s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/f40d8ea2-f6ca-4a32-973a-b52afac759be/interrupt (127.0.0.1) 2.250000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 336s yield maybe_future(km.restart_kernel(kernel_id)) 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 336s value = future.result() 336s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 336s raise self._exception.with_traceback(self._exception_tb) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 336s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 336s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 336s return _runner_map[name].run(inner) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 336s return fut.result(None) 336s ~~~~~~~~~~^^^^^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 336s return self.__get_result() 336s ~~~~~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 336s raise self._exception 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 336s await ensure_async(kernel.restart_kernel(now=now)) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 336s return _runner_map[name].run(inner) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 336s return fut.result(None) 336s ~~~~~~~~~~^^^^^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 336s return self.__get_result() 336s ~~~~~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 336s raise self._exception 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 336s await self._async_shutdown_kernel(now=now, restart=True) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:log.py:55 { 336s "Host": "localhost:12341", 336s "Accept": "*/*", 336s "User-Agent": "python-requests/2.32.5" 336s } 336s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/f40d8ea2-f6ca-4a32-973a-b52afac759be/restart (127.0.0.1) 7.760000ms referer=None 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.570000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eca04532-ba31-48d6-94cf-e5da3aa8cbcd 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eca04532-ba31-48d6-94cf-e5da3aa8cbcd 336s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/eca04532-ba31-48d6-94cf-e5da3aa8cbcd (127.0.0.1) 336s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/eca04532-ba31-48d6-94cf-e5da3aa8cbcd', version='HTTP/1.1', remote_ip='127.0.0.1') 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 336s result = await result 336s ^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 336s yielded = ctx_run(next, result) 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 336s yield maybe_future(km.shutdown_kernel(kernel_id)) 336s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 336s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 336s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 336s return _runner_map[name].run(inner) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 336s return fut.result(None) 336s ~~~~~~~~~~^^^^^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 336s return self.__get_result() 336s ~~~~~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 336s raise self._exception 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 336s stopper = ensure_async(km.shutdown_kernel(now, restart)) 336s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 336s return _runner_map[name].run(inner) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 336s return fut.result(None) 336s ~~~~~~~~~~^^^^^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 336s return self.__get_result() 336s ~~~~~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 336s raise self._exception 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s WARNING NotebookApp:handlers.py:612 Unhandled error 336s ERROR NotebookApp:log.py:55 { 336s "Host": "localhost:12341", 336s "Accept": "*/*", 336s "User-Agent": "python-requests/2.32.5" 336s } 336s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/eca04532-ba31-48d6-94cf-e5da3aa8cbcd (127.0.0.1) 10.190000ms referer=None 336s ________________________ KernelAPITest.test_no_kernels _________________________ 336s 336s self = 336s 336s def test_no_kernels(self): 336s """Make sure there are no kernels running at the start""" 336s kernels = self.kern_api.list().json() 336s > self.assertEqual(kernels, []) 336s E AssertionError: Lists differ: [{'id': 'eca04532-ba31-48d6-94cf-e5da3aa8c[281 chars]: 0}] != [] 336s E 336s E First list contains 2 additional elements. 336s E First extra element 0: 336s E {'id': 'eca04532-ba31-48d6-94cf-e5da3aa8cbcd', 'name': 'python3', 'last_activity': '2026-01-22T18:28:53.216111Z', 'execution_state': 'starting', 'connections': 0} 336s E 336s E + [] 336s E - [{'connections': 0, 336s E - 'execution_state': 'starting', 336s E - 'id': 'eca04532-ba31-48d6-94cf-e5da3aa8cbcd', 336s E - 'last_activity': '2026-01-22T18:28:53.216111Z', 336s E - 'name': 'python3'}, 336s E - {'connections': 0, 336s E - 'execution_state': 'starting', 336s E - 'id': 'f40d8ea2-f6ca-4a32-973a-b52afac759be', 336s E - 'last_activity': '2026-01-22T18:28:53.245080Z', 336s E - 'name': 'python3'}] 336s 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 336s ------------------------------ Captured log call ------------------------------- 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.450000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.460000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eca04532-ba31-48d6-94cf-e5da3aa8cbcd 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eca04532-ba31-48d6-94cf-e5da3aa8cbcd 336s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/eca04532-ba31-48d6-94cf-e5da3aa8cbcd (127.0.0.1) 2.270000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f40d8ea2-f6ca-4a32-973a-b52afac759be 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f40d8ea2-f6ca-4a32-973a-b52afac759be 336s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/f40d8ea2-f6ca-4a32-973a-b52afac759be (127.0.0.1) 2.390000ms 336s ---------------------------- Captured log teardown ----------------------------- 336s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 336s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 336s _____________________ AsyncKernelAPITest.test_connections ______________________ 336s 336s self = 336s 336s def tearDown(self): 336s for k in self.kern_api.list().json(): 336s > self.kern_api.shutdown(k['id']) 336s 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 336s return self._req('DELETE', id) 336s ^^^^^^^^^^^^^^^^^^^^^^^ 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 336s response.raise_for_status() 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s 336s self = 336s 336s def raise_for_status(self): 336s """Raises :class:`HTTPError`, if one occurred.""" 336s 336s http_error_msg = "" 336s if isinstance(self.reason, bytes): 336s # We attempt to decode utf-8 first because some servers 336s # choose to localize their reason strings. If the string 336s # isn't utf-8, we fall back to iso-8859-1 for all other 336s # encodings. (See PR #3538) 336s try: 336s reason = self.reason.decode("utf-8") 336s except UnicodeDecodeError: 336s reason = self.reason.decode("iso-8859-1") 336s else: 336s reason = self.reason 336s 336s if 400 <= self.status_code < 500: 336s http_error_msg = ( 336s f"{self.status_code} Client Error: {reason} for url: {self.url}" 336s ) 336s 336s elif 500 <= self.status_code < 600: 336s http_error_msg = ( 336s f"{self.status_code} Server Error: {reason} for url: {self.url}" 336s ) 336s 336s if http_error_msg: 336s > raise HTTPError(http_error_msg, response=self) 336s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a 336s 336s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 336s ------------------------------ Captured log setup ------------------------------ 336s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmppqlr151x/config', '/tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmppqlr151x/etc/jupyter'] for config files 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmppqlr151x/etc/jupyter 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmppqlr151x/config 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmppqlr151x/etc/jupyter 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmppqlr151x/config 336s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmppqlr151x/notebooks 336s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 336s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 336s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 336s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 336s WARNING NotebookApp:handlers.py:612 Forbidden 336s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (127.0.0.1) 1.150000ms referer=None 336s ------------------------------ Captured log call ------------------------------- 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 336s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppqlr151x/runtime/kernel-f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a.json'] 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57231 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36293 336s INFO NotebookApp:kernelmanager.py:179 Kernel started: f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a, name: python3 336s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 336s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 19.490000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a (127.0.0.1) 1.380000ms 336s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a/channels 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 336s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42049 336s DEBUG NotebookApp:handlers.py:306 Received kernel info: {'status': 'ok', 'protocol_version': '5.3', 'implementation': 'ipython', 'implementation_version': '8.35.0', 'language_info': {'name': 'python', 'version': '3.14.2', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.14.2 (main, Dec 6 2025, 13:20:08) [GCC 15.2.0]\nType 'copyright', 'credits' or 'license' for more information\nIPython 8.35.0 -- An enhanced Interactive Python. Type '?' for help.\n", 'help_links': [{'text': 'Python Reference', 'url': 'https://docs.python.org/3.14'}, {'text': 'IPython Reference', 'url': 'https://ipython.org/documentation.html'}, {'text': 'NumPy Reference', 'url': 'https://docs.scipy.org/doc/numpy/reference/'}, {'text': 'SciPy Reference', 'url': 'https://docs.scipy.org/doc/scipy/reference/'}, {'text': 'Matplotlib Reference', 'url': 'https://matplotlib.org/contents.html'}, {'text': 'SymPy Reference', 'url': 'http://docs.sympy.org/latest/index.html'}, {'text': 'pandas Reference', 'url': 'https://pandas.pydata.org/pandas-docs/stable/'}]} 336s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a) to 5.4 (client). 336s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a/channels (127.0.0.1) 879.740000ms 336s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a/channels 336s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36293 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42049 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57231 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55459 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42049 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57231 336s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 336s Setting websocket_ping_timeout=30000 336s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a 336s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a 336s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a 336s DEBUG NotebookApp:kernelmanager.py:423 activity on f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a: status (busy) 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a (127.0.0.1) 1.350000ms 336s DEBUG NotebookApp:kernelmanager.py:423 activity on f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a: status (busy) 336s DEBUG NotebookApp:kernelmanager.py:423 activity on f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a: status (idle) 336s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a 336s DEBUG NotebookApp:handlers.py:197 Nudge: resolving shell future: f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a 336s DEBUG NotebookApp:kernelmanager.py:423 activity on f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a: status (idle) 336s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a 336s DEBUG NotebookApp:handlers.py:579 Websocket closed f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a:740cc0d4-10a5716af9700ce55281fbf0 336s INFO NotebookApp:kernelmanager.py:222 Starting buffering for f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a:740cc0d4-10a5716af9700ce55281fbf0 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a 336s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a:iopub 336s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a:iopub 336s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a:iopub 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a (127.0.0.1) 1.330000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a (127.0.0.1) 1.360000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.300000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a 336s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a:740cc0d4-10a5716af9700ce55281fbf0 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a 336s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 336s await kernel_awaitable 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 336s result = await obj 336s ^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a (127.0.0.1) 336s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a', version='HTTP/1.1', remote_ip='127.0.0.1') 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 336s result = await result 336s ^^^^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 336s future.result() 336s ~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 336s yielded = self.gen.throw(exc) 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 336s yield maybe_future(km.shutdown_kernel(kernel_id)) 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 336s value = future.result() 336s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 336s raise self._exception.with_traceback(self._exception_tb) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 336s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 336s raise km.ready.exception() # type: ignore[misc] 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 336s await kernel_awaitable 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 336s result = await obj 336s ^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s WARNING NotebookApp:handlers.py:612 Unhandled error 336s ERROR NotebookApp:log.py:55 { 336s "Host": "localhost:12341", 336s "Accept": "*/*", 336s "User-Agent": "python-requests/2.32.5" 336s } 336s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a (127.0.0.1) 9.040000ms referer=None 336s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 336s 336s self = 336s 336s def tearDown(self): 336s for k in self.kern_api.list().json(): 336s > self.kern_api.shutdown(k['id']) 336s 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 336s return self._req('DELETE', id) 336s ^^^^^^^^^^^^^^^^^^^^^^^ 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 336s response.raise_for_status() 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s 336s self = 336s 336s def raise_for_status(self): 336s """Raises :class:`HTTPError`, if one occurred.""" 336s 336s http_error_msg = "" 336s if isinstance(self.reason, bytes): 336s # We attempt to decode utf-8 first because some servers 336s # choose to localize their reason strings. If the string 336s # isn't utf-8, we fall back to iso-8859-1 for all other 336s # encodings. (See PR #3538) 336s try: 336s reason = self.reason.decode("utf-8") 336s except UnicodeDecodeError: 336s reason = self.reason.decode("iso-8859-1") 336s else: 336s reason = self.reason 336s 336s if 400 <= self.status_code < 500: 336s http_error_msg = ( 336s f"{self.status_code} Client Error: {reason} for url: {self.url}" 336s ) 336s 336s elif 500 <= self.status_code < 600: 336s http_error_msg = ( 336s f"{self.status_code} Server Error: {reason} for url: {self.url}" 336s ) 336s 336s if http_error_msg: 336s > raise HTTPError(http_error_msg, response=self) 336s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/952b0559-8763-42a9-a5ec-713e67e6a1ea 336s 336s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 336s ------------------------------ Captured log call ------------------------------- 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 336s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppqlr151x/runtime/kernel-952b0559-8763-42a9-a5ec-713e67e6a1ea.json'] 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42761 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48379 336s INFO NotebookApp:kernelmanager.py:179 Kernel started: 952b0559-8763-42a9-a5ec-713e67e6a1ea, name: python3 336s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 336s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.490000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.380000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a 336s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a (127.0.0.1) 1.600000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 952b0559-8763-42a9-a5ec-713e67e6a1ea 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 952b0559-8763-42a9-a5ec-713e67e6a1ea 336s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 336s await kernel_awaitable 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 336s result = await obj 336s ^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/952b0559-8763-42a9-a5ec-713e67e6a1ea (127.0.0.1) 336s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/952b0559-8763-42a9-a5ec-713e67e6a1ea', version='HTTP/1.1', remote_ip='127.0.0.1') 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 336s result = await result 336s ^^^^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 336s future.result() 336s ~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 336s yielded = self.gen.throw(exc) 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 336s yield maybe_future(km.shutdown_kernel(kernel_id)) 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 336s value = future.result() 336s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 336s raise self._exception.with_traceback(self._exception_tb) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 336s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 336s raise km.ready.exception() # type: ignore[misc] 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 336s await kernel_awaitable 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 336s result = await obj 336s ^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s WARNING NotebookApp:handlers.py:612 Unhandled error 336s ERROR NotebookApp:log.py:55 { 336s "Host": "localhost:12341", 336s "Accept": "*/*", 336s "User-Agent": "python-requests/2.32.5" 336s } 336s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/952b0559-8763-42a9-a5ec-713e67e6a1ea (127.0.0.1) 8.650000ms referer=None 336s --------------------------- Captured stderr teardown --------------------------- 336s Traceback (most recent call last): 336s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 336s return _run_code(code, main_globals, None, 336s "__main__", mod_spec) 336s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 336s exec(code, run_globals) 336s ~~~~^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 336s from pathlib import Path 336s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 336s from glob import _StringGlobber, _no_recurse_symlinks 336s File "/usr/lib/python3.14/glob.py", line 5, in 336s import re 336s File "/usr/lib/python3.14/re/__init__.py", line 126, in 336s from . import _compiler, _parser 336s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 336s from . import _parser 336s File "", line 1401, in _handle_fromlist 336s KeyboardInterrupt 336s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 336s 336s self = 336s 336s def test_kernel_handler(self): 336s # GET kernel with given id 336s kid = self.kern_api.start().json()['id'] 336s r = self.kern_api.get(kid) 336s kern1 = r.json() 336s self.assertEqual(r.status_code, 200) 336s assert isinstance(kern1, dict) 336s self.assertIn('id', kern1) 336s self.assertEqual(kern1['id'], kid) 336s 336s # Request a bad kernel id and check that a JSON 336s # message is returned! 336s bad_id = '111-111-111-111-111' 336s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 336s self.kern_api.get(bad_id) 336s 336s # DELETE kernel with id 336s > r = self.kern_api.shutdown(kid) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 336s return self._req('DELETE', id) 336s ^^^^^^^^^^^^^^^^^^^^^^^ 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 336s response.raise_for_status() 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s 336s self = 336s 336s def raise_for_status(self): 336s """Raises :class:`HTTPError`, if one occurred.""" 336s 336s http_error_msg = "" 336s if isinstance(self.reason, bytes): 336s # We attempt to decode utf-8 first because some servers 336s # choose to localize their reason strings. If the string 336s # isn't utf-8, we fall back to iso-8859-1 for all other 336s # encodings. (See PR #3538) 336s try: 336s reason = self.reason.decode("utf-8") 336s except UnicodeDecodeError: 336s reason = self.reason.decode("iso-8859-1") 336s else: 336s reason = self.reason 336s 336s if 400 <= self.status_code < 500: 336s http_error_msg = ( 336s f"{self.status_code} Client Error: {reason} for url: {self.url}" 336s ) 336s 336s elif 500 <= self.status_code < 600: 336s http_error_msg = ( 336s f"{self.status_code} Server Error: {reason} for url: {self.url}" 336s ) 336s 336s if http_error_msg: 336s > raise HTTPError(http_error_msg, response=self) 336s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/45a3b696-4d3a-4374-9a32-5c5b77a6cf21 336s 336s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 336s ------------------------------ Captured log call ------------------------------- 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 336s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppqlr151x/runtime/kernel-45a3b696-4d3a-4374-9a32-5c5b77a6cf21.json'] 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35563 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39267 336s INFO NotebookApp:kernelmanager.py:179 Kernel started: 45a3b696-4d3a-4374-9a32-5c5b77a6cf21, name: python3 336s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 336s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.290000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/45a3b696-4d3a-4374-9a32-5c5b77a6cf21 (127.0.0.1) 1.390000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (127.0.0.1): Kernel does not exist: 111-111-111-111-111 336s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 336s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (127.0.0.1) 1.530000ms referer=None 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 45a3b696-4d3a-4374-9a32-5c5b77a6cf21 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 45a3b696-4d3a-4374-9a32-5c5b77a6cf21 336s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 336s await kernel_awaitable 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 336s result = await obj 336s ^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/45a3b696-4d3a-4374-9a32-5c5b77a6cf21 (127.0.0.1) 336s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/45a3b696-4d3a-4374-9a32-5c5b77a6cf21', version='HTTP/1.1', remote_ip='127.0.0.1') 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 336s result = await result 336s ^^^^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 336s future.result() 336s ~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 336s yielded = self.gen.throw(exc) 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 336s yield maybe_future(km.shutdown_kernel(kernel_id)) 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 336s value = future.result() 336s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 336s raise self._exception.with_traceback(self._exception_tb) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 336s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 336s raise km.ready.exception() # type: ignore[misc] 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 336s await kernel_awaitable 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 336s result = await obj 336s ^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s WARNING NotebookApp:handlers.py:612 Unhandled error 336s ERROR NotebookApp:log.py:55 { 336s "Host": "localhost:12341", 336s "Accept": "*/*", 336s "User-Agent": "python-requests/2.32.5" 336s } 336s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/45a3b696-4d3a-4374-9a32-5c5b77a6cf21 (127.0.0.1) 8.490000ms referer=None 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.390000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 952b0559-8763-42a9-a5ec-713e67e6a1ea 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 952b0559-8763-42a9-a5ec-713e67e6a1ea 336s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/952b0559-8763-42a9-a5ec-713e67e6a1ea (127.0.0.1) 1.520000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 45a3b696-4d3a-4374-9a32-5c5b77a6cf21 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 45a3b696-4d3a-4374-9a32-5c5b77a6cf21 336s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/45a3b696-4d3a-4374-9a32-5c5b77a6cf21 (127.0.0.1) 1.390000ms 336s --------------------------- Captured stderr teardown --------------------------- 336s Traceback (most recent call last): 336s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 336s return _run_code(code, main_globals, None, 336s "__main__", mod_spec) 336s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 336s exec(code, run_globals) 336s ~~~~^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 336s from pathlib import Path 336s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 336s from glob import _StringGlobber, _no_recurse_symlinks 336s File "/usr/lib/python3.14/glob.py", line 3, in 336s import contextlib 336s File "/usr/lib/python3.14/contextlib.py", line 393, in 336s class _RedirectStream(AbstractContextManager): 336s ...<14 lines>... 336s setattr(sys, self._stream, self._old_targets.pop()) 336s File "/usr/lib/python3.14/abc.py", line 105, in __new__ 336s def __new__(mcls, name, bases, namespace, /, **kwargs): 336s 336s KeyboardInterrupt 336s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 336s 336s self = 336s 336s def test_main_kernel_handler(self): 336s # POST request 336s r = self.kern_api.start() 336s kern1 = r.json() 336s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 336s self.assertEqual(r.status_code, 201) 336s self.assertIsInstance(kern1, dict) 336s 336s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 336s expected_csp = '; '.join([ 336s "frame-ancestors 'self'", 336s 'report-uri ' + report_uri, 336s "default-src 'none'" 336s ]) 336s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 336s 336s # GET request 336s r = self.kern_api.list() 336s self.assertEqual(r.status_code, 200) 336s assert isinstance(r.json(), list) 336s self.assertEqual(r.json()[0]['id'], kern1['id']) 336s self.assertEqual(r.json()[0]['name'], kern1['name']) 336s 336s # create another kernel and check that they both are added to the 336s # list of kernels from a GET request 336s kern2 = self.kern_api.start().json() 336s assert isinstance(kern2, dict) 336s r = self.kern_api.list() 336s kernels = r.json() 336s self.assertEqual(r.status_code, 200) 336s assert isinstance(kernels, list) 336s self.assertEqual(len(kernels), 2) 336s 336s # Interrupt a kernel 336s r = self.kern_api.interrupt(kern2['id']) 336s self.assertEqual(r.status_code, 204) 336s 336s # Restart a kernel 336s > r = self.kern_api.restart(kern2['id']) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 336s return self._req('POST', url_path_join(id, 'restart')) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 336s response.raise_for_status() 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s 336s self = 336s 336s def raise_for_status(self): 336s """Raises :class:`HTTPError`, if one occurred.""" 336s 336s http_error_msg = "" 336s if isinstance(self.reason, bytes): 336s # We attempt to decode utf-8 first because some servers 336s # choose to localize their reason strings. If the string 336s # isn't utf-8, we fall back to iso-8859-1 for all other 336s # encodings. (See PR #3538) 336s try: 336s reason = self.reason.decode("utf-8") 336s except UnicodeDecodeError: 336s reason = self.reason.decode("iso-8859-1") 336s else: 336s reason = self.reason 336s 336s if 400 <= self.status_code < 500: 336s http_error_msg = ( 336s f"{self.status_code} Client Error: {reason} for url: {self.url}" 336s ) 336s 336s elif 500 <= self.status_code < 600: 336s http_error_msg = ( 336s f"{self.status_code} Server Error: {reason} for url: {self.url}" 336s ) 336s 336s if http_error_msg: 336s > raise HTTPError(http_error_msg, response=self) 336s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/bbe086b5-4209-4342-933c-034331943be7/restart 336s 336s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 336s ----------------------------- Captured stderr call ----------------------------- 336s Traceback (most recent call last): 336s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 336s return _run_code(code, main_globals, None, 336s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 336s exec(code, run_globals) 336s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 336s from pathlib import Path 336s File "/usr/lib/python3.14/pathlib/__init__.py", line 9, in 336s import operator 336s File "", line 1368, in _find_and_load 336s File "", line 421, in __enter__ 336s File "", line 316, in acquire 336s KeyboardInterrupt 336s ------------------------------ Captured log call ------------------------------- 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 336s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppqlr151x/runtime/kernel-a6e1ff1e-e781-48aa-9ffa-0d321af1d9e8.json'] 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34565 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39475 336s INFO NotebookApp:kernelmanager.py:179 Kernel started: a6e1ff1e-e781-48aa-9ffa-0d321af1d9e8, name: python3 336s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 336s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.110000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.310000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 336s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppqlr151x/runtime/kernel-bbe086b5-4209-4342-933c-034331943be7.json'] 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43153 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34043 336s INFO NotebookApp:kernelmanager.py:179 Kernel started: bbe086b5-4209-4342-933c-034331943be7, name: python3 336s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 336s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.100000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.370000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: bbe086b5-4209-4342-933c-034331943be7 336s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/bbe086b5-4209-4342-933c-034331943be7/interrupt (127.0.0.1) 1.530000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 336s yield maybe_future(km.restart_kernel(kernel_id)) 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 336s value = future.result() 336s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 336s raise self._exception.with_traceback(self._exception_tb) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 336s result = coro.throw(exc) 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 336s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 336s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 336s yield self # This tells Task to wait for completion. 336s ^^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 336s future.result() 336s ~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 336s raise self._exception.with_traceback(self._exception_tb) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 336s await ensure_async(kernel.restart_kernel(now=now)) 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 336s result = await obj 336s ^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 336s await self._async_shutdown_kernel(now=now, restart=True) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:log.py:55 { 336s "Host": "localhost:12341", 336s "Accept": "*/*", 336s "User-Agent": "python-requests/2.32.5" 336s } 336s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/bbe086b5-4209-4342-933c-034331943be7/restart (127.0.0.1) 4.960000ms referer=None 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.290000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a6e1ff1e-e781-48aa-9ffa-0d321af1d9e8 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a6e1ff1e-e781-48aa-9ffa-0d321af1d9e8 336s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 336s await kernel_awaitable 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 336s result = await obj 336s ^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/a6e1ff1e-e781-48aa-9ffa-0d321af1d9e8 (127.0.0.1) 336s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/a6e1ff1e-e781-48aa-9ffa-0d321af1d9e8', version='HTTP/1.1', remote_ip='127.0.0.1') 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 336s result = await result 336s ^^^^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 336s future.result() 336s ~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 336s yielded = self.gen.throw(exc) 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 336s yield maybe_future(km.shutdown_kernel(kernel_id)) 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 336s value = future.result() 336s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 336s raise self._exception.with_traceback(self._exception_tb) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 336s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 336s raise km.ready.exception() # type: ignore[misc] 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 336s await kernel_awaitable 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 336s result = await obj 336s ^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s WARNING NotebookApp:handlers.py:612 Unhandled error 336s ERROR NotebookApp:log.py:55 { 336s "Host": "localhost:12341", 336s "Accept": "*/*", 336s "User-Agent": "python-requests/2.32.5" 336s } 336s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/a6e1ff1e-e781-48aa-9ffa-0d321af1d9e8 (127.0.0.1) 8.360000ms referer=None 336s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 336s 336s self = 336s 336s def test_no_kernels(self): 336s """Make sure there are no kernels running at the start""" 336s kernels = self.kern_api.list().json() 336s > self.assertEqual(kernels, []) 336s E AssertionError: Lists differ: [{'id': 'a6e1ff1e-e781-48aa-9ffa-0d321af1d[281 chars]: 0}] != [] 336s E 336s E First list contains 2 additional elements. 336s E First extra element 0: 336s E {'id': 'a6e1ff1e-e781-48aa-9ffa-0d321af1d9e8', 'name': 'python3', 'last_activity': '2026-01-22T18:28:54.639085Z', 'execution_state': 'starting', 'connections': 0} 336s E 336s E + [] 336s E - [{'connections': 0, 336s E - 'execution_state': 'starting', 336s E - 'id': 'a6e1ff1e-e781-48aa-9ffa-0d321af1d9e8', 336s E - 'last_activity': '2026-01-22T18:28:54.639085Z', 336s E - 'name': 'python3'}, 336s E - {'connections': 0, 336s E - 'execution_state': 'starting', 336s E - 'id': 'bbe086b5-4209-4342-933c-034331943be7', 336s E - 'last_activity': '2026-01-22T18:28:54.665651Z', 336s E - 'name': 'python3'}] 336s 336s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 336s ------------------------------ Captured log call ------------------------------- 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.360000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.290000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a6e1ff1e-e781-48aa-9ffa-0d321af1d9e8 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a6e1ff1e-e781-48aa-9ffa-0d321af1d9e8 336s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/a6e1ff1e-e781-48aa-9ffa-0d321af1d9e8 (127.0.0.1) 1.510000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bbe086b5-4209-4342-933c-034331943be7 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bbe086b5-4209-4342-933c-034331943be7 336s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/bbe086b5-4209-4342-933c-034331943be7 (127.0.0.1) 1.650000ms 336s ---------------------------- Captured log teardown ----------------------------- 336s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a6e1ff1e-e781-48aa-9ffa-0d321af1d9e8 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 952b0559-8763-42a9-a5ec-713e67e6a1ea 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 45a3b696-4d3a-4374-9a32-5c5b77a6cf21 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f6f6eab2-c59c-4fef-b4c1-1e85b0efdc7a 336s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 336s __________________________ SessionAPITest.test_create __________________________ 336s 336s @self.addCleanup 336s def cleanup_sessions(): 336s for session in self.sess_api.list().json(): 336s > self.sess_api.delete(session['id']) 336s 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 336s return self._req('DELETE', id) 336s ^^^^^^^^^^^^^^^^^^^^^^^ 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 336s response.raise_for_status() 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s 336s self = 336s 336s def raise_for_status(self): 336s """Raises :class:`HTTPError`, if one occurred.""" 336s 336s http_error_msg = "" 336s if isinstance(self.reason, bytes): 336s # We attempt to decode utf-8 first because some servers 336s # choose to localize their reason strings. If the string 336s # isn't utf-8, we fall back to iso-8859-1 for all other 336s # encodings. (See PR #3538) 336s try: 336s reason = self.reason.decode("utf-8") 336s except UnicodeDecodeError: 336s reason = self.reason.decode("iso-8859-1") 336s else: 336s reason = self.reason 336s 336s if 400 <= self.status_code < 500: 336s http_error_msg = ( 336s f"{self.status_code} Client Error: {reason} for url: {self.url}" 336s ) 336s 336s elif 500 <= self.status_code < 600: 336s http_error_msg = ( 336s f"{self.status_code} Server Error: {reason} for url: {self.url}" 336s ) 336s 336s if http_error_msg: 336s > raise HTTPError(http_error_msg, response=self) 336s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d3330bc6-47f0-4f65-9399-3b6edd44fede 336s 336s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 336s ------------------------------ Captured log setup ------------------------------ 336s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp2ubp_jse/config', '/tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp2ubp_jse/etc/jupyter'] for config files 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp2ubp_jse/etc/jupyter 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp2ubp_jse/config 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp2ubp_jse/etc/jupyter 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp2ubp_jse/config 336s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp2ubp_jse/notebooks 336s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 336s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 336s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 336s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 336s WARNING NotebookApp:handlers.py:612 Forbidden 336s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (127.0.0.1) 2.030000ms referer=None 336s ------------------------------ Captured log call ------------------------------- 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.980000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 336s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2ubp_jse/runtime/kernel-8b62e580-13b4-47ff-8cc8-fae9e6f4448b.json'] 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44985 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58649 336s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8b62e580-13b4-47ff-8cc8-fae9e6f4448b, name: python3 336s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp2ubp_jse/notebooks/foo'} 336s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 25.640000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.580000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/d3330bc6-47f0-4f65-9399-3b6edd44fede (127.0.0.1) 1.660000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.580000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8b62e580-13b4-47ff-8cc8-fae9e6f4448b 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8b62e580-13b4-47ff-8cc8-fae9e6f4448b 336s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d3330bc6-47f0-4f65-9399-3b6edd44fede (127.0.0.1) 336s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d3330bc6-47f0-4f65-9399-3b6edd44fede', version='HTTP/1.1', remote_ip='127.0.0.1') 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 336s result = await result 336s ^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 336s yielded = self.gen.throw(exc) 336s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 336s yield maybe_future(sm.delete_session(session_id)) 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 336s value = future.result() 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 336s yielded = self.gen.send(value) 336s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 336s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 336s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 336s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 336s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 336s return _runner_map[name].run(inner) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 336s return fut.result(None) 336s ~~~~~~~~~~^^^^^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 336s return self.__get_result() 336s ~~~~~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 336s raise self._exception 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 336s stopper = ensure_async(km.shutdown_kernel(now, restart)) 336s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 336s return _runner_map[name].run(inner) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 336s return fut.result(None) 336s ~~~~~~~~~~^^^^^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 336s return self.__get_result() 336s ~~~~~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 336s raise self._exception 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s WARNING NotebookApp:handlers.py:612 Unhandled error 336s ERROR NotebookApp:log.py:55 { 336s "Host": "localhost:12341", 336s "Accept": "*/*", 336s "User-Agent": "python-requests/2.32.5" 336s } 336s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/d3330bc6-47f0-4f65-9399-3b6edd44fede (127.0.0.1) 11.960000ms referer=None 336s --------------------------- Captured stderr teardown --------------------------- 336s Traceback (most recent call last): 336s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 336s return _run_code(code, main_globals, None, 336s "__main__", mod_spec) 336s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 336s exec(code, run_globals) 336s ~~~~^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 336s from ipykernel import kernelapp as app 336s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 336s from .connect import * # noqa: F403 336s ^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 336s from subprocess import PIPE, Popen 336s File "", line 1371, in _find_and_load 336s File "", line 1342, in _find_and_load_unlocked 336s File "", line 938, in _load_unlocked 336s File "", line 755, in exec_module 336s File "", line 888, in get_code 336s File "", line 511, in _compile_bytecode 336s KeyboardInterrupt 336s __________________ SessionAPITest.test_create_console_session __________________ 336s 336s @self.addCleanup 336s def cleanup_sessions(): 336s for session in self.sess_api.list().json(): 336s > self.sess_api.delete(session['id']) 336s 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 336s return self._req('DELETE', id) 336s ^^^^^^^^^^^^^^^^^^^^^^^ 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 336s response.raise_for_status() 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s 336s self = 336s 336s def raise_for_status(self): 336s """Raises :class:`HTTPError`, if one occurred.""" 336s 336s http_error_msg = "" 336s if isinstance(self.reason, bytes): 336s # We attempt to decode utf-8 first because some servers 336s # choose to localize their reason strings. If the string 336s # isn't utf-8, we fall back to iso-8859-1 for all other 336s # encodings. (See PR #3538) 336s try: 336s reason = self.reason.decode("utf-8") 336s except UnicodeDecodeError: 336s reason = self.reason.decode("iso-8859-1") 336s else: 336s reason = self.reason 336s 336s if 400 <= self.status_code < 500: 336s http_error_msg = ( 336s f"{self.status_code} Client Error: {reason} for url: {self.url}" 336s ) 336s 336s elif 500 <= self.status_code < 600: 336s http_error_msg = ( 336s f"{self.status_code} Server Error: {reason} for url: {self.url}" 336s ) 336s 336s if http_error_msg: 336s > raise HTTPError(http_error_msg, response=self) 336s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b3747d96-343d-4a2b-aa89-4949c0c30154 336s 336s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 336s ------------------------------ Captured log call ------------------------------- 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 336s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2ubp_jse/runtime/kernel-91024ea5-eb53-4848-b4d2-24c30fbeb708.json'] 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45267 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43073 336s INFO NotebookApp:kernelmanager.py:179 Kernel started: 91024ea5-eb53-4848-b4d2-24c30fbeb708, name: python3 336s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp2ubp_jse/notebooks/foo'} 336s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 21.630000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.680000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8b62e580-13b4-47ff-8cc8-fae9e6f4448b 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8b62e580-13b4-47ff-8cc8-fae9e6f4448b 336s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d3330bc6-47f0-4f65-9399-3b6edd44fede (127.0.0.1) 2.830000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 91024ea5-eb53-4848-b4d2-24c30fbeb708 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 91024ea5-eb53-4848-b4d2-24c30fbeb708 336s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b3747d96-343d-4a2b-aa89-4949c0c30154 (127.0.0.1) 336s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b3747d96-343d-4a2b-aa89-4949c0c30154', version='HTTP/1.1', remote_ip='127.0.0.1') 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 336s result = await result 336s ^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 336s yielded = self.gen.throw(exc) 336s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 336s yield maybe_future(sm.delete_session(session_id)) 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 336s value = future.result() 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 336s yielded = self.gen.send(value) 336s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 336s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 336s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 336s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 336s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 336s return _runner_map[name].run(inner) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 336s return fut.result(None) 336s ~~~~~~~~~~^^^^^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 336s return self.__get_result() 336s ~~~~~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 336s raise self._exception 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 336s stopper = ensure_async(km.shutdown_kernel(now, restart)) 336s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 336s return _runner_map[name].run(inner) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 336s return fut.result(None) 336s ~~~~~~~~~~^^^^^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 336s return self.__get_result() 336s ~~~~~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 336s raise self._exception 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s WARNING NotebookApp:handlers.py:612 Unhandled error 336s ERROR NotebookApp:log.py:55 { 336s "Host": "localhost:12341", 336s "Accept": "*/*", 336s "User-Agent": "python-requests/2.32.5" 336s } 336s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b3747d96-343d-4a2b-aa89-4949c0c30154 (127.0.0.1) 14.490000ms referer=None 336s --------------------------- Captured stderr teardown --------------------------- 336s Traceback (most recent call last): 336s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 336s return _run_code(code, main_globals, None, 336s "__main__", mod_spec) 336s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 336s exec(code, run_globals) 336s ~~~~^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 336s from ipykernel import kernelapp as app 336s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 336s from .connect import * # noqa: F403 336s ^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 336s import json 336s File "/usr/lib/python3.14/json/__init__.py", line 106, in 336s from .decoder import JSONDecoder, JSONDecodeError 336s File "/usr/lib/python3.14/json/decoder.py", line 5, in 336s from json import scanner 336s File "", line 1371, in _find_and_load 336s File "", line 1342, in _find_and_load_unlocked 336s File "", line 938, in _load_unlocked 336s File "", line 755, in exec_module 336s File "", line 840, in get_code 336s File "", line 265, in cache_from_source 336s File "", line 139, in _path_split 336s File "", line 139, in 336s KeyboardInterrupt 336s ____________________ SessionAPITest.test_create_deprecated _____________________ 336s 336s @self.addCleanup 336s def cleanup_sessions(): 336s for session in self.sess_api.list().json(): 336s > self.sess_api.delete(session['id']) 336s 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 336s return self._req('DELETE', id) 336s ^^^^^^^^^^^^^^^^^^^^^^^ 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 336s response.raise_for_status() 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s 336s self = 336s 336s def raise_for_status(self): 336s """Raises :class:`HTTPError`, if one occurred.""" 336s 336s http_error_msg = "" 336s if isinstance(self.reason, bytes): 336s # We attempt to decode utf-8 first because some servers 336s # choose to localize their reason strings. If the string 336s # isn't utf-8, we fall back to iso-8859-1 for all other 336s # encodings. (See PR #3538) 336s try: 336s reason = self.reason.decode("utf-8") 336s except UnicodeDecodeError: 336s reason = self.reason.decode("iso-8859-1") 336s else: 336s reason = self.reason 336s 336s if 400 <= self.status_code < 500: 336s http_error_msg = ( 336s f"{self.status_code} Client Error: {reason} for url: {self.url}" 336s ) 336s 336s elif 500 <= self.status_code < 600: 336s http_error_msg = ( 336s f"{self.status_code} Server Error: {reason} for url: {self.url}" 336s ) 336s 336s if http_error_msg: 336s > raise HTTPError(http_error_msg, response=self) 336s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/06c77ea2-3fb8-4e24-b449-1cb857690abb 336s 336s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 336s ------------------------------ Captured log call ------------------------------- 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 336s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 336s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2ubp_jse/runtime/kernel-b5a619f4-8484-45a4-95a9-5bcd7144a7ec.json'] 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38575 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35181 336s INFO NotebookApp:kernelmanager.py:179 Kernel started: b5a619f4-8484-45a4-95a9-5bcd7144a7ec, name: python3 336s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp2ubp_jse/notebooks/foo'} 336s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 21.540000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.710000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 91024ea5-eb53-4848-b4d2-24c30fbeb708 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 91024ea5-eb53-4848-b4d2-24c30fbeb708 336s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/b3747d96-343d-4a2b-aa89-4949c0c30154 (127.0.0.1) 2.520000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b5a619f4-8484-45a4-95a9-5bcd7144a7ec 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b5a619f4-8484-45a4-95a9-5bcd7144a7ec 336s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/06c77ea2-3fb8-4e24-b449-1cb857690abb (127.0.0.1) 336s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/06c77ea2-3fb8-4e24-b449-1cb857690abb', version='HTTP/1.1', remote_ip='127.0.0.1') 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 336s result = await result 336s ^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 336s yielded = self.gen.throw(exc) 336s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 336s yield maybe_future(sm.delete_session(session_id)) 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 336s value = future.result() 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 336s yielded = self.gen.send(value) 336s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 336s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 336s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 336s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 336s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 336s return _runner_map[name].run(inner) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 336s return fut.result(None) 336s ~~~~~~~~~~^^^^^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 336s return self.__get_result() 336s ~~~~~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 336s raise self._exception 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 336s stopper = ensure_async(km.shutdown_kernel(now, restart)) 336s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 336s return _runner_map[name].run(inner) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 336s return fut.result(None) 336s ~~~~~~~~~~^^^^^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 336s return self.__get_result() 336s ~~~~~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 336s raise self._exception 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s WARNING NotebookApp:handlers.py:612 Unhandled error 336s ERROR NotebookApp:log.py:55 { 336s "Host": "localhost:12341", 336s "Accept": "*/*", 336s "User-Agent": "python-requests/2.32.5" 336s } 336s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/06c77ea2-3fb8-4e24-b449-1cb857690abb (127.0.0.1) 11.450000ms referer=None 336s --------------------------- Captured stderr teardown --------------------------- 336s Traceback (most recent call last): 336s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 336s return _run_code(code, main_globals, None, 336s "__main__", mod_spec) 336s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 336s exec(code, run_globals) 336s ~~~~^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 336s from ipykernel import kernelapp as app 336s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 336s from .connect import * # noqa: F403 336s ^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 336s import json 336s File "", line 1371, in _find_and_load 336s File "", line 1333, in _find_and_load_unlocked 336s File "", line 1267, in _find_spec 336s File "", line 1292, in find_spec 336s File "", line 1266, in _get_spec 336s File "", line 1384, in find_spec 336s File "", line 166, in _path_isfile 336s File "", line 158, in _path_is_mode_type 336s File "", line 152, in _path_stat 336s KeyboardInterrupt 336s ___________________ SessionAPITest.test_create_file_session ____________________ 336s 336s @self.addCleanup 336s def cleanup_sessions(): 336s for session in self.sess_api.list().json(): 336s > self.sess_api.delete(session['id']) 336s 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 336s return self._req('DELETE', id) 336s ^^^^^^^^^^^^^^^^^^^^^^^ 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 336s response.raise_for_status() 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s 336s self = 336s 336s def raise_for_status(self): 336s """Raises :class:`HTTPError`, if one occurred.""" 336s 336s http_error_msg = "" 336s if isinstance(self.reason, bytes): 336s # We attempt to decode utf-8 first because some servers 336s # choose to localize their reason strings. If the string 336s # isn't utf-8, we fall back to iso-8859-1 for all other 336s # encodings. (See PR #3538) 336s try: 336s reason = self.reason.decode("utf-8") 336s except UnicodeDecodeError: 336s reason = self.reason.decode("iso-8859-1") 336s else: 336s reason = self.reason 336s 336s if 400 <= self.status_code < 500: 336s http_error_msg = ( 336s f"{self.status_code} Client Error: {reason} for url: {self.url}" 336s ) 336s 336s elif 500 <= self.status_code < 600: 336s http_error_msg = ( 336s f"{self.status_code} Server Error: {reason} for url: {self.url}" 336s ) 336s 336s if http_error_msg: 336s > raise HTTPError(http_error_msg, response=self) 336s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7283f9a4-bba7-4680-8900-8161e54be9b0 336s 336s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 336s ------------------------------ Captured log call ------------------------------- 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 336s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2ubp_jse/runtime/kernel-3b1faf0b-417f-4cea-94e3-20c44abdd57a.json'] 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38645 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33053 336s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3b1faf0b-417f-4cea-94e3-20c44abdd57a, name: python3 336s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp2ubp_jse/notebooks/foo'} 336s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 22.200000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.570000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b5a619f4-8484-45a4-95a9-5bcd7144a7ec 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b5a619f4-8484-45a4-95a9-5bcd7144a7ec 336s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/06c77ea2-3fb8-4e24-b449-1cb857690abb (127.0.0.1) 2.760000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3b1faf0b-417f-4cea-94e3-20c44abdd57a 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3b1faf0b-417f-4cea-94e3-20c44abdd57a 336s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7283f9a4-bba7-4680-8900-8161e54be9b0 (127.0.0.1) 336s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7283f9a4-bba7-4680-8900-8161e54be9b0', version='HTTP/1.1', remote_ip='127.0.0.1') 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 336s result = await result 336s ^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 336s yielded = self.gen.throw(exc) 336s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 336s yield maybe_future(sm.delete_session(session_id)) 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 336s value = future.result() 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 336s yielded = self.gen.send(value) 336s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 336s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 336s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 336s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 336s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 336s return _runner_map[name].run(inner) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 336s return fut.result(None) 336s ~~~~~~~~~~^^^^^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 336s return self.__get_result() 336s ~~~~~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 336s raise self._exception 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 336s stopper = ensure_async(km.shutdown_kernel(now, restart)) 336s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 336s return _runner_map[name].run(inner) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 336s return fut.result(None) 336s ~~~~~~~~~~^^^^^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 336s return self.__get_result() 336s ~~~~~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 336s raise self._exception 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s WARNING NotebookApp:handlers.py:612 Unhandled error 336s ERROR NotebookApp:log.py:55 { 336s "Host": "localhost:12341", 336s "Accept": "*/*", 336s "User-Agent": "python-requests/2.32.5" 336s } 336s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/7283f9a4-bba7-4680-8900-8161e54be9b0 (127.0.0.1) 11.730000ms referer=None 336s --------------------------- Captured stderr teardown --------------------------- 336s Traceback (most recent call last): 336s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 336s return _run_code(code, main_globals, None, 336s "__main__", mod_spec) 336s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 336s exec(code, run_globals) 336s ~~~~^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 336s from pathlib import Path 336s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 336s from pathlib._os import ( 336s ...<3 lines>... 336s ) 336s File "/usr/lib/python3.14/pathlib/_os.py", line 11, in 336s import fcntl 336s File "", line 1360, in _find_and_load 336s KeyboardInterrupt 336s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 336s 336s self = 336s 336s def test_create_with_kernel_id(self): 336s # create a new kernel 336s r = self.request('POST', 'api/kernels') 336s r.raise_for_status() 336s kernel = r.json() 336s 336s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 336s self.assertEqual(resp.status_code, 201) 336s newsession = resp.json() 336s self.assertIn('id', newsession) 336s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 336s self.assertEqual(newsession['kernel']['id'], kernel['id']) 336s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 336s 336s sessions = self.sess_api.list().json() 336s > self.assertEqual(sessions, [newsession]) 336s E AssertionError: Lists differ: [{'id': '7283f9a4-bba7-4680-8900-8161e54be9b0', 'p[553 chars]ne}}] != [{'id': 'befb63d2-105f-4025-b1a3-a7caefd8fc2d', 'p[279 chars]ne}}] 336s E 336s E First differing element 0: 336s E {'id': '7283f9a4-bba7-4680-8900-8161e54be9b0', 'p[218 chars]: 0}} 336s E {'id': 'befb63d2-105f-4025-b1a3-a7caefd8fc2d', 'p[278 chars]one}} 336s E 336s E First list contains 1 additional elements. 336s E First extra element 1: 336s E {'id': 'befb63d2-105f-4025-b1a3-a7caefd8fc2d', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '81f54a95-4f69-4ba1-b3e4-2119b231edf9', 'name': 'python3', 'last_activity': '2026-01-22T18:28:55.328422Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 336s E 336s E Diff is 830 characters long. Set self.maxDiff to None to see it. 336s 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 336s ------------------------------ Captured log call ------------------------------- 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 336s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2ubp_jse/runtime/kernel-81f54a95-4f69-4ba1-b3e4-2119b231edf9.json'] 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37763 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54927 336s INFO NotebookApp:kernelmanager.py:179 Kernel started: 81f54a95-4f69-4ba1-b3e4-2119b231edf9, name: python3 336s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 336s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 21.220000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 2.650000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.590000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.620000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3b1faf0b-417f-4cea-94e3-20c44abdd57a 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3b1faf0b-417f-4cea-94e3-20c44abdd57a 336s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/7283f9a4-bba7-4680-8900-8161e54be9b0 (127.0.0.1) 3.210000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 81f54a95-4f69-4ba1-b3e4-2119b231edf9 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 81f54a95-4f69-4ba1-b3e4-2119b231edf9 336s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/befb63d2-105f-4025-b1a3-a7caefd8fc2d (127.0.0.1) 336s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/befb63d2-105f-4025-b1a3-a7caefd8fc2d', version='HTTP/1.1', remote_ip='127.0.0.1') 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 336s result = await result 336s ^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 336s yielded = self.gen.throw(exc) 336s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 336s yield maybe_future(sm.delete_session(session_id)) 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 336s value = future.result() 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 336s yielded = self.gen.send(value) 336s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 336s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 336s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 336s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 336s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 336s return _runner_map[name].run(inner) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 336s return fut.result(None) 336s ~~~~~~~~~~^^^^^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 336s return self.__get_result() 336s ~~~~~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 336s raise self._exception 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 336s stopper = ensure_async(km.shutdown_kernel(now, restart)) 336s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 336s return _runner_map[name].run(inner) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 336s return fut.result(None) 336s ~~~~~~~~~~^^^^^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 336s return self.__get_result() 336s ~~~~~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 336s raise self._exception 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s WARNING NotebookApp:handlers.py:612 Unhandled error 336s ERROR NotebookApp:log.py:55 { 336s "Host": "localhost:12341", 336s "Accept": "*/*", 336s "User-Agent": "python-requests/2.32.5" 336s } 336s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/befb63d2-105f-4025-b1a3-a7caefd8fc2d (127.0.0.1) 12.970000ms referer=None 336s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 336s 336s @self.addCleanup 336s def cleanup_sessions(): 336s for session in self.sess_api.list().json(): 336s > self.sess_api.delete(session['id']) 336s 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 336s return self._req('DELETE', id) 336s ^^^^^^^^^^^^^^^^^^^^^^^ 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 336s response.raise_for_status() 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s 336s self = 336s 336s def raise_for_status(self): 336s """Raises :class:`HTTPError`, if one occurred.""" 336s 336s http_error_msg = "" 336s if isinstance(self.reason, bytes): 336s # We attempt to decode utf-8 first because some servers 336s # choose to localize their reason strings. If the string 336s # isn't utf-8, we fall back to iso-8859-1 for all other 336s # encodings. (See PR #3538) 336s try: 336s reason = self.reason.decode("utf-8") 336s except UnicodeDecodeError: 336s reason = self.reason.decode("iso-8859-1") 336s else: 336s reason = self.reason 336s 336s if 400 <= self.status_code < 500: 336s http_error_msg = ( 336s f"{self.status_code} Client Error: {reason} for url: {self.url}" 336s ) 336s 336s elif 500 <= self.status_code < 600: 336s http_error_msg = ( 336s f"{self.status_code} Server Error: {reason} for url: {self.url}" 336s ) 336s 336s if http_error_msg: 336s > raise HTTPError(http_error_msg, response=self) 336s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/befb63d2-105f-4025-b1a3-a7caefd8fc2d 336s 336s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 336s ---------------------------- Captured stderr setup ----------------------------- 336s Traceback (most recent call last): 336s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 336s return _run_code(code, main_globals, None, 336s "__main__", mod_spec) 336s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 336s exec(code, run_globals) 336s ~~~~^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 336s from ipykernel import kernelapp as app 336s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 336s from .connect import * # noqa: F403 336s ^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 336s from subprocess import PIPE, Popen 336s File "/usr/lib/python3.14/subprocess.py", line 125, in 336s import selectors 336s File "/usr/lib/python3.14/selectors.py", line 11, in 336s import math 336s KeyboardInterrupt 336s ------------------------------ Captured log call ------------------------------- 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.780000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 336s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2ubp_jse/runtime/kernel-cb432ff3-0ffa-44fb-9eda-22eee2d4ffc5.json'] 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46249 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55231 336s INFO NotebookApp:kernelmanager.py:179 Kernel started: cb432ff3-0ffa-44fb-9eda-22eee2d4ffc5, name: python3 336s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 336s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 21.030000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 81f54a95-4f69-4ba1-b3e4-2119b231edf9 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 81f54a95-4f69-4ba1-b3e4-2119b231edf9 336s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/befb63d2-105f-4025-b1a3-a7caefd8fc2d (127.0.0.1) 3.850000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.420000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.460000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cb432ff3-0ffa-44fb-9eda-22eee2d4ffc5 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cb432ff3-0ffa-44fb-9eda-22eee2d4ffc5 336s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/befb63d2-105f-4025-b1a3-a7caefd8fc2d (127.0.0.1) 336s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/befb63d2-105f-4025-b1a3-a7caefd8fc2d', version='HTTP/1.1', remote_ip='127.0.0.1') 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 336s result = await result 336s ^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 336s yielded = self.gen.throw(exc) 336s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 336s yield maybe_future(sm.delete_session(session_id)) 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 336s value = future.result() 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 336s yielded = self.gen.send(value) 336s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 336s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 336s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 336s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 336s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 336s return _runner_map[name].run(inner) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 336s return fut.result(None) 336s ~~~~~~~~~~^^^^^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 336s return self.__get_result() 336s ~~~~~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 336s raise self._exception 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 336s stopper = ensure_async(km.shutdown_kernel(now, restart)) 336s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 336s return _runner_map[name].run(inner) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 336s return fut.result(None) 336s ~~~~~~~~~~^^^^^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 336s return self.__get_result() 336s ~~~~~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 336s raise self._exception 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s WARNING NotebookApp:handlers.py:612 Unhandled error 336s ERROR NotebookApp:log.py:55 { 336s "Host": "localhost:12341", 336s "Accept": "*/*", 336s "User-Agent": "python-requests/2.32.5" 336s } 336s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/befb63d2-105f-4025-b1a3-a7caefd8fc2d (127.0.0.1) 11.110000ms referer=None 336s --------------------------- Captured stderr teardown --------------------------- 336s Traceback (most recent call last): 336s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 336s return _run_code(code, main_globals, None, 336s "__main__", mod_spec) 336s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 336s exec(code, run_globals) 336s ~~~~^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 336s from ipykernel import kernelapp as app 336s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 336s from .connect import * # noqa: F403 336s ^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 336s from subprocess import PIPE, Popen 336s File "", line 1371, in _find_and_load 336s File "", line 1333, in _find_and_load_unlocked 336s File "", line 1267, in _find_spec 336s File "", line 1292, in find_spec 336s File "", line 1266, in _get_spec 336s File "", line 1398, in find_spec 336s File "", line 166, in _path_isfile 336s File "", line 158, in _path_is_mode_type 336s File "", line 152, in _path_stat 336s KeyboardInterrupt 336s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 336s 336s @self.addCleanup 336s def cleanup_sessions(): 336s for session in self.sess_api.list().json(): 336s > self.sess_api.delete(session['id']) 336s 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 336s return self._req('DELETE', id) 336s ^^^^^^^^^^^^^^^^^^^^^^^ 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 336s response.raise_for_status() 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s 336s self = 336s 336s def raise_for_status(self): 336s """Raises :class:`HTTPError`, if one occurred.""" 336s 336s http_error_msg = "" 336s if isinstance(self.reason, bytes): 336s # We attempt to decode utf-8 first because some servers 336s # choose to localize their reason strings. If the string 336s # isn't utf-8, we fall back to iso-8859-1 for all other 336s # encodings. (See PR #3538) 336s try: 336s reason = self.reason.decode("utf-8") 336s except UnicodeDecodeError: 336s reason = self.reason.decode("iso-8859-1") 336s else: 336s reason = self.reason 336s 336s if 400 <= self.status_code < 500: 336s http_error_msg = ( 336s f"{self.status_code} Client Error: {reason} for url: {self.url}" 336s ) 336s 336s elif 500 <= self.status_code < 600: 336s http_error_msg = ( 336s f"{self.status_code} Server Error: {reason} for url: {self.url}" 336s ) 336s 336s if http_error_msg: 336s > raise HTTPError(http_error_msg, response=self) 336s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/befb63d2-105f-4025-b1a3-a7caefd8fc2d 336s 336s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 336s ------------------------------ Captured log call ------------------------------- 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.480000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 336s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2ubp_jse/runtime/kernel-ac441a50-d01e-45d8-b379-ebe57c8b4f70.json'] 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51743 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40773 336s INFO NotebookApp:kernelmanager.py:179 Kernel started: ac441a50-d01e-45d8-b379-ebe57c8b4f70, name: python3 336s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp2ubp_jse/notebooks/foo'} 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cb432ff3-0ffa-44fb-9eda-22eee2d4ffc5 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cb432ff3-0ffa-44fb-9eda-22eee2d4ffc5 336s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/befb63d2-105f-4025-b1a3-a7caefd8fc2d (127.0.0.1) 26.780000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.400000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.510000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ac441a50-d01e-45d8-b379-ebe57c8b4f70 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ac441a50-d01e-45d8-b379-ebe57c8b4f70 336s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/befb63d2-105f-4025-b1a3-a7caefd8fc2d (127.0.0.1) 336s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/befb63d2-105f-4025-b1a3-a7caefd8fc2d', version='HTTP/1.1', remote_ip='127.0.0.1') 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 336s result = await result 336s ^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 336s yielded = self.gen.throw(exc) 336s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 336s yield maybe_future(sm.delete_session(session_id)) 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 336s value = future.result() 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 336s yielded = self.gen.send(value) 336s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 336s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 336s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 336s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 336s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 336s return _runner_map[name].run(inner) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 336s return fut.result(None) 336s ~~~~~~~~~~^^^^^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 336s return self.__get_result() 336s ~~~~~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 336s raise self._exception 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 336s stopper = ensure_async(km.shutdown_kernel(now, restart)) 336s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 336s return _runner_map[name].run(inner) 336s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 336s return fut.result(None) 336s ~~~~~~~~~~^^^^^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 336s return self.__get_result() 336s ~~~~~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 336s raise self._exception 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s WARNING NotebookApp:handlers.py:612 Unhandled error 336s ERROR NotebookApp:log.py:55 { 336s "Host": "localhost:12341", 336s "Accept": "*/*", 336s "User-Agent": "python-requests/2.32.5" 336s } 336s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/befb63d2-105f-4025-b1a3-a7caefd8fc2d (127.0.0.1) 13.250000ms referer=None 336s --------------------------- Captured stderr teardown --------------------------- 336s Traceback (most recent call last): 336s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 336s return _run_code(code, main_globals, None, 336s "__main__", mod_spec) 336s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 336s exec(code, run_globals) 336s ~~~~^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 336s from pathlib import Path 336s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 336s from glob import _StringGlobber, _no_recurse_symlinks 336s File "/usr/lib/python3.14/glob.py", line 5, in 336s import re 336s File "/usr/lib/python3.14/re/__init__.py", line 125, in 336s import enum 336s File "/usr/lib/python3.14/enum.py", line 1384, in 336s class FlagBoundary(StrEnum): 336s ...<10 lines>... 336s KEEP = auto() 336s File "/usr/lib/python3.14/enum.py", line 549, in __new__ 336s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 336s File "/usr/lib/python3.14/enum.py", line 238, in __set_name__ 336s def __set_name__(self, enum_class, member_name): 336s 336s KeyboardInterrupt 336s Error calling __set_name__ on '_proto_member' instance 'KEEP' in 'FlagBoundary' 336s _______________________ AsyncSessionAPITest.test_create ________________________ 336s 336s @self.addCleanup 336s def cleanup_sessions(): 336s for session in self.sess_api.list().json(): 336s > self.sess_api.delete(session['id']) 336s 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 336s return self._req('DELETE', id) 336s ^^^^^^^^^^^^^^^^^^^^^^^ 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 336s response.raise_for_status() 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s 336s self = 336s 336s def raise_for_status(self): 336s """Raises :class:`HTTPError`, if one occurred.""" 336s 336s http_error_msg = "" 336s if isinstance(self.reason, bytes): 336s # We attempt to decode utf-8 first because some servers 336s # choose to localize their reason strings. If the string 336s # isn't utf-8, we fall back to iso-8859-1 for all other 336s # encodings. (See PR #3538) 336s try: 336s reason = self.reason.decode("utf-8") 336s except UnicodeDecodeError: 336s reason = self.reason.decode("iso-8859-1") 336s else: 336s reason = self.reason 336s 336s if 400 <= self.status_code < 500: 336s http_error_msg = ( 336s f"{self.status_code} Client Error: {reason} for url: {self.url}" 336s ) 336s 336s elif 500 <= self.status_code < 600: 336s http_error_msg = ( 336s f"{self.status_code} Server Error: {reason} for url: {self.url}" 336s ) 336s 336s if http_error_msg: 336s > raise HTTPError(http_error_msg, response=self) 336s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/36d6c00b-9bff-4fd8-a4e0-67aba8487eca 336s 336s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 336s ------------------------------ Captured log setup ------------------------------ 336s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpvt_ef4ou/config', '/tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpvt_ef4ou/etc/jupyter'] for config files 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpvt_ef4ou/etc/jupyter 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpvt_ef4ou/config 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpvt_ef4ou/etc/jupyter 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 336s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpvt_ef4ou/config 336s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpvt_ef4ou/notebooks 336s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 336s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 336s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 336s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 336s WARNING NotebookApp:handlers.py:612 Forbidden 336s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (127.0.0.1) 1.150000ms referer=None 336s ------------------------------ Captured log call ------------------------------- 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.760000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 336s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvt_ef4ou/runtime/kernel-80165d23-4eca-4536-95ac-c9586134dd2e.json'] 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47647 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48959 336s INFO NotebookApp:kernelmanager.py:179 Kernel started: 80165d23-4eca-4536-95ac-c9586134dd2e, name: python3 336s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpvt_ef4ou/notebooks/foo'} 336s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 19.960000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.460000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/36d6c00b-9bff-4fd8-a4e0-67aba8487eca (127.0.0.1) 1.530000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.420000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 80165d23-4eca-4536-95ac-c9586134dd2e 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 80165d23-4eca-4536-95ac-c9586134dd2e 336s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 336s await kernel_awaitable 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 336s result = await obj 336s ^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/36d6c00b-9bff-4fd8-a4e0-67aba8487eca (127.0.0.1) 336s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/36d6c00b-9bff-4fd8-a4e0-67aba8487eca', version='HTTP/1.1', remote_ip='127.0.0.1') 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 336s result = await result 336s ^^^^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 336s future.result() 336s ~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 336s yielded = self.gen.throw(exc) 336s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 336s yield maybe_future(sm.delete_session(session_id)) 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 336s value = future.result() 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 336s yielded = self.gen.throw(exc) 336s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 336s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 336s value = future.result() 336s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 336s raise self._exception.with_traceback(self._exception_tb) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 336s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 336s raise km.ready.exception() # type: ignore[misc] 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 336s await kernel_awaitable 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 336s result = await obj 336s ^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s WARNING NotebookApp:handlers.py:612 Unhandled error 336s ERROR NotebookApp:log.py:55 { 336s "Host": "localhost:12341", 336s "Accept": "*/*", 336s "User-Agent": "python-requests/2.32.5" 336s } 336s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/36d6c00b-9bff-4fd8-a4e0-67aba8487eca (127.0.0.1) 9.390000ms referer=None 336s --------------------------- Captured stderr teardown --------------------------- 336s Traceback (most recent call last): 336s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 336s return _run_code(code, main_globals, None, 336s "__main__", mod_spec) 336s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 336s exec(code, run_globals) 336s ~~~~^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 336s from ipykernel import kernelapp as app 336s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 336s from .connect import * # noqa: F403 336s ^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 336s import json 336s File "", line 1371, in _find_and_load 336s File "", line 1333, in _find_and_load_unlocked 336s File "", line 1267, in _find_spec 336s File "", line 1292, in find_spec 336s File "", line 1266, in _get_spec 336s File "", line 1384, in find_spec 336s KeyboardInterrupt 336s _______________ AsyncSessionAPITest.test_create_console_session ________________ 336s 336s @self.addCleanup 336s def cleanup_sessions(): 336s for session in self.sess_api.list().json(): 336s > self.sess_api.delete(session['id']) 336s 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 336s return self._req('DELETE', id) 336s ^^^^^^^^^^^^^^^^^^^^^^^ 336s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 336s response.raise_for_status() 336s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 336s 336s self = 336s 336s def raise_for_status(self): 336s """Raises :class:`HTTPError`, if one occurred.""" 336s 336s http_error_msg = "" 336s if isinstance(self.reason, bytes): 336s # We attempt to decode utf-8 first because some servers 336s # choose to localize their reason strings. If the string 336s # isn't utf-8, we fall back to iso-8859-1 for all other 336s # encodings. (See PR #3538) 336s try: 336s reason = self.reason.decode("utf-8") 336s except UnicodeDecodeError: 336s reason = self.reason.decode("iso-8859-1") 336s else: 336s reason = self.reason 336s 336s if 400 <= self.status_code < 500: 336s http_error_msg = ( 336s f"{self.status_code} Client Error: {reason} for url: {self.url}" 336s ) 336s 336s elif 500 <= self.status_code < 600: 336s http_error_msg = ( 336s f"{self.status_code} Server Error: {reason} for url: {self.url}" 336s ) 336s 336s if http_error_msg: 336s > raise HTTPError(http_error_msg, response=self) 336s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/77c7876f-6255-458f-a51a-264f63e550ac 336s 336s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 336s ------------------------------ Captured log call ------------------------------- 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 336s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvt_ef4ou/runtime/kernel-175f582f-55f1-4c72-a478-3d7383f6ca60.json'] 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55007 336s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51051 336s INFO NotebookApp:kernelmanager.py:179 Kernel started: 175f582f-55f1-4c72-a478-3d7383f6ca60, name: python3 336s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpvt_ef4ou/notebooks/foo'} 336s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 19.170000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.550000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 80165d23-4eca-4536-95ac-c9586134dd2e 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 80165d23-4eca-4536-95ac-c9586134dd2e 336s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/36d6c00b-9bff-4fd8-a4e0-67aba8487eca (127.0.0.1) 1.850000ms 336s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 336s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 175f582f-55f1-4c72-a478-3d7383f6ca60 336s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 175f582f-55f1-4c72-a478-3d7383f6ca60 336s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 336s await kernel_awaitable 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 336s result = await obj 336s ^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/77c7876f-6255-458f-a51a-264f63e550ac (127.0.0.1) 336s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/77c7876f-6255-458f-a51a-264f63e550ac', version='HTTP/1.1', remote_ip='127.0.0.1') 336s Traceback (most recent call last): 336s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 336s result = await result 336s ^^^^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 336s future.result() 336s ~~~~~~~~~~~~~^^ 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 336s yielded = self.gen.throw(exc) 336s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 336s yield maybe_future(sm.delete_session(session_id)) 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 336s value = future.result() 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 336s yielded = self.gen.throw(exc) 336s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 336s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 336s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 336s value = future.result() 336s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 336s raise self._exception.with_traceback(self._exception_tb) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 336s result = coro.send(None) 336s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 336s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 336s raise km.ready.exception() # type: ignore[misc] 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 336s await kernel_awaitable 336s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 336s result = await obj 336s ^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 336s raise e 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 336s out = await method(self, *args, **kwargs) 336s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 336s await self._async_finish_shutdown(restart=restart) 336s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 336s await asyncio.wait_for( 336s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 336s ) 336s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 336s async with timeouts.timeout(timeout): 336s ~~~~~~~~~~~~~~~~^^^^^^^^^ 336s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 336s raise RuntimeError("Timeout should be used inside a task") 336s RuntimeError: Timeout should be used inside a task 336s WARNING NotebookApp:handlers.py:612 Unhandled error 336s ERROR NotebookApp:log.py:55 { 336s "Host": "localhost:12341", 336s "Accept": "*/*", 336s "User-Agent": "python-requests/2.32.5" 336s } 337s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/77c7876f-6255-458f-a51a-264f63e550ac (127.0.0.1) 9.450000ms referer=None 337s --------------------------- Captured stderr teardown --------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s "__main__", mod_spec) 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s ~~~~^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 337s from pathlib import Path 337s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 337s from glob import _StringGlobber, _no_recurse_symlinks 337s File "/usr/lib/python3.14/glob.py", line 5, in 337s import re 337s File "/usr/lib/python3.14/re/__init__.py", line 126, in 337s from . import _compiler, _parser 337s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 337s from . import _parser 337s File "", line 1371, in _find_and_load 337s File "", line 1342, in _find_and_load_unlocked 337s File "", line 938, in _load_unlocked 337s File "", line 755, in exec_module 337s File "", line 888, in get_code 337s File "", line 511, in _compile_bytecode 337s KeyboardInterrupt 337s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 337s 337s @self.addCleanup 337s def cleanup_sessions(): 337s for session in self.sess_api.list().json(): 337s > self.sess_api.delete(session['id']) 337s 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 337s return self._req('DELETE', id) 337s ^^^^^^^^^^^^^^^^^^^^^^^ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 337s response.raise_for_status() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def raise_for_status(self): 337s """Raises :class:`HTTPError`, if one occurred.""" 337s 337s http_error_msg = "" 337s if isinstance(self.reason, bytes): 337s # We attempt to decode utf-8 first because some servers 337s # choose to localize their reason strings. If the string 337s # isn't utf-8, we fall back to iso-8859-1 for all other 337s # encodings. (See PR #3538) 337s try: 337s reason = self.reason.decode("utf-8") 337s except UnicodeDecodeError: 337s reason = self.reason.decode("iso-8859-1") 337s else: 337s reason = self.reason 337s 337s if 400 <= self.status_code < 500: 337s http_error_msg = ( 337s f"{self.status_code} Client Error: {reason} for url: {self.url}" 337s ) 337s 337s elif 500 <= self.status_code < 600: 337s http_error_msg = ( 337s f"{self.status_code} Server Error: {reason} for url: {self.url}" 337s ) 337s 337s if http_error_msg: 337s > raise HTTPError(http_error_msg, response=self) 337s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1deea9b4-1187-4c43-9ab0-d4a1df25788a 337s 337s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 337s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvt_ef4ou/runtime/kernel-cc30f350-0ffd-47b0-841a-fdffe2dc1118.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55485 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48953 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: cc30f350-0ffd-47b0-841a-fdffe2dc1118, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpvt_ef4ou/notebooks/foo'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 19.320000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.520000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 175f582f-55f1-4c72-a478-3d7383f6ca60 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 175f582f-55f1-4c72-a478-3d7383f6ca60 337s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/77c7876f-6255-458f-a51a-264f63e550ac (127.0.0.1) 2.000000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cc30f350-0ffd-47b0-841a-fdffe2dc1118 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cc30f350-0ffd-47b0-841a-fdffe2dc1118 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1deea9b4-1187-4c43-9ab0-d4a1df25788a (127.0.0.1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1deea9b4-1187-4c43-9ab0-d4a1df25788a', version='HTTP/1.1', remote_ip='127.0.0.1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 337s future.result() 337s ~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 337s yield maybe_future(sm.delete_session(session_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 337s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 337s raise self._exception.with_traceback(self._exception_tb) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 337s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 337s raise km.ready.exception() # type: ignore[misc] 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s ERROR NotebookApp:log.py:55 { 337s "Host": "localhost:12341", 337s "Accept": "*/*", 337s "User-Agent": "python-requests/2.32.5" 337s } 337s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1deea9b4-1187-4c43-9ab0-d4a1df25788a (127.0.0.1) 9.840000ms referer=None 337s --------------------------- Captured stderr teardown --------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s "__main__", mod_spec) 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s ~~~~^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 337s from pathlib import Path 337s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 337s from pathlib._os import ( 337s ...<3 lines>... 337s ) 337s File "/usr/lib/python3.14/pathlib/_os.py", line 19, in 337s import _winapi 337s File "", line 1371, in _find_and_load 337s File "", line 1333, in _find_and_load_unlocked 337s File "", line 1267, in _find_spec 337s File "", line 1292, in find_spec 337s File "", line 1266, in _get_spec 337s File "", line 1365, in find_spec 337s File "", line 152, in _path_stat 337s KeyboardInterrupt 337s _________________ AsyncSessionAPITest.test_create_file_session _________________ 337s 337s @self.addCleanup 337s def cleanup_sessions(): 337s for session in self.sess_api.list().json(): 337s > self.sess_api.delete(session['id']) 337s 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 337s return self._req('DELETE', id) 337s ^^^^^^^^^^^^^^^^^^^^^^^ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 337s response.raise_for_status() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def raise_for_status(self): 337s """Raises :class:`HTTPError`, if one occurred.""" 337s 337s http_error_msg = "" 337s if isinstance(self.reason, bytes): 337s # We attempt to decode utf-8 first because some servers 337s # choose to localize their reason strings. If the string 337s # isn't utf-8, we fall back to iso-8859-1 for all other 337s # encodings. (See PR #3538) 337s try: 337s reason = self.reason.decode("utf-8") 337s except UnicodeDecodeError: 337s reason = self.reason.decode("iso-8859-1") 337s else: 337s reason = self.reason 337s 337s if 400 <= self.status_code < 500: 337s http_error_msg = ( 337s f"{self.status_code} Client Error: {reason} for url: {self.url}" 337s ) 337s 337s elif 500 <= self.status_code < 600: 337s http_error_msg = ( 337s f"{self.status_code} Server Error: {reason} for url: {self.url}" 337s ) 337s 337s if http_error_msg: 337s > raise HTTPError(http_error_msg, response=self) 337s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b32bf06c-1da0-467c-af9b-55232cf34dd5 337s 337s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvt_ef4ou/runtime/kernel-4e8178eb-1658-4e37-9346-7be2ea37355d.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38349 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42419 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4e8178eb-1658-4e37-9346-7be2ea37355d, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpvt_ef4ou/notebooks/foo'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 22.400000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 4.460000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cc30f350-0ffd-47b0-841a-fdffe2dc1118 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cc30f350-0ffd-47b0-841a-fdffe2dc1118 337s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/1deea9b4-1187-4c43-9ab0-d4a1df25788a (127.0.0.1) 1.880000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4e8178eb-1658-4e37-9346-7be2ea37355d 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4e8178eb-1658-4e37-9346-7be2ea37355d 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b32bf06c-1da0-467c-af9b-55232cf34dd5 (127.0.0.1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b32bf06c-1da0-467c-af9b-55232cf34dd5', version='HTTP/1.1', remote_ip='127.0.0.1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 337s future.result() 337s ~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 337s yield maybe_future(sm.delete_session(session_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 337s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 337s raise self._exception.with_traceback(self._exception_tb) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 337s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 337s raise km.ready.exception() # type: ignore[misc] 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s ERROR NotebookApp:log.py:55 { 337s "Host": "localhost:12341", 337s "Accept": "*/*", 337s "User-Agent": "python-requests/2.32.5" 337s } 337s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b32bf06c-1da0-467c-af9b-55232cf34dd5 (127.0.0.1) 11.570000ms referer=None 337s --------------------------- Captured stderr teardown --------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s "__main__", mod_spec) 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s ~~~~^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 337s from ipykernel import kernelapp as app 337s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 337s from .connect import * # noqa: F403 337s ^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 337s import json 337s File "/usr/lib/python3.14/json/__init__.py", line 107, in 337s from .encoder import JSONEncoder 337s File "", line 1371, in _find_and_load 337s File "", line 1342, in _find_and_load_unlocked 337s File "", line 938, in _load_unlocked 337s File "", line 755, in exec_module 337s File "", line 888, in get_code 337s File "", line 511, in _compile_bytecode 337s KeyboardInterrupt 337s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 337s 337s self = 337s 337s def test_create_with_kernel_id(self): 337s # create a new kernel 337s r = self.request('POST', 'api/kernels') 337s r.raise_for_status() 337s kernel = r.json() 337s 337s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 337s self.assertEqual(resp.status_code, 201) 337s newsession = resp.json() 337s self.assertIn('id', newsession) 337s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 337s self.assertEqual(newsession['kernel']['id'], kernel['id']) 337s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 337s 337s sessions = self.sess_api.list().json() 337s > self.assertEqual(sessions, [newsession]) 337s E AssertionError: Lists differ: [{'id': 'b32bf06c-1da0-467c-af9b-55232cf34dd5', 'p[553 chars]ne}}] != [{'id': '38188bcd-e0d7-4f56-82a5-7144689a3fdf', 'p[279 chars]ne}}] 337s E 337s E First differing element 0: 337s E {'id': 'b32bf06c-1da0-467c-af9b-55232cf34dd5', 'p[218 chars]: 0}} 337s E {'id': '38188bcd-e0d7-4f56-82a5-7144689a3fdf', 'p[278 chars]one}} 337s E 337s E First list contains 1 additional elements. 337s E First extra element 1: 337s E {'id': '38188bcd-e0d7-4f56-82a5-7144689a3fdf', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '5c0661b5-ca03-43d6-8557-87b3ce500c2a', 'name': 'python3', 'last_activity': '2026-01-22T18:28:56.145308Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 337s E 337s E Diff is 830 characters long. Set self.maxDiff to None to see it. 337s 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvt_ef4ou/runtime/kernel-5c0661b5-ca03-43d6-8557-87b3ce500c2a.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35927 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55037 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5c0661b5-ca03-43d6-8557-87b3ce500c2a, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.620000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.750000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.470000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.800000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4e8178eb-1658-4e37-9346-7be2ea37355d 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4e8178eb-1658-4e37-9346-7be2ea37355d 337s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/b32bf06c-1da0-467c-af9b-55232cf34dd5 (127.0.0.1) 1.800000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5c0661b5-ca03-43d6-8557-87b3ce500c2a 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5c0661b5-ca03-43d6-8557-87b3ce500c2a 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/38188bcd-e0d7-4f56-82a5-7144689a3fdf (127.0.0.1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/38188bcd-e0d7-4f56-82a5-7144689a3fdf', version='HTTP/1.1', remote_ip='127.0.0.1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 337s future.result() 337s ~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 337s yield maybe_future(sm.delete_session(session_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 337s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 337s raise self._exception.with_traceback(self._exception_tb) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 337s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 337s raise km.ready.exception() # type: ignore[misc] 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s ERROR NotebookApp:log.py:55 { 337s "Host": "localhost:12341", 337s "Accept": "*/*", 337s "User-Agent": "python-requests/2.32.5" 337s } 337s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/38188bcd-e0d7-4f56-82a5-7144689a3fdf (127.0.0.1) 12.460000ms referer=None 337s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 337s 337s @self.addCleanup 337s def cleanup_sessions(): 337s for session in self.sess_api.list().json(): 337s > self.sess_api.delete(session['id']) 337s 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 337s return self._req('DELETE', id) 337s ^^^^^^^^^^^^^^^^^^^^^^^ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 337s response.raise_for_status() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def raise_for_status(self): 337s """Raises :class:`HTTPError`, if one occurred.""" 337s 337s http_error_msg = "" 337s if isinstance(self.reason, bytes): 337s # We attempt to decode utf-8 first because some servers 337s # choose to localize their reason strings. If the string 337s # isn't utf-8, we fall back to iso-8859-1 for all other 337s # encodings. (See PR #3538) 337s try: 337s reason = self.reason.decode("utf-8") 337s except UnicodeDecodeError: 337s reason = self.reason.decode("iso-8859-1") 337s else: 337s reason = self.reason 337s 337s if 400 <= self.status_code < 500: 337s http_error_msg = ( 337s f"{self.status_code} Client Error: {reason} for url: {self.url}" 337s ) 337s 337s elif 500 <= self.status_code < 600: 337s http_error_msg = ( 337s f"{self.status_code} Server Error: {reason} for url: {self.url}" 337s ) 337s 337s if http_error_msg: 337s > raise HTTPError(http_error_msg, response=self) 337s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/38188bcd-e0d7-4f56-82a5-7144689a3fdf 337s 337s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 337s ---------------------------- Captured stderr setup ----------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s "__main__", mod_spec) 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s ~~~~^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 337s from ipykernel import kernelapp as app 337s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 337s from .connect import * # noqa: F403 337s ^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 337s from subprocess import PIPE, Popen 337s File "/usr/lib/python3.14/subprocess.py", line 49, in 337s import signal 337s File "/usr/lib/python3.14/signal.py", line 7, in 337s _IntEnum._convert_( 337s ~~~~~~~~~~~~~~~~~~^ 337s 'Signals', __name__, 337s ^^^^^^^^^^^^^^^^^^^^ 337s ...<2 lines>... 337s and (name.startswith('SIG') and not name.startswith('SIG_')) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s or name.startswith('CTRL_')) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/enum.py", line 909, in _convert_ 337s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 337s File "/usr/lib/python3.14/enum.py", line 1895, in convert_class 337s setattr(enum_class, name, member) 337s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/enum.py", line 810, in __setattr__ 337s def __setattr__(cls, name, value): 337s 337s KeyboardInterrupt 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.660000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvt_ef4ou/runtime/kernel-a5b50756-6e77-4101-ae96-54692f2a7c64.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59477 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42943 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: a5b50756-6e77-4101-ae96-54692f2a7c64, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.710000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5c0661b5-ca03-43d6-8557-87b3ce500c2a 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5c0661b5-ca03-43d6-8557-87b3ce500c2a 337s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/38188bcd-e0d7-4f56-82a5-7144689a3fdf (127.0.0.1) 2.600000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.350000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.720000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a5b50756-6e77-4101-ae96-54692f2a7c64 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a5b50756-6e77-4101-ae96-54692f2a7c64 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/38188bcd-e0d7-4f56-82a5-7144689a3fdf (127.0.0.1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/38188bcd-e0d7-4f56-82a5-7144689a3fdf', version='HTTP/1.1', remote_ip='127.0.0.1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 337s future.result() 337s ~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 337s yield maybe_future(sm.delete_session(session_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 337s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 337s raise self._exception.with_traceback(self._exception_tb) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 337s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 337s raise km.ready.exception() # type: ignore[misc] 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s ERROR NotebookApp:log.py:55 { 337s "Host": "localhost:12341", 337s "Accept": "*/*", 337s "User-Agent": "python-requests/2.32.5" 337s } 337s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/38188bcd-e0d7-4f56-82a5-7144689a3fdf (127.0.0.1) 9.500000ms referer=None 337s --------------------------- Captured stderr teardown --------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s "__main__", mod_spec) 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s ~~~~^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 337s from ipykernel import kernelapp as app 337s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 337s from .connect import * # noqa: F403 337s ^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 337s from subprocess import PIPE, Popen 337s File "", line 1371, in _find_and_load 337s File "", line 1342, in _find_and_load_unlocked 337s File "", line 938, in _load_unlocked 337s File "", line 755, in exec_module 337s File "", line 888, in get_code 337s File "", line 511, in _compile_bytecode 337s KeyboardInterrupt 337s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 337s 337s @self.addCleanup 337s def cleanup_sessions(): 337s for session in self.sess_api.list().json(): 337s > self.sess_api.delete(session['id']) 337s 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 337s return self._req('DELETE', id) 337s ^^^^^^^^^^^^^^^^^^^^^^^ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 337s response.raise_for_status() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def raise_for_status(self): 337s """Raises :class:`HTTPError`, if one occurred.""" 337s 337s http_error_msg = "" 337s if isinstance(self.reason, bytes): 337s # We attempt to decode utf-8 first because some servers 337s # choose to localize their reason strings. If the string 337s # isn't utf-8, we fall back to iso-8859-1 for all other 337s # encodings. (See PR #3538) 337s try: 337s reason = self.reason.decode("utf-8") 337s except UnicodeDecodeError: 337s reason = self.reason.decode("iso-8859-1") 337s else: 337s reason = self.reason 337s 337s if 400 <= self.status_code < 500: 337s http_error_msg = ( 337s f"{self.status_code} Client Error: {reason} for url: {self.url}" 337s ) 337s 337s elif 500 <= self.status_code < 600: 337s http_error_msg = ( 337s f"{self.status_code} Server Error: {reason} for url: {self.url}" 337s ) 337s 337s if http_error_msg: 337s > raise HTTPError(http_error_msg, response=self) 337s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/38188bcd-e0d7-4f56-82a5-7144689a3fdf 337s 337s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.670000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvt_ef4ou/runtime/kernel-e21c57ff-77e1-4bb4-a684-52127e4c3a95.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51091 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51999 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: e21c57ff-77e1-4bb4-a684-52127e4c3a95, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpvt_ef4ou/notebooks/foo'} 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a5b50756-6e77-4101-ae96-54692f2a7c64 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a5b50756-6e77-4101-ae96-54692f2a7c64 337s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/38188bcd-e0d7-4f56-82a5-7144689a3fdf (127.0.0.1) 19.820000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.450000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.470000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e21c57ff-77e1-4bb4-a684-52127e4c3a95 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e21c57ff-77e1-4bb4-a684-52127e4c3a95 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/38188bcd-e0d7-4f56-82a5-7144689a3fdf (127.0.0.1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/38188bcd-e0d7-4f56-82a5-7144689a3fdf', version='HTTP/1.1', remote_ip='127.0.0.1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 337s future.result() 337s ~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 337s yield maybe_future(sm.delete_session(session_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 337s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 337s raise self._exception.with_traceback(self._exception_tb) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 337s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 337s raise km.ready.exception() # type: ignore[misc] 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s ERROR NotebookApp:log.py:55 { 337s "Host": "localhost:12341", 337s "Accept": "*/*", 337s "User-Agent": "python-requests/2.32.5" 337s } 337s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/38188bcd-e0d7-4f56-82a5-7144689a3fdf (127.0.0.1) 8.820000ms referer=None 337s --------------------------- Captured stderr teardown --------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s "__main__", mod_spec) 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s ~~~~^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 337s from pathlib import Path 337s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 337s from glob import _StringGlobber, _no_recurse_symlinks 337s File "/usr/lib/python3.14/glob.py", line 5, in 337s import re 337s File "/usr/lib/python3.14/re/__init__.py", line 126, in 337s from . import _compiler, _parser 337s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 337s from . import _parser 337s File "/usr/lib/python3.14/re/_parser.py", line 15, in 337s from ._constants import * 337s File "", line 1371, in _find_and_load 337s File "", line 1342, in _find_and_load_unlocked 337s File "", line 938, in _load_unlocked 337s File "", line 755, in exec_module 337s File "", line 845, in get_code 337s File "", line 968, in path_stats 337s File "", line 152, in _path_stat 337s KeyboardInterrupt 337s =============================== warnings summary =============================== 337s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 337s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 337s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 337s return LooseVersion(v) >= LooseVersion(check) 337s 337s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 337s services/kernels/tests/test_kernels_api.py: 69 warnings 337s services/sessions/tests/test_sessions_api.py: 96 warnings 337s /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). 337s dt = unaware(*args, **kwargs) 337s 337s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 337s /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 337s pytestmark = pytest.mark.integration_tests 337s 337s services/kernels/tests/test_kernels_api.py: 6 warnings 337s services/sessions/tests/test_sessions_api.py: 6 warnings 337s /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 337s policy = events.get_event_loop_policy() 337s 337s services/kernels/tests/test_kernels_api.py: 22 warnings 337s services/sessions/tests/test_sessions_api.py: 17 warnings 337s /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 337s loop = events.get_event_loop_policy().get_event_loop() 337s 337s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 337s loop.make_current() 337s 337s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 337s =========================== short test summary info ============================ 337s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 337s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 337s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 337s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 337s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 337s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 337s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 337s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 337s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 337s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 337s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 337s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 337s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 337s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 337s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 337s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 337s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 337s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 337s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 337s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 337s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 337s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 337s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 337s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 337s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 337s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 337s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 337s ===== 23 failed, 2 passed, 305 deselected, 221 warnings, 4 errors in 7.42s ===== 338s *** END OF RUN 3: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 338s *** 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 342s ============================= test session starts ============================== 342s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 342s rootdir: /tmp/autopkgtest.2Ulezp/autopkgtest_tmp 342s plugins: typeguard-4.4.4 342s collected 330 items / 307 deselected / 23 selected 342s run-last-failure: rerun previous 23 failures 342s 344s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 39%] 345s services/sessions/tests/test_sessions_api.py FFFFFEFFFFFFFEFF [100%] 345s 345s ==================================== ERRORS ==================================== 345s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 345s 345s self = 345s 345s def tearDown(self): 345s for k in self.kern_api.list().json(): 345s > self.kern_api.shutdown(k['id']) 345s 345s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 345s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 345s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 345s return self._req('DELETE', id) 345s ^^^^^^^^^^^^^^^^^^^^^^^ 345s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 345s response.raise_for_status() 345s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 345s 345s self = 345s 345s def raise_for_status(self): 345s """Raises :class:`HTTPError`, if one occurred.""" 345s 345s http_error_msg = "" 345s if isinstance(self.reason, bytes): 345s # We attempt to decode utf-8 first because some servers 345s # choose to localize their reason strings. If the string 345s # isn't utf-8, we fall back to iso-8859-1 for all other 345s # encodings. (See PR #3538) 345s try: 345s reason = self.reason.decode("utf-8") 345s except UnicodeDecodeError: 345s reason = self.reason.decode("iso-8859-1") 345s else: 345s reason = self.reason 345s 345s if 400 <= self.status_code < 500: 345s http_error_msg = ( 345s f"{self.status_code} Client Error: {reason} for url: {self.url}" 345s ) 345s 345s elif 500 <= self.status_code < 600: 345s http_error_msg = ( 345s f"{self.status_code} Server Error: {reason} for url: {self.url}" 345s ) 345s 345s if http_error_msg: 345s > raise HTTPError(http_error_msg, response=self) 345s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/9d748f1f-0dd3-4a02-bcc9-9d40d1c42860 345s 345s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 345s ----------------------------- Captured stderr call ----------------------------- 345s Traceback (most recent call last): 345s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 345s return _run_code(code, main_globals, None, 345s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 345s exec(code, run_globals) 345s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 345s from pathlib import Path 345s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 345s from glob import _StringGlobber, _no_recurse_symlinks 345s File "/usr/lib/python3.14/glob.py", line 3, in 345s import contextlib 345s File "/usr/lib/python3.14/contextlib.py", line 7, in 345s from functools import wraps 345s File "/usr/lib/python3.14/functools.py", line 226, in 345s from _functools import cmp_to_key 345s KeyboardInterrupt 345s ------------------------------ Captured log call ------------------------------- 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 345s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphpxzpu9j/runtime/kernel-9d748f1f-0dd3-4a02-bcc9-9d40d1c42860.json'] 345s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41247 345s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34177 345s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9d748f1f-0dd3-4a02-bcc9-9d40d1c42860, name: python3 345s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 345s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 20.610000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.340000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 345s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphpxzpu9j/runtime/kernel-5548590b-5a21-4cbc-8989-8d805c05cbf4.json'] 345s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34203 345s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35325 345s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5548590b-5a21-4cbc-8989-8d805c05cbf4, name: python3 345s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 345s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 19.980000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.360000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 5548590b-5a21-4cbc-8989-8d805c05cbf4 345s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/5548590b-5a21-4cbc-8989-8d805c05cbf4/interrupt (127.0.0.1) 2.020000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 345s Traceback (most recent call last): 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 345s out = await method(self, *args, **kwargs) 345s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 345s await self._async_finish_shutdown(restart=restart) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 345s await asyncio.wait_for( 345s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 345s ) 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 345s async with timeouts.timeout(timeout): 345s ~~~~~~~~~~~~~~~~^^^^^^^^^ 345s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 345s raise RuntimeError("Timeout should be used inside a task") 345s RuntimeError: Timeout should be used inside a task 345s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 345s Traceback (most recent call last): 345s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 345s yield maybe_future(km.restart_kernel(kernel_id)) 345s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 345s value = future.result() 345s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 345s raise self._exception.with_traceback(self._exception_tb) 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 345s result = coro.send(None) 345s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 345s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 345s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 345s return _runner_map[name].run(inner) 345s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 345s return fut.result(None) 345s ~~~~~~~~~~^^^^^^ 345s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 345s return self.__get_result() 345s ~~~~~~~~~~~~~~~~~^^ 345s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 345s raise self._exception 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 345s result = coro.send(None) 345s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 345s await ensure_async(kernel.restart_kernel(now=now)) 345s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 345s return _runner_map[name].run(inner) 345s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 345s return fut.result(None) 345s ~~~~~~~~~~^^^^^^ 345s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 345s return self.__get_result() 345s ~~~~~~~~~~~~~~~~~^^ 345s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 345s raise self._exception 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 345s result = coro.send(None) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 345s await self._async_shutdown_kernel(now=now, restart=True) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 345s raise e 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 345s out = await method(self, *args, **kwargs) 345s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 345s await self._async_finish_shutdown(restart=restart) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 345s await asyncio.wait_for( 345s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 345s ) 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 345s async with timeouts.timeout(timeout): 345s ~~~~~~~~~~~~~~~~^^^^^^^^^ 345s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 345s raise RuntimeError("Timeout should be used inside a task") 345s RuntimeError: Timeout should be used inside a task 345s ERROR NotebookApp:log.py:55 { 345s "Host": "localhost:12341", 345s "Accept": "*/*", 345s "User-Agent": "python-requests/2.32.5" 345s } 345s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/5548590b-5a21-4cbc-8989-8d805c05cbf4/restart (127.0.0.1) 7.170000ms referer=None 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 2.420000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9d748f1f-0dd3-4a02-bcc9-9d40d1c42860 345s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9d748f1f-0dd3-4a02-bcc9-9d40d1c42860 345s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 345s Traceback (most recent call last): 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 345s out = await method(self, *args, **kwargs) 345s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 345s await self._async_finish_shutdown(restart=restart) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 345s await asyncio.wait_for( 345s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 345s ) 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 345s async with timeouts.timeout(timeout): 345s ~~~~~~~~~~~~~~~~^^^^^^^^^ 345s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 345s raise RuntimeError("Timeout should be used inside a task") 345s RuntimeError: Timeout should be used inside a task 345s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/9d748f1f-0dd3-4a02-bcc9-9d40d1c42860 (127.0.0.1) 345s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/9d748f1f-0dd3-4a02-bcc9-9d40d1c42860', version='HTTP/1.1', remote_ip='127.0.0.1') 345s Traceback (most recent call last): 345s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 345s result = await result 345s ^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 345s yielded = ctx_run(next, result) 345s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 345s yield maybe_future(km.shutdown_kernel(kernel_id)) 345s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 345s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 345s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 345s return _runner_map[name].run(inner) 345s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 345s return fut.result(None) 345s ~~~~~~~~~~^^^^^^ 345s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 345s return self.__get_result() 345s ~~~~~~~~~~~~~~~~~^^ 345s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 345s raise self._exception 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 345s result = coro.send(None) 345s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 345s stopper = ensure_async(km.shutdown_kernel(now, restart)) 345s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 345s return _runner_map[name].run(inner) 345s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 345s return fut.result(None) 345s ~~~~~~~~~~^^^^^^ 345s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 345s return self.__get_result() 345s ~~~~~~~~~~~~~~~~~^^ 345s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 345s raise self._exception 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 345s result = coro.send(None) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 345s raise e 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 345s out = await method(self, *args, **kwargs) 345s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 345s await self._async_finish_shutdown(restart=restart) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 345s await asyncio.wait_for( 345s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 345s ) 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 345s async with timeouts.timeout(timeout): 345s ~~~~~~~~~~~~~~~~^^^^^^^^^ 345s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 345s raise RuntimeError("Timeout should be used inside a task") 345s RuntimeError: Timeout should be used inside a task 345s WARNING NotebookApp:handlers.py:612 Unhandled error 345s ERROR NotebookApp:log.py:55 { 345s "Host": "localhost:12341", 345s "Accept": "*/*", 345s "User-Agent": "python-requests/2.32.5" 345s } 345s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/9d748f1f-0dd3-4a02-bcc9-9d40d1c42860 (127.0.0.1) 9.740000ms referer=None 345s --------------------------- Captured stderr teardown --------------------------- 345s Traceback (most recent call last): 345s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 345s return _run_code(code, main_globals, None, 345s "__main__", mod_spec) 345s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 345s exec(code, run_globals) 345s ~~~~^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 345s from ipykernel import kernelapp as app 345s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 345s from .connect import * # noqa: F403 345s ^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 345s import jupyter_client 345s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 345s from .asynchronous import AsyncKernelClient 345s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 345s from .client import AsyncKernelClient # noqa 345s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 345s import zmq.asyncio 345s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 345s from zmq import sugar 345s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 345s from zmq.sugar import context, frame, poll, socket, tracker, version 345s File "", line 1371, in _find_and_load 345s File "", line 1333, in _find_and_load_unlocked 345s File "", line 1267, in _find_spec 345s File "", line 1292, in find_spec 345s File "", line 1266, in _get_spec 345s File "", line 1398, in find_spec 345s File "", line 166, in _path_isfile 345s File "", line 158, in _path_is_mode_type 345s File "", line 152, in _path_stat 345s KeyboardInterrupt 345s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 345s 345s self = 345s 345s def tearDown(self): 345s for k in self.kern_api.list().json(): 345s > self.kern_api.shutdown(k['id']) 345s 345s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 345s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 345s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 345s return self._req('DELETE', id) 345s ^^^^^^^^^^^^^^^^^^^^^^^ 345s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 345s response.raise_for_status() 345s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 345s 345s self = 345s 345s def raise_for_status(self): 345s """Raises :class:`HTTPError`, if one occurred.""" 345s 345s http_error_msg = "" 345s if isinstance(self.reason, bytes): 345s # We attempt to decode utf-8 first because some servers 345s # choose to localize their reason strings. If the string 345s # isn't utf-8, we fall back to iso-8859-1 for all other 345s # encodings. (See PR #3538) 345s try: 345s reason = self.reason.decode("utf-8") 345s except UnicodeDecodeError: 345s reason = self.reason.decode("iso-8859-1") 345s else: 345s reason = self.reason 345s 345s if 400 <= self.status_code < 500: 345s http_error_msg = ( 345s f"{self.status_code} Client Error: {reason} for url: {self.url}" 345s ) 345s 345s elif 500 <= self.status_code < 600: 345s http_error_msg = ( 345s f"{self.status_code} Server Error: {reason} for url: {self.url}" 345s ) 345s 345s if http_error_msg: 345s > raise HTTPError(http_error_msg, response=self) 345s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/d08e5c1e-4702-465f-bad1-c34adeccd2fd 345s 345s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 345s ----------------------------- Captured stderr call ----------------------------- 345s Traceback (most recent call last): 345s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 345s return _run_code(code, main_globals, None, 345s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 345s exec(code, run_globals) 345s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 345s from pathlib import Path 345s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 345s from glob import _StringGlobber, _no_recurse_symlinks 345s File "/usr/lib/python3.14/glob.py", line 3, in 345s import contextlib 345s File "/usr/lib/python3.14/contextlib.py", line 6, in 345s from collections import deque 345s File "/usr/lib/python3.14/collections/__init__.py", line 41, in 345s from reprlib import recursive_repr as _recursive_repr 345s File "", line 1371, in _find_and_load 345s File "", line 1342, in _find_and_load_unlocked 345s File "", line 938, in _load_unlocked 345s File "", line 755, in exec_module 345s File "", line 888, in get_code 345s File "", line 511, in _compile_bytecode 345s KeyboardInterrupt 345s ------------------------------ Captured log call ------------------------------- 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 345s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpeqks53d5/runtime/kernel-d08e5c1e-4702-465f-bad1-c34adeccd2fd.json'] 345s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57047 345s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51755 345s INFO NotebookApp:kernelmanager.py:179 Kernel started: d08e5c1e-4702-465f-bad1-c34adeccd2fd, name: python3 345s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 345s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.890000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.370000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 345s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpeqks53d5/runtime/kernel-be1d0626-d242-49e9-8138-b994563d73f1.json'] 345s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47111 345s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42143 345s INFO NotebookApp:kernelmanager.py:179 Kernel started: be1d0626-d242-49e9-8138-b994563d73f1, name: python3 345s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 345s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.840000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.380000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: be1d0626-d242-49e9-8138-b994563d73f1 345s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/be1d0626-d242-49e9-8138-b994563d73f1/interrupt (127.0.0.1) 1.570000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 345s Traceback (most recent call last): 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 345s out = await method(self, *args, **kwargs) 345s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 345s await self._async_finish_shutdown(restart=restart) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 345s await asyncio.wait_for( 345s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 345s ) 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 345s async with timeouts.timeout(timeout): 345s ~~~~~~~~~~~~~~~~^^^^^^^^^ 345s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 345s raise RuntimeError("Timeout should be used inside a task") 345s RuntimeError: Timeout should be used inside a task 345s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 345s Traceback (most recent call last): 345s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 345s yield maybe_future(km.restart_kernel(kernel_id)) 345s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 345s value = future.result() 345s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 345s raise self._exception.with_traceback(self._exception_tb) 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 345s result = coro.throw(exc) 345s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 345s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 345s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 345s yield self # This tells Task to wait for completion. 345s ^^^^^^^^^^ 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 345s future.result() 345s ~~~~~~~~~~~~~^^ 345s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 345s raise self._exception.with_traceback(self._exception_tb) 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 345s result = coro.send(None) 345s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 345s await ensure_async(kernel.restart_kernel(now=now)) 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 345s result = await obj 345s ^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 345s await self._async_shutdown_kernel(now=now, restart=True) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 345s raise e 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 345s out = await method(self, *args, **kwargs) 345s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 345s await self._async_finish_shutdown(restart=restart) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 345s await asyncio.wait_for( 345s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 345s ) 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 345s async with timeouts.timeout(timeout): 345s ~~~~~~~~~~~~~~~~^^^^^^^^^ 345s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 345s raise RuntimeError("Timeout should be used inside a task") 345s RuntimeError: Timeout should be used inside a task 345s ERROR NotebookApp:log.py:55 { 345s "Host": "localhost:12341", 345s "Accept": "*/*", 345s "User-Agent": "python-requests/2.32.5" 345s } 345s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/be1d0626-d242-49e9-8138-b994563d73f1/restart (127.0.0.1) 5.110000ms referer=None 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.410000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d08e5c1e-4702-465f-bad1-c34adeccd2fd 345s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d08e5c1e-4702-465f-bad1-c34adeccd2fd 345s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 345s Traceback (most recent call last): 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 345s out = await method(self, *args, **kwargs) 345s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 345s await self._async_finish_shutdown(restart=restart) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 345s await asyncio.wait_for( 345s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 345s ) 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 345s async with timeouts.timeout(timeout): 345s ~~~~~~~~~~~~~~~~^^^^^^^^^ 345s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 345s raise RuntimeError("Timeout should be used inside a task") 345s RuntimeError: Timeout should be used inside a task 345s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 345s Traceback (most recent call last): 345s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 345s await kernel_awaitable 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 345s result = await obj 345s ^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 345s raise e 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 345s out = await method(self, *args, **kwargs) 345s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 345s await self._async_finish_shutdown(restart=restart) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 345s await asyncio.wait_for( 345s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 345s ) 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 345s async with timeouts.timeout(timeout): 345s ~~~~~~~~~~~~~~~~^^^^^^^^^ 345s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 345s raise RuntimeError("Timeout should be used inside a task") 345s RuntimeError: Timeout should be used inside a task 345s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/d08e5c1e-4702-465f-bad1-c34adeccd2fd (127.0.0.1) 345s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/d08e5c1e-4702-465f-bad1-c34adeccd2fd', version='HTTP/1.1', remote_ip='127.0.0.1') 345s Traceback (most recent call last): 345s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 345s result = await result 345s ^^^^^^^^^^^^ 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 345s future.result() 345s ~~~~~~~~~~~~~^^ 345s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 345s yielded = self.gen.throw(exc) 345s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 345s yield maybe_future(km.shutdown_kernel(kernel_id)) 345s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 345s value = future.result() 345s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 345s raise self._exception.with_traceback(self._exception_tb) 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 345s result = coro.send(None) 345s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 345s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 345s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 345s raise km.ready.exception() # type: ignore[misc] 345s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 345s await kernel_awaitable 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 345s result = await obj 345s ^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 345s raise e 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 345s out = await method(self, *args, **kwargs) 345s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 345s await self._async_finish_shutdown(restart=restart) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 345s await asyncio.wait_for( 345s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 345s ) 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 345s async with timeouts.timeout(timeout): 345s ~~~~~~~~~~~~~~~~^^^^^^^^^ 345s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 345s raise RuntimeError("Timeout should be used inside a task") 345s RuntimeError: Timeout should be used inside a task 345s WARNING NotebookApp:handlers.py:612 Unhandled error 345s ERROR NotebookApp:log.py:55 { 345s "Host": "localhost:12341", 345s "Accept": "*/*", 345s "User-Agent": "python-requests/2.32.5" 345s } 345s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/d08e5c1e-4702-465f-bad1-c34adeccd2fd (127.0.0.1) 8.720000ms referer=None 345s --------------------------- Captured stderr teardown --------------------------- 345s Traceback (most recent call last): 345s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 345s return _run_code(code, main_globals, None, 345s "__main__", mod_spec) 345s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 345s exec(code, run_globals) 345s ~~~~^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 345s from ipykernel import kernelapp as app 345s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 345s from .connect import * # noqa: F403 345s ^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 345s import jupyter_client 345s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 345s from .asynchronous import AsyncKernelClient 345s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 345s from .client import AsyncKernelClient # noqa 345s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 345s import zmq.asyncio 345s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 345s from zmq import sugar 345s File "", line 1371, in _find_and_load 345s File "", line 1342, in _find_and_load_unlocked 345s File "", line 924, in _load_unlocked 345s File "", line 809, in module_from_spec 345s KeyboardInterrupt 345s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 345s 345s @self.addCleanup 345s def cleanup_sessions(): 345s for session in self.sess_api.list().json(): 345s > self.sess_api.delete(session['id']) 345s 345s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 345s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 345s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 345s return self._req('DELETE', id) 345s ^^^^^^^^^^^^^^^^^^^^^^^ 345s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 345s response.raise_for_status() 345s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 345s 345s self = 345s 345s def raise_for_status(self): 345s """Raises :class:`HTTPError`, if one occurred.""" 345s 345s http_error_msg = "" 345s if isinstance(self.reason, bytes): 345s # We attempt to decode utf-8 first because some servers 345s # choose to localize their reason strings. If the string 345s # isn't utf-8, we fall back to iso-8859-1 for all other 345s # encodings. (See PR #3538) 345s try: 345s reason = self.reason.decode("utf-8") 345s except UnicodeDecodeError: 345s reason = self.reason.decode("iso-8859-1") 345s else: 345s reason = self.reason 345s 345s if 400 <= self.status_code < 500: 345s http_error_msg = ( 345s f"{self.status_code} Client Error: {reason} for url: {self.url}" 345s ) 345s 345s elif 500 <= self.status_code < 600: 345s http_error_msg = ( 345s f"{self.status_code} Server Error: {reason} for url: {self.url}" 345s ) 345s 345s if http_error_msg: 345s > raise HTTPError(http_error_msg, response=self) 345s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/78a2aebf-8177-474f-a1a8-32b5c95de480 345s 345s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 345s ------------------------------ Captured log call ------------------------------- 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 345s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpamabdm0s/runtime/kernel-3a3d3797-1b41-4a1f-847b-33ca14aaaf53.json'] 345s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41357 345s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50653 345s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3a3d3797-1b41-4a1f-847b-33ca14aaaf53, name: python3 345s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 345s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 20.080000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.790000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.610000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.580000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3d9558e7-8385-4d23-b1ac-de17bf15a5c0 345s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3d9558e7-8385-4d23-b1ac-de17bf15a5c0 345s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a1e4ca35-09ff-4cb3-a8bb-2d6dc7f57b15 (127.0.0.1) 2.500000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3a3d3797-1b41-4a1f-847b-33ca14aaaf53 345s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3a3d3797-1b41-4a1f-847b-33ca14aaaf53 345s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 345s Traceback (most recent call last): 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 345s out = await method(self, *args, **kwargs) 345s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 345s await self._async_finish_shutdown(restart=restart) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 345s await asyncio.wait_for( 345s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 345s ) 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 345s async with timeouts.timeout(timeout): 345s ~~~~~~~~~~~~~~~~^^^^^^^^^ 345s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 345s raise RuntimeError("Timeout should be used inside a task") 345s RuntimeError: Timeout should be used inside a task 345s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/78a2aebf-8177-474f-a1a8-32b5c95de480 (127.0.0.1) 345s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/78a2aebf-8177-474f-a1a8-32b5c95de480', version='HTTP/1.1', remote_ip='127.0.0.1') 345s Traceback (most recent call last): 345s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 345s result = await result 345s ^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 345s yielded = self.gen.throw(exc) 345s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 345s yield maybe_future(sm.delete_session(session_id)) 345s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 345s value = future.result() 345s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 345s yielded = self.gen.send(value) 345s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 345s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 345s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 345s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 345s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 345s return _runner_map[name].run(inner) 345s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 345s return fut.result(None) 345s ~~~~~~~~~~^^^^^^ 345s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 345s return self.__get_result() 345s ~~~~~~~~~~~~~~~~~^^ 345s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 345s raise self._exception 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 345s result = coro.send(None) 345s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 345s stopper = ensure_async(km.shutdown_kernel(now, restart)) 345s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 345s return _runner_map[name].run(inner) 345s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 345s return fut.result(None) 345s ~~~~~~~~~~^^^^^^ 345s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 345s return self.__get_result() 345s ~~~~~~~~~~~~~~~~~^^ 345s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 345s raise self._exception 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 345s result = coro.send(None) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 345s raise e 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 345s out = await method(self, *args, **kwargs) 345s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 345s await self._async_finish_shutdown(restart=restart) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 345s await asyncio.wait_for( 345s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 345s ) 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 345s async with timeouts.timeout(timeout): 345s ~~~~~~~~~~~~~~~~^^^^^^^^^ 345s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 345s raise RuntimeError("Timeout should be used inside a task") 345s RuntimeError: Timeout should be used inside a task 345s WARNING NotebookApp:handlers.py:612 Unhandled error 345s ERROR NotebookApp:log.py:55 { 345s "Host": "localhost:12341", 345s "Accept": "*/*", 345s "User-Agent": "python-requests/2.32.5" 345s } 345s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/78a2aebf-8177-474f-a1a8-32b5c95de480 (127.0.0.1) 10.830000ms referer=None 345s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 345s 345s @self.addCleanup 345s def cleanup_sessions(): 345s for session in self.sess_api.list().json(): 345s > self.sess_api.delete(session['id']) 345s 345s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 345s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 345s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 345s return self._req('DELETE', id) 345s ^^^^^^^^^^^^^^^^^^^^^^^ 345s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 345s response.raise_for_status() 345s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 345s 345s self = 345s 345s def raise_for_status(self): 345s """Raises :class:`HTTPError`, if one occurred.""" 345s 345s http_error_msg = "" 345s if isinstance(self.reason, bytes): 345s # We attempt to decode utf-8 first because some servers 345s # choose to localize their reason strings. If the string 345s # isn't utf-8, we fall back to iso-8859-1 for all other 345s # encodings. (See PR #3538) 345s try: 345s reason = self.reason.decode("utf-8") 345s except UnicodeDecodeError: 345s reason = self.reason.decode("iso-8859-1") 345s else: 345s reason = self.reason 345s 345s if 400 <= self.status_code < 500: 345s http_error_msg = ( 345s f"{self.status_code} Client Error: {reason} for url: {self.url}" 345s ) 345s 345s elif 500 <= self.status_code < 600: 345s http_error_msg = ( 345s f"{self.status_code} Server Error: {reason} for url: {self.url}" 345s ) 345s 345s if http_error_msg: 345s > raise HTTPError(http_error_msg, response=self) 345s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7292372f-b7ba-4985-b00a-9fcc2b75c4cf 345s 345s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 345s ------------------------------ Captured log call ------------------------------- 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 345s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzu1p83g1/runtime/kernel-5ca9eb88-9e50-4f98-88b6-8c16a4e36218.json'] 345s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59373 345s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38199 345s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5ca9eb88-9e50-4f98-88b6-8c16a4e36218, name: python3 345s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 345s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 19.070000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.660000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.540000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.570000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 60ba6b73-afd3-4034-86ab-b3034080e0c8 345s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 60ba6b73-afd3-4034-86ab-b3034080e0c8 345s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/814472ed-722a-4dc8-be16-1a8b0c1e5dd1 (127.0.0.1) 1.900000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5ca9eb88-9e50-4f98-88b6-8c16a4e36218 345s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5ca9eb88-9e50-4f98-88b6-8c16a4e36218 345s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 345s Traceback (most recent call last): 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 345s out = await method(self, *args, **kwargs) 345s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 345s await self._async_finish_shutdown(restart=restart) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 345s await asyncio.wait_for( 345s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 345s ) 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 345s async with timeouts.timeout(timeout): 345s ~~~~~~~~~~~~~~~~^^^^^^^^^ 345s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 345s raise RuntimeError("Timeout should be used inside a task") 345s RuntimeError: Timeout should be used inside a task 345s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 345s Traceback (most recent call last): 345s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 345s await kernel_awaitable 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 345s result = await obj 345s ^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 345s raise e 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 345s out = await method(self, *args, **kwargs) 345s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 345s await self._async_finish_shutdown(restart=restart) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 345s await asyncio.wait_for( 345s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 345s ) 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 345s async with timeouts.timeout(timeout): 345s ~~~~~~~~~~~~~~~~^^^^^^^^^ 345s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 345s raise RuntimeError("Timeout should be used inside a task") 345s RuntimeError: Timeout should be used inside a task 345s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7292372f-b7ba-4985-b00a-9fcc2b75c4cf (127.0.0.1) 345s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7292372f-b7ba-4985-b00a-9fcc2b75c4cf', version='HTTP/1.1', remote_ip='127.0.0.1') 345s Traceback (most recent call last): 345s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 345s result = await result 345s ^^^^^^^^^^^^ 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 345s future.result() 345s ~~~~~~~~~~~~~^^ 345s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 345s yielded = self.gen.throw(exc) 345s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 345s yield maybe_future(sm.delete_session(session_id)) 345s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 345s value = future.result() 345s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 345s yielded = self.gen.throw(exc) 345s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 345s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 345s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 345s value = future.result() 345s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 345s raise self._exception.with_traceback(self._exception_tb) 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 345s result = coro.send(None) 345s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 345s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 345s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 345s raise km.ready.exception() # type: ignore[misc] 345s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 345s await kernel_awaitable 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 345s result = await obj 345s ^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 345s raise e 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 345s out = await method(self, *args, **kwargs) 345s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 345s await self._async_finish_shutdown(restart=restart) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 345s await asyncio.wait_for( 345s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 345s ) 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 345s async with timeouts.timeout(timeout): 345s ~~~~~~~~~~~~~~~~^^^^^^^^^ 345s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 345s raise RuntimeError("Timeout should be used inside a task") 345s RuntimeError: Timeout should be used inside a task 345s WARNING NotebookApp:handlers.py:612 Unhandled error 345s ERROR NotebookApp:log.py:55 { 345s "Host": "localhost:12341", 345s "Accept": "*/*", 345s "User-Agent": "python-requests/2.32.5" 345s } 345s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/7292372f-b7ba-4985-b00a-9fcc2b75c4cf (127.0.0.1) 9.560000ms referer=None 345s =================================== FAILURES =================================== 345s ______________________ KernelAPITest.test_default_kernel _______________________ 345s 345s self = 345s 345s def tearDown(self): 345s for k in self.kern_api.list().json(): 345s > self.kern_api.shutdown(k['id']) 345s 345s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 345s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 345s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 345s return self._req('DELETE', id) 345s ^^^^^^^^^^^^^^^^^^^^^^^ 345s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 345s response.raise_for_status() 345s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 345s 345s self = 345s 345s def raise_for_status(self): 345s """Raises :class:`HTTPError`, if one occurred.""" 345s 345s http_error_msg = "" 345s if isinstance(self.reason, bytes): 345s # We attempt to decode utf-8 first because some servers 345s # choose to localize their reason strings. If the string 345s # isn't utf-8, we fall back to iso-8859-1 for all other 345s # encodings. (See PR #3538) 345s try: 345s reason = self.reason.decode("utf-8") 345s except UnicodeDecodeError: 345s reason = self.reason.decode("iso-8859-1") 345s else: 345s reason = self.reason 345s 345s if 400 <= self.status_code < 500: 345s http_error_msg = ( 345s f"{self.status_code} Client Error: {reason} for url: {self.url}" 345s ) 345s 345s elif 500 <= self.status_code < 600: 345s http_error_msg = ( 345s f"{self.status_code} Server Error: {reason} for url: {self.url}" 345s ) 345s 345s if http_error_msg: 345s > raise HTTPError(http_error_msg, response=self) 345s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/c00fe4b8-a944-4fa4-accf-729d8073436c 345s 345s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 345s ------------------------------ Captured log setup ------------------------------ 345s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmphpxzpu9j/config', '/tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmphpxzpu9j/etc/jupyter'] for config files 345s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmphpxzpu9j/etc/jupyter 345s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 345s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 345s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmphpxzpu9j/config 345s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmphpxzpu9j/etc/jupyter 345s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 345s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 345s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmphpxzpu9j/config 345s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmphpxzpu9j/notebooks 345s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 345s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 345s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 345s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 345s WARNING NotebookApp:handlers.py:612 Forbidden 345s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (127.0.0.1) 1.460000ms referer=None 345s ------------------------------ Captured log call ------------------------------- 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 345s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphpxzpu9j/runtime/kernel-c00fe4b8-a944-4fa4-accf-729d8073436c.json'] 345s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60783 345s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57851 345s INFO NotebookApp:kernelmanager.py:179 Kernel started: c00fe4b8-a944-4fa4-accf-729d8073436c, name: python3 345s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 345s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 71.430000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.710000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c00fe4b8-a944-4fa4-accf-729d8073436c 345s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c00fe4b8-a944-4fa4-accf-729d8073436c 345s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 345s Traceback (most recent call last): 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 345s out = await method(self, *args, **kwargs) 345s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 345s await self._async_finish_shutdown(restart=restart) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 345s await asyncio.wait_for( 345s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 345s ) 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 345s async with timeouts.timeout(timeout): 345s ~~~~~~~~~~~~~~~~^^^^^^^^^ 345s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 345s raise RuntimeError("Timeout should be used inside a task") 345s RuntimeError: Timeout should be used inside a task 345s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/c00fe4b8-a944-4fa4-accf-729d8073436c (127.0.0.1) 345s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/c00fe4b8-a944-4fa4-accf-729d8073436c', version='HTTP/1.1', remote_ip='127.0.0.1') 345s Traceback (most recent call last): 345s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 345s result = await result 345s ^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 345s yielded = ctx_run(next, result) 345s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 345s yield maybe_future(km.shutdown_kernel(kernel_id)) 345s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 345s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 345s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 345s return _runner_map[name].run(inner) 345s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 345s return fut.result(None) 345s ~~~~~~~~~~^^^^^^ 345s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 345s return self.__get_result() 345s ~~~~~~~~~~~~~~~~~^^ 345s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 345s raise self._exception 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 345s result = coro.send(None) 345s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 345s stopper = ensure_async(km.shutdown_kernel(now, restart)) 345s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 345s return _runner_map[name].run(inner) 345s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 345s return fut.result(None) 345s ~~~~~~~~~~^^^^^^ 345s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 345s return self.__get_result() 345s ~~~~~~~~~~~~~~~~~^^ 345s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 345s raise self._exception 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 345s result = coro.send(None) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 345s raise e 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 345s out = await method(self, *args, **kwargs) 345s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 345s await self._async_finish_shutdown(restart=restart) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 345s await asyncio.wait_for( 345s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 345s ) 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 345s async with timeouts.timeout(timeout): 345s ~~~~~~~~~~~~~~~~^^^^^^^^^ 345s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 345s raise RuntimeError("Timeout should be used inside a task") 345s RuntimeError: Timeout should be used inside a task 345s WARNING NotebookApp:handlers.py:612 Unhandled error 345s ERROR NotebookApp:log.py:55 { 345s "Host": "localhost:12341", 345s "Accept": "*/*", 345s "User-Agent": "python-requests/2.32.5" 345s } 345s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/c00fe4b8-a944-4fa4-accf-729d8073436c (127.0.0.1) 13.200000ms referer=None 345s --------------------------- Captured stderr teardown --------------------------- 345s Traceback (most recent call last): 345s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 345s return _run_code(code, main_globals, None, 345s "__main__", mod_spec) 345s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 345s exec(code, run_globals) 345s ~~~~^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 345s from pathlib import Path 345s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 345s from glob import _StringGlobber, _no_recurse_symlinks 345s File "/usr/lib/python3.14/glob.py", line 5, in 345s import re 345s File "/usr/lib/python3.14/re/__init__.py", line 126, in 345s from . import _compiler, _parser 345s File "/usr/lib/python3.14/re/_compiler.py", line 13, in 345s import _sre 345s KeyboardInterrupt 345s ______________________ KernelAPITest.test_kernel_handler _______________________ 345s 345s self = 345s 345s def test_kernel_handler(self): 345s # GET kernel with given id 345s kid = self.kern_api.start().json()['id'] 345s r = self.kern_api.get(kid) 345s kern1 = r.json() 345s self.assertEqual(r.status_code, 200) 345s assert isinstance(kern1, dict) 345s self.assertIn('id', kern1) 345s self.assertEqual(kern1['id'], kid) 345s 345s # Request a bad kernel id and check that a JSON 345s # message is returned! 345s bad_id = '111-111-111-111-111' 345s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 345s self.kern_api.get(bad_id) 345s 345s # DELETE kernel with id 345s > r = self.kern_api.shutdown(kid) 345s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s 345s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 345s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 345s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 345s return self._req('DELETE', id) 345s ^^^^^^^^^^^^^^^^^^^^^^^ 345s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 345s response.raise_for_status() 345s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 345s 345s self = 345s 345s def raise_for_status(self): 345s """Raises :class:`HTTPError`, if one occurred.""" 345s 345s http_error_msg = "" 345s if isinstance(self.reason, bytes): 345s # We attempt to decode utf-8 first because some servers 345s # choose to localize their reason strings. If the string 345s # isn't utf-8, we fall back to iso-8859-1 for all other 345s # encodings. (See PR #3538) 345s try: 345s reason = self.reason.decode("utf-8") 345s except UnicodeDecodeError: 345s reason = self.reason.decode("iso-8859-1") 345s else: 345s reason = self.reason 345s 345s if 400 <= self.status_code < 500: 345s http_error_msg = ( 345s f"{self.status_code} Client Error: {reason} for url: {self.url}" 345s ) 345s 345s elif 500 <= self.status_code < 600: 345s http_error_msg = ( 345s f"{self.status_code} Server Error: {reason} for url: {self.url}" 345s ) 345s 345s if http_error_msg: 345s > raise HTTPError(http_error_msg, response=self) 345s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/06253f15-8fbd-4b09-a57b-07246693a337 345s 345s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 345s ------------------------------ Captured log call ------------------------------- 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 345s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphpxzpu9j/runtime/kernel-06253f15-8fbd-4b09-a57b-07246693a337.json'] 345s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46421 345s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59685 345s INFO NotebookApp:kernelmanager.py:179 Kernel started: 06253f15-8fbd-4b09-a57b-07246693a337, name: python3 345s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 345s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 20.890000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/06253f15-8fbd-4b09-a57b-07246693a337 (127.0.0.1) 1.430000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (127.0.0.1): Kernel does not exist: 111-111-111-111-111 345s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 345s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (127.0.0.1) 1.580000ms referer=None 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 06253f15-8fbd-4b09-a57b-07246693a337 345s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 06253f15-8fbd-4b09-a57b-07246693a337 345s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 345s Traceback (most recent call last): 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 345s out = await method(self, *args, **kwargs) 345s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 345s await self._async_finish_shutdown(restart=restart) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 345s await asyncio.wait_for( 345s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 345s ) 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 345s async with timeouts.timeout(timeout): 345s ~~~~~~~~~~~~~~~~^^^^^^^^^ 345s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 345s raise RuntimeError("Timeout should be used inside a task") 345s RuntimeError: Timeout should be used inside a task 345s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/06253f15-8fbd-4b09-a57b-07246693a337 (127.0.0.1) 345s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/06253f15-8fbd-4b09-a57b-07246693a337', version='HTTP/1.1', remote_ip='127.0.0.1') 345s Traceback (most recent call last): 345s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 345s result = await result 345s ^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 345s yielded = ctx_run(next, result) 345s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 345s yield maybe_future(km.shutdown_kernel(kernel_id)) 345s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 345s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 345s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 345s return _runner_map[name].run(inner) 345s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 345s return fut.result(None) 345s ~~~~~~~~~~^^^^^^ 345s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 345s return self.__get_result() 345s ~~~~~~~~~~~~~~~~~^^ 345s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 345s raise self._exception 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 345s result = coro.send(None) 345s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 345s stopper = ensure_async(km.shutdown_kernel(now, restart)) 345s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 345s return _runner_map[name].run(inner) 345s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 345s return fut.result(None) 345s ~~~~~~~~~~^^^^^^ 345s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 345s return self.__get_result() 345s ~~~~~~~~~~~~~~~~~^^ 345s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 345s raise self._exception 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 345s result = coro.send(None) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 345s raise e 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 345s out = await method(self, *args, **kwargs) 345s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 345s await self._async_finish_shutdown(restart=restart) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 345s await asyncio.wait_for( 345s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 345s ) 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 345s async with timeouts.timeout(timeout): 345s ~~~~~~~~~~~~~~~~^^^^^^^^^ 345s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 345s raise RuntimeError("Timeout should be used inside a task") 345s RuntimeError: Timeout should be used inside a task 345s WARNING NotebookApp:handlers.py:612 Unhandled error 345s ERROR NotebookApp:log.py:55 { 345s "Host": "localhost:12341", 345s "Accept": "*/*", 345s "User-Agent": "python-requests/2.32.5" 345s } 345s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/06253f15-8fbd-4b09-a57b-07246693a337 (127.0.0.1) 9.990000ms referer=None 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.430000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c00fe4b8-a944-4fa4-accf-729d8073436c 345s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c00fe4b8-a944-4fa4-accf-729d8073436c 345s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/c00fe4b8-a944-4fa4-accf-729d8073436c (127.0.0.1) 2.110000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 06253f15-8fbd-4b09-a57b-07246693a337 345s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 06253f15-8fbd-4b09-a57b-07246693a337 345s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/06253f15-8fbd-4b09-a57b-07246693a337 (127.0.0.1) 3.010000ms 345s --------------------------- Captured stderr teardown --------------------------- 345s Traceback (most recent call last): 345s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 345s return _run_code(code, main_globals, None, 345s "__main__", mod_spec) 345s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 345s exec(code, run_globals) 345s ~~~~^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 345s from pathlib import Path 345s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 345s from glob import _StringGlobber, _no_recurse_symlinks 345s File "/usr/lib/python3.14/glob.py", line 5, in 345s import re 345s File "/usr/lib/python3.14/re/__init__.py", line 303, in 345s _special_chars_map = {i: '\\' + chr(i) for i in b'()[]{}?*+-|^$\\.&~# \t\n\r\v\f'} 345s ~~~^^^ 345s KeyboardInterrupt 345s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 345s 345s self = 345s 345s def test_main_kernel_handler(self): 345s # POST request 345s r = self.kern_api.start() 345s kern1 = r.json() 345s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 345s self.assertEqual(r.status_code, 201) 345s self.assertIsInstance(kern1, dict) 345s 345s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 345s expected_csp = '; '.join([ 345s "frame-ancestors 'self'", 345s 'report-uri ' + report_uri, 345s "default-src 'none'" 345s ]) 345s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 345s 345s # GET request 345s r = self.kern_api.list() 345s self.assertEqual(r.status_code, 200) 345s assert isinstance(r.json(), list) 345s self.assertEqual(r.json()[0]['id'], kern1['id']) 345s self.assertEqual(r.json()[0]['name'], kern1['name']) 345s 345s # create another kernel and check that they both are added to the 345s # list of kernels from a GET request 345s kern2 = self.kern_api.start().json() 345s assert isinstance(kern2, dict) 345s r = self.kern_api.list() 345s kernels = r.json() 345s self.assertEqual(r.status_code, 200) 345s assert isinstance(kernels, list) 345s self.assertEqual(len(kernels), 2) 345s 345s # Interrupt a kernel 345s r = self.kern_api.interrupt(kern2['id']) 345s self.assertEqual(r.status_code, 204) 345s 345s # Restart a kernel 345s > r = self.kern_api.restart(kern2['id']) 345s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s 345s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 345s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 345s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 345s return self._req('POST', url_path_join(id, 'restart')) 345s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 345s response.raise_for_status() 345s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 345s 345s self = 345s 345s def raise_for_status(self): 345s """Raises :class:`HTTPError`, if one occurred.""" 345s 345s http_error_msg = "" 345s if isinstance(self.reason, bytes): 345s # We attempt to decode utf-8 first because some servers 345s # choose to localize their reason strings. If the string 345s # isn't utf-8, we fall back to iso-8859-1 for all other 345s # encodings. (See PR #3538) 345s try: 345s reason = self.reason.decode("utf-8") 345s except UnicodeDecodeError: 345s reason = self.reason.decode("iso-8859-1") 345s else: 345s reason = self.reason 345s 345s if 400 <= self.status_code < 500: 345s http_error_msg = ( 345s f"{self.status_code} Client Error: {reason} for url: {self.url}" 345s ) 345s 345s elif 500 <= self.status_code < 600: 345s http_error_msg = ( 345s f"{self.status_code} Server Error: {reason} for url: {self.url}" 345s ) 345s 345s if http_error_msg: 345s > raise HTTPError(http_error_msg, response=self) 345s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/5548590b-5a21-4cbc-8989-8d805c05cbf4/restart 345s 345s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 345s ----------------------------- Captured stderr call ----------------------------- 345s Traceback (most recent call last): 345s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 345s return _run_code(code, main_globals, None, 345s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 345s exec(code, run_globals) 345s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 345s from pathlib import Path 345s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 345s from glob import _StringGlobber, _no_recurse_symlinks 345s File "/usr/lib/python3.14/glob.py", line 3, in 345s import contextlib 345s File "/usr/lib/python3.14/contextlib.py", line 7, in 345s from functools import wraps 345s File "/usr/lib/python3.14/functools.py", line 226, in 345s from _functools import cmp_to_key 345s KeyboardInterrupt 345s ------------------------------ Captured log call ------------------------------- 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 345s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphpxzpu9j/runtime/kernel-9d748f1f-0dd3-4a02-bcc9-9d40d1c42860.json'] 345s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41247 345s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34177 345s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9d748f1f-0dd3-4a02-bcc9-9d40d1c42860, name: python3 345s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 345s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 20.610000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.340000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 345s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphpxzpu9j/runtime/kernel-5548590b-5a21-4cbc-8989-8d805c05cbf4.json'] 345s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34203 345s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35325 345s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5548590b-5a21-4cbc-8989-8d805c05cbf4, name: python3 345s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 345s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 19.980000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.360000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 5548590b-5a21-4cbc-8989-8d805c05cbf4 345s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/5548590b-5a21-4cbc-8989-8d805c05cbf4/interrupt (127.0.0.1) 2.020000ms 345s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 345s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 345s Traceback (most recent call last): 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 345s out = await method(self, *args, **kwargs) 345s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 345s await self._async_finish_shutdown(restart=restart) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 345s await asyncio.wait_for( 345s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 345s ) 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 345s async with timeouts.timeout(timeout): 345s ~~~~~~~~~~~~~~~~^^^^^^^^^ 345s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 345s raise RuntimeError("Timeout should be used inside a task") 345s RuntimeError: Timeout should be used inside a task 345s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 345s Traceback (most recent call last): 345s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 345s yield maybe_future(km.restart_kernel(kernel_id)) 345s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 345s value = future.result() 345s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 345s raise self._exception.with_traceback(self._exception_tb) 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 345s result = coro.send(None) 345s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 345s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 345s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 345s return _runner_map[name].run(inner) 345s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 345s return fut.result(None) 345s ~~~~~~~~~~^^^^^^ 345s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 345s return self.__get_result() 345s ~~~~~~~~~~~~~~~~~^^ 345s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 345s raise self._exception 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 345s result = coro.send(None) 345s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 345s await ensure_async(kernel.restart_kernel(now=now)) 345s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 345s return _runner_map[name].run(inner) 345s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 345s return fut.result(None) 345s ~~~~~~~~~~^^^^^^ 345s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 345s return self.__get_result() 345s ~~~~~~~~~~~~~~~~~^^ 345s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 345s raise self._exception 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 345s result = coro.send(None) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 345s await self._async_shutdown_kernel(now=now, restart=True) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 345s raise e 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 345s out = await method(self, *args, **kwargs) 345s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 345s await self._async_finish_shutdown(restart=restart) 345s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 345s await asyncio.wait_for( 345s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 345s ) 345s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 345s async with timeouts.timeout(timeout): 345s ~~~~~~~~~~~~~~~~^^^^^^^^^ 345s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 345s /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 345s gc.collect() 345s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:log.py:55 { 346s "Host": "localhost:12341", 346s "Accept": "*/*", 346s "User-Agent": "python-requests/2.32.5" 346s } 346s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/5548590b-5a21-4cbc-8989-8d805c05cbf4/restart (127.0.0.1) 7.170000ms referer=None 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 2.420000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9d748f1f-0dd3-4a02-bcc9-9d40d1c42860 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9d748f1f-0dd3-4a02-bcc9-9d40d1c42860 346s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/9d748f1f-0dd3-4a02-bcc9-9d40d1c42860 (127.0.0.1) 346s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/9d748f1f-0dd3-4a02-bcc9-9d40d1c42860', version='HTTP/1.1', remote_ip='127.0.0.1') 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 346s result = await result 346s ^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 346s yielded = ctx_run(next, result) 346s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 346s yield maybe_future(km.shutdown_kernel(kernel_id)) 346s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 346s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 346s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 346s return _runner_map[name].run(inner) 346s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 346s return fut.result(None) 346s ~~~~~~~~~~^^^^^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 346s return self.__get_result() 346s ~~~~~~~~~~~~~~~~~^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 346s raise self._exception 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 346s result = coro.send(None) 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 346s stopper = ensure_async(km.shutdown_kernel(now, restart)) 346s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 346s return _runner_map[name].run(inner) 346s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 346s return fut.result(None) 346s ~~~~~~~~~~^^^^^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 346s return self.__get_result() 346s ~~~~~~~~~~~~~~~~~^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 346s raise self._exception 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 346s result = coro.send(None) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s WARNING NotebookApp:handlers.py:612 Unhandled error 346s ERROR NotebookApp:log.py:55 { 346s "Host": "localhost:12341", 346s "Accept": "*/*", 346s "User-Agent": "python-requests/2.32.5" 346s } 346s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/9d748f1f-0dd3-4a02-bcc9-9d40d1c42860 (127.0.0.1) 9.740000ms referer=None 346s ________________________ KernelAPITest.test_no_kernels _________________________ 346s 346s self = 346s 346s def test_no_kernels(self): 346s """Make sure there are no kernels running at the start""" 346s kernels = self.kern_api.list().json() 346s > self.assertEqual(kernels, []) 346s E AssertionError: Lists differ: [{'id': '9d748f1f-0dd3-4a02-bcc9-9d40d1c42[281 chars]: 0}] != [] 346s E 346s E First list contains 2 additional elements. 346s E First extra element 0: 346s E {'id': '9d748f1f-0dd3-4a02-bcc9-9d40d1c42860', 'name': 'python3', 'last_activity': '2026-01-22T18:29:02.835133Z', 'execution_state': 'starting', 'connections': 0} 346s E 346s E + [] 346s E - [{'connections': 0, 346s E - 'execution_state': 'starting', 346s E - 'id': '9d748f1f-0dd3-4a02-bcc9-9d40d1c42860', 346s E - 'last_activity': '2026-01-22T18:29:02.835133Z', 346s E - 'name': 'python3'}, 346s E - {'connections': 0, 346s E - 'execution_state': 'starting', 346s E - 'id': '5548590b-5a21-4cbc-8989-8d805c05cbf4', 346s E - 'last_activity': '2026-01-22T18:29:02.864097Z', 346s E - 'name': 'python3'}] 346s 346s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 346s ------------------------------ Captured log call ------------------------------- 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.360000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.280000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9d748f1f-0dd3-4a02-bcc9-9d40d1c42860 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9d748f1f-0dd3-4a02-bcc9-9d40d1c42860 346s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/9d748f1f-0dd3-4a02-bcc9-9d40d1c42860 (127.0.0.1) 2.080000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5548590b-5a21-4cbc-8989-8d805c05cbf4 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5548590b-5a21-4cbc-8989-8d805c05cbf4 346s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/5548590b-5a21-4cbc-8989-8d805c05cbf4 (127.0.0.1) 2.150000ms 346s ---------------------------- Captured log teardown ----------------------------- 346s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 346s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 346s _____________________ AsyncKernelAPITest.test_connections ______________________ 346s 346s self = 346s 346s def tearDown(self): 346s for k in self.kern_api.list().json(): 346s > self.kern_api.shutdown(k['id']) 346s 346s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 346s return self._req('DELETE', id) 346s ^^^^^^^^^^^^^^^^^^^^^^^ 346s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 346s response.raise_for_status() 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s 346s self = 346s 346s def raise_for_status(self): 346s """Raises :class:`HTTPError`, if one occurred.""" 346s 346s http_error_msg = "" 346s if isinstance(self.reason, bytes): 346s # We attempt to decode utf-8 first because some servers 346s # choose to localize their reason strings. If the string 346s # isn't utf-8, we fall back to iso-8859-1 for all other 346s # encodings. (See PR #3538) 346s try: 346s reason = self.reason.decode("utf-8") 346s except UnicodeDecodeError: 346s reason = self.reason.decode("iso-8859-1") 346s else: 346s reason = self.reason 346s 346s if 400 <= self.status_code < 500: 346s http_error_msg = ( 346s f"{self.status_code} Client Error: {reason} for url: {self.url}" 346s ) 346s 346s elif 500 <= self.status_code < 600: 346s http_error_msg = ( 346s f"{self.status_code} Server Error: {reason} for url: {self.url}" 346s ) 346s 346s if http_error_msg: 346s > raise HTTPError(http_error_msg, response=self) 346s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/0a7def44-4df9-4051-8682-735c648e30aa 346s 346s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 346s ------------------------------ Captured log setup ------------------------------ 346s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpeqks53d5/config', '/tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpeqks53d5/etc/jupyter'] for config files 346s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpeqks53d5/etc/jupyter 346s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 346s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 346s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpeqks53d5/config 346s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpeqks53d5/etc/jupyter 346s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 346s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 346s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpeqks53d5/config 346s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpeqks53d5/notebooks 346s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 346s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 346s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 346s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 346s WARNING NotebookApp:handlers.py:612 Forbidden 346s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (127.0.0.1) 1.140000ms referer=None 346s ------------------------------ Captured log call ------------------------------- 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 346s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpeqks53d5/runtime/kernel-0a7def44-4df9-4051-8682-735c648e30aa.json'] 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36407 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33365 346s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0a7def44-4df9-4051-8682-735c648e30aa, name: python3 346s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 346s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 19.450000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/0a7def44-4df9-4051-8682-735c648e30aa (127.0.0.1) 1.390000ms 346s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/0a7def44-4df9-4051-8682-735c648e30aa/channels 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 346s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 0a7def44-4df9-4051-8682-735c648e30aa 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47663 346s DEBUG NotebookApp:kernelmanager.py:423 activity on 0a7def44-4df9-4051-8682-735c648e30aa: status (starting) 346s DEBUG NotebookApp:kernelmanager.py:423 activity on 0a7def44-4df9-4051-8682-735c648e30aa: status (busy) 346s DEBUG NotebookApp:kernelmanager.py:423 activity on 0a7def44-4df9-4051-8682-735c648e30aa: status (idle) 346s DEBUG NotebookApp:handlers.py:306 Received kernel info: {'status': 'ok', 'protocol_version': '5.3', 'implementation': 'ipython', 'implementation_version': '8.35.0', 'language_info': {'name': 'python', 'version': '3.14.2', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.14.2 (main, Dec 6 2025, 13:20:08) [GCC 15.2.0]\nType 'copyright', 'credits' or 'license' for more information\nIPython 8.35.0 -- An enhanced Interactive Python. Type '?' for help.\n", 'help_links': [{'text': 'Python Reference', 'url': 'https://docs.python.org/3.14'}, {'text': 'IPython Reference', 'url': 'https://ipython.org/documentation.html'}, {'text': 'NumPy Reference', 'url': 'https://docs.scipy.org/doc/numpy/reference/'}, {'text': 'SciPy Reference', 'url': 'https://docs.scipy.org/doc/scipy/reference/'}, {'text': 'Matplotlib Reference', 'url': 'https://matplotlib.org/contents.html'}, {'text': 'SymPy Reference', 'url': 'http://docs.sympy.org/latest/index.html'}, {'text': 'pandas Reference', 'url': 'https://pandas.pydata.org/pandas-docs/stable/'}]} 346s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 0a7def44-4df9-4051-8682-735c648e30aa) to 5.4 (client). 346s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/0a7def44-4df9-4051-8682-735c648e30aa/channels (127.0.0.1) 861.720000ms 346s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/0a7def44-4df9-4051-8682-735c648e30aa/channels 346s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 0a7def44-4df9-4051-8682-735c648e30aa 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33365 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47663 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36407 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47949 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47663 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36407 346s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 346s Setting websocket_ping_timeout=30000 346s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 0a7def44-4df9-4051-8682-735c648e30aa 346s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 0a7def44-4df9-4051-8682-735c648e30aa 346s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 0a7def44-4df9-4051-8682-735c648e30aa 346s DEBUG NotebookApp:kernelmanager.py:423 activity on 0a7def44-4df9-4051-8682-735c648e30aa: status (busy) 346s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: 0a7def44-4df9-4051-8682-735c648e30aa 346s DEBUG NotebookApp:handlers.py:197 Nudge: resolving shell future: 0a7def44-4df9-4051-8682-735c648e30aa 346s DEBUG NotebookApp:kernelmanager.py:423 activity on 0a7def44-4df9-4051-8682-735c648e30aa: status (idle) 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/0a7def44-4df9-4051-8682-735c648e30aa (127.0.0.1) 2.850000ms 346s DEBUG NotebookApp:kernelmanager.py:423 activity on 0a7def44-4df9-4051-8682-735c648e30aa: status (busy) 346s DEBUG NotebookApp:kernelmanager.py:423 activity on 0a7def44-4df9-4051-8682-735c648e30aa: status (idle) 346s DEBUG NotebookApp:handlers.py:579 Websocket closed 0a7def44-4df9-4051-8682-735c648e30aa:8afc87fe-aa9695bb1963ff769854d958 346s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 0a7def44-4df9-4051-8682-735c648e30aa:8afc87fe-aa9695bb1963ff769854d958 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0a7def44-4df9-4051-8682-735c648e30aa 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/0a7def44-4df9-4051-8682-735c648e30aa (127.0.0.1) 1.340000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/0a7def44-4df9-4051-8682-735c648e30aa (127.0.0.1) 1.340000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.390000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0a7def44-4df9-4051-8682-735c648e30aa 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0a7def44-4df9-4051-8682-735c648e30aa 346s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 346s await kernel_awaitable 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 346s result = await obj 346s ^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/0a7def44-4df9-4051-8682-735c648e30aa (127.0.0.1) 346s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/0a7def44-4df9-4051-8682-735c648e30aa', version='HTTP/1.1', remote_ip='127.0.0.1') 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 346s result = await result 346s ^^^^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 346s future.result() 346s ~~~~~~~~~~~~~^^ 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 346s yielded = self.gen.throw(exc) 346s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 346s yield maybe_future(km.shutdown_kernel(kernel_id)) 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 346s value = future.result() 346s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 346s raise self._exception.with_traceback(self._exception_tb) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 346s result = coro.send(None) 346s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 346s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 346s raise km.ready.exception() # type: ignore[misc] 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 346s await kernel_awaitable 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 346s result = await obj 346s ^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s WARNING NotebookApp:handlers.py:612 Unhandled error 346s ERROR NotebookApp:log.py:55 { 346s "Host": "localhost:12341", 346s "Accept": "*/*", 346s "User-Agent": "python-requests/2.32.5" 346s } 346s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/0a7def44-4df9-4051-8682-735c648e30aa (127.0.0.1) 8.720000ms referer=None 346s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 346s 346s self = 346s 346s def tearDown(self): 346s for k in self.kern_api.list().json(): 346s > self.kern_api.shutdown(k['id']) 346s 346s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 346s return self._req('DELETE', id) 346s ^^^^^^^^^^^^^^^^^^^^^^^ 346s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 346s response.raise_for_status() 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s 346s self = 346s 346s def raise_for_status(self): 346s """Raises :class:`HTTPError`, if one occurred.""" 346s 346s http_error_msg = "" 346s if isinstance(self.reason, bytes): 346s # We attempt to decode utf-8 first because some servers 346s # choose to localize their reason strings. If the string 346s # isn't utf-8, we fall back to iso-8859-1 for all other 346s # encodings. (See PR #3538) 346s try: 346s reason = self.reason.decode("utf-8") 346s except UnicodeDecodeError: 346s reason = self.reason.decode("iso-8859-1") 346s else: 346s reason = self.reason 346s 346s if 400 <= self.status_code < 500: 346s http_error_msg = ( 346s f"{self.status_code} Client Error: {reason} for url: {self.url}" 346s ) 346s 346s elif 500 <= self.status_code < 600: 346s http_error_msg = ( 346s f"{self.status_code} Server Error: {reason} for url: {self.url}" 346s ) 346s 346s if http_error_msg: 346s > raise HTTPError(http_error_msg, response=self) 346s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/6ca9b2c4-c42b-43e1-ad07-523e6c18bd9c 346s 346s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 346s ------------------------------ Captured log call ------------------------------- 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 346s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpeqks53d5/runtime/kernel-6ca9b2c4-c42b-43e1-ad07-523e6c18bd9c.json'] 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33339 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60417 346s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6ca9b2c4-c42b-43e1-ad07-523e6c18bd9c, name: python3 346s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 346s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.830000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.370000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0a7def44-4df9-4051-8682-735c648e30aa 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0a7def44-4df9-4051-8682-735c648e30aa 346s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/0a7def44-4df9-4051-8682-735c648e30aa (127.0.0.1) 1.590000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6ca9b2c4-c42b-43e1-ad07-523e6c18bd9c 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6ca9b2c4-c42b-43e1-ad07-523e6c18bd9c 346s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 346s await kernel_awaitable 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 346s result = await obj 346s ^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/6ca9b2c4-c42b-43e1-ad07-523e6c18bd9c (127.0.0.1) 346s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/6ca9b2c4-c42b-43e1-ad07-523e6c18bd9c', version='HTTP/1.1', remote_ip='127.0.0.1') 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 346s result = await result 346s ^^^^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 346s future.result() 346s ~~~~~~~~~~~~~^^ 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 346s yielded = self.gen.throw(exc) 346s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 346s yield maybe_future(km.shutdown_kernel(kernel_id)) 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 346s value = future.result() 346s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 346s raise self._exception.with_traceback(self._exception_tb) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 346s result = coro.send(None) 346s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 346s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 346s raise km.ready.exception() # type: ignore[misc] 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 346s await kernel_awaitable 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 346s result = await obj 346s ^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s WARNING NotebookApp:handlers.py:612 Unhandled error 346s ERROR NotebookApp:log.py:55 { 346s "Host": "localhost:12341", 346s "Accept": "*/*", 346s "User-Agent": "python-requests/2.32.5" 346s } 346s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/6ca9b2c4-c42b-43e1-ad07-523e6c18bd9c (127.0.0.1) 8.970000ms referer=None 346s --------------------------- Captured stderr teardown --------------------------- 346s Traceback (most recent call last): 346s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 346s 346s self = 346s 346s def test_kernel_handler(self): 346s # GET kernel with given id 346s kid = self.kern_api.start().json()['id'] 346s r = self.kern_api.get(kid) 346s kern1 = r.json() 346s self.assertEqual(r.status_code, 200) 346s assert isinstance(kern1, dict) 346s self.assertIn('id', kern1) 346s self.assertEqual(kern1['id'], kid) 346s 346s # Request a bad kernel id and check that a JSON 346s # message is returned! 346s bad_id = '111-111-111-111-111' 346s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 346s self.kern_api.get(bad_id) 346s 346s # DELETE kernel with id 346s > r = self.kern_api.shutdown(kid) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s 346s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 346s return self._req('DELETE', id) 346s ^^^^^^^^^^^^^^^^^^^^^^^ 346s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 346s response.raise_for_status() 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s 346s self = 346s 346s def raise_for_status(self): 346s """Raises :class:`HTTPError`, if one occurred.""" 346s 346s http_error_msg = "" 346s if isinstance(self.reason, bytes): 346s # We attempt to decode utf-8 first because some servers 346s # choose to localize their reason strings. If the string 346s # isn't utf-8, we fall back to iso-8859-1 for all other 346s # encodings. (See PR #3538) 346s try: 346s reason = self.reason.decode("utf-8") 346s except UnicodeDecodeError: 346s reason = self.reason.decode("iso-8859-1") 346s else: 346s reason = self.reason 346s 346s if 400 <= self.status_code < 500: 346s http_error_msg = ( 346s f"{self.status_code} Client Error: {reason} for url: {self.url}" 346s ) 346s 346s elif 500 <= self.status_code < 600: 346s http_error_msg = ( 346s f"{self.status_code} Server Error: {reason} for url: {self.url}" 346s ) 346s 346s if http_error_msg: 346s > raise HTTPError(http_error_msg, response=self) 346s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/43d090e1-1686-4726-a7c9-7e233b248487 346s 346s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 346s ---------------------------- Captured stderr setup ----------------------------- 346s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 346s return _run_code(code, main_globals, None, 346s "__main__", mod_spec) 346s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 346s exec(code, run_globals) 346s ~~~~^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 346s from pathlib import Path 346s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 346s from glob import _StringGlobber, _no_recurse_symlinks 346s File "/usr/lib/python3.14/glob.py", line 5, in 346s import re 346s File "/usr/lib/python3.14/re/__init__.py", line 125, in 346s import enum 346s File "/usr/lib/python3.14/enum.py", line 326, in 346s class EnumDict(dict): 346s ...<128 lines>... 346s self[name] = value 346s File "/usr/lib/python3.14/enum.py", line 326, in EnumDict 346s class EnumDict(dict): 346s 346s KeyboardInterrupt 346s ------------------------------ Captured log call ------------------------------- 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 346s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpeqks53d5/runtime/kernel-43d090e1-1686-4726-a7c9-7e233b248487.json'] 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37491 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38557 346s INFO NotebookApp:kernelmanager.py:179 Kernel started: 43d090e1-1686-4726-a7c9-7e233b248487, name: python3 346s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 346s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.860000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/43d090e1-1686-4726-a7c9-7e233b248487 (127.0.0.1) 1.430000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (127.0.0.1): Kernel does not exist: 111-111-111-111-111 346s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 346s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (127.0.0.1) 1.560000ms referer=None 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 43d090e1-1686-4726-a7c9-7e233b248487 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 43d090e1-1686-4726-a7c9-7e233b248487 346s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 346s await kernel_awaitable 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 346s result = await obj 346s ^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/43d090e1-1686-4726-a7c9-7e233b248487 (127.0.0.1) 346s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/43d090e1-1686-4726-a7c9-7e233b248487', version='HTTP/1.1', remote_ip='127.0.0.1') 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 346s result = await result 346s ^^^^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 346s future.result() 346s ~~~~~~~~~~~~~^^ 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 346s yielded = self.gen.throw(exc) 346s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 346s yield maybe_future(km.shutdown_kernel(kernel_id)) 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 346s value = future.result() 346s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 346s raise self._exception.with_traceback(self._exception_tb) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 346s result = coro.send(None) 346s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 346s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 346s raise km.ready.exception() # type: ignore[misc] 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 346s await kernel_awaitable 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 346s result = await obj 346s ^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s WARNING NotebookApp:handlers.py:612 Unhandled error 346s ERROR NotebookApp:log.py:55 { 346s "Host": "localhost:12341", 346s "Accept": "*/*", 346s "User-Agent": "python-requests/2.32.5" 346s } 346s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/43d090e1-1686-4726-a7c9-7e233b248487 (127.0.0.1) 8.850000ms referer=None 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.430000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6ca9b2c4-c42b-43e1-ad07-523e6c18bd9c 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6ca9b2c4-c42b-43e1-ad07-523e6c18bd9c 346s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/6ca9b2c4-c42b-43e1-ad07-523e6c18bd9c (127.0.0.1) 1.580000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 43d090e1-1686-4726-a7c9-7e233b248487 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 43d090e1-1686-4726-a7c9-7e233b248487 346s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/43d090e1-1686-4726-a7c9-7e233b248487 (127.0.0.1) 1.390000ms 346s --------------------------- Captured stderr teardown --------------------------- 346s Traceback (most recent call last): 346s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 346s return _run_code(code, main_globals, None, 346s "__main__", mod_spec) 346s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 346s exec(code, run_globals) 346s ~~~~^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 346s from pathlib import Path 346s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 346s from glob import _StringGlobber, _no_recurse_symlinks 346s File "/usr/lib/python3.14/glob.py", line 5, in 346s import re 346s File "/usr/lib/python3.14/re/__init__.py", line 126, in 346s from . import _compiler, _parser 346s File "", line 1371, in _find_and_load 346s File "", line 1342, in _find_and_load_unlocked 346s File "", line 938, in _load_unlocked 346s File "", line 755, in exec_module 346s File "", line 888, in get_code 346s File "", line 511, in _compile_bytecode 346s KeyboardInterrupt 346s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 346s 346s self = 346s 346s def test_main_kernel_handler(self): 346s # POST request 346s r = self.kern_api.start() 346s kern1 = r.json() 346s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 346s self.assertEqual(r.status_code, 201) 346s self.assertIsInstance(kern1, dict) 346s 346s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 346s expected_csp = '; '.join([ 346s "frame-ancestors 'self'", 346s 'report-uri ' + report_uri, 346s "default-src 'none'" 346s ]) 346s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 346s 346s # GET request 346s r = self.kern_api.list() 346s self.assertEqual(r.status_code, 200) 346s assert isinstance(r.json(), list) 346s self.assertEqual(r.json()[0]['id'], kern1['id']) 346s self.assertEqual(r.json()[0]['name'], kern1['name']) 346s 346s # create another kernel and check that they both are added to the 346s # list of kernels from a GET request 346s kern2 = self.kern_api.start().json() 346s assert isinstance(kern2, dict) 346s r = self.kern_api.list() 346s kernels = r.json() 346s self.assertEqual(r.status_code, 200) 346s assert isinstance(kernels, list) 346s self.assertEqual(len(kernels), 2) 346s 346s # Interrupt a kernel 346s r = self.kern_api.interrupt(kern2['id']) 346s self.assertEqual(r.status_code, 204) 346s 346s # Restart a kernel 346s > r = self.kern_api.restart(kern2['id']) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s 346s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 346s return self._req('POST', url_path_join(id, 'restart')) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 346s response.raise_for_status() 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s 346s self = 346s 346s def raise_for_status(self): 346s """Raises :class:`HTTPError`, if one occurred.""" 346s 346s http_error_msg = "" 346s if isinstance(self.reason, bytes): 346s # We attempt to decode utf-8 first because some servers 346s # choose to localize their reason strings. If the string 346s # isn't utf-8, we fall back to iso-8859-1 for all other 346s # encodings. (See PR #3538) 346s try: 346s reason = self.reason.decode("utf-8") 346s except UnicodeDecodeError: 346s reason = self.reason.decode("iso-8859-1") 346s else: 346s reason = self.reason 346s 346s if 400 <= self.status_code < 500: 346s http_error_msg = ( 346s f"{self.status_code} Client Error: {reason} for url: {self.url}" 346s ) 346s 346s elif 500 <= self.status_code < 600: 346s http_error_msg = ( 346s f"{self.status_code} Server Error: {reason} for url: {self.url}" 346s ) 346s 346s if http_error_msg: 346s > raise HTTPError(http_error_msg, response=self) 346s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/be1d0626-d242-49e9-8138-b994563d73f1/restart 346s 346s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 346s ----------------------------- Captured stderr call ----------------------------- 346s Traceback (most recent call last): 346s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 346s return _run_code(code, main_globals, None, 346s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 346s exec(code, run_globals) 346s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 346s from pathlib import Path 346s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 346s from glob import _StringGlobber, _no_recurse_symlinks 346s File "/usr/lib/python3.14/glob.py", line 3, in 346s import contextlib 346s File "/usr/lib/python3.14/contextlib.py", line 6, in 346s from collections import deque 346s File "/usr/lib/python3.14/collections/__init__.py", line 41, in 346s from reprlib import recursive_repr as _recursive_repr 346s File "", line 1371, in _find_and_load 346s File "", line 1342, in _find_and_load_unlocked 346s File "", line 938, in _load_unlocked 346s File "", line 755, in exec_module 346s File "", line 888, in get_code 346s File "", line 511, in _compile_bytecode 346s KeyboardInterrupt 346s ------------------------------ Captured log call ------------------------------- 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 346s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpeqks53d5/runtime/kernel-d08e5c1e-4702-465f-bad1-c34adeccd2fd.json'] 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57047 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51755 346s INFO NotebookApp:kernelmanager.py:179 Kernel started: d08e5c1e-4702-465f-bad1-c34adeccd2fd, name: python3 346s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 346s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.890000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.370000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 346s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpeqks53d5/runtime/kernel-be1d0626-d242-49e9-8138-b994563d73f1.json'] 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47111 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42143 346s INFO NotebookApp:kernelmanager.py:179 Kernel started: be1d0626-d242-49e9-8138-b994563d73f1, name: python3 346s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 346s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.840000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.380000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: be1d0626-d242-49e9-8138-b994563d73f1 346s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/be1d0626-d242-49e9-8138-b994563d73f1/interrupt (127.0.0.1) 1.570000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 346s yield maybe_future(km.restart_kernel(kernel_id)) 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 346s value = future.result() 346s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 346s raise self._exception.with_traceback(self._exception_tb) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 346s result = coro.throw(exc) 346s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 346s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 346s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 346s yield self # This tells Task to wait for completion. 346s ^^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 346s future.result() 346s ~~~~~~~~~~~~~^^ 346s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 346s raise self._exception.with_traceback(self._exception_tb) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 346s result = coro.send(None) 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 346s await ensure_async(kernel.restart_kernel(now=now)) 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 346s result = await obj 346s ^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 346s await self._async_shutdown_kernel(now=now, restart=True) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:log.py:55 { 346s "Host": "localhost:12341", 346s "Accept": "*/*", 346s "User-Agent": "python-requests/2.32.5" 346s } 346s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/be1d0626-d242-49e9-8138-b994563d73f1/restart (127.0.0.1) 5.110000ms referer=None 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.410000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d08e5c1e-4702-465f-bad1-c34adeccd2fd 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d08e5c1e-4702-465f-bad1-c34adeccd2fd 346s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 346s await kernel_awaitable 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 346s result = await obj 346s ^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/d08e5c1e-4702-465f-bad1-c34adeccd2fd (127.0.0.1) 346s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/d08e5c1e-4702-465f-bad1-c34adeccd2fd', version='HTTP/1.1', remote_ip='127.0.0.1') 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 346s result = await result 346s ^^^^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 346s future.result() 346s ~~~~~~~~~~~~~^^ 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 346s yielded = self.gen.throw(exc) 346s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 346s yield maybe_future(km.shutdown_kernel(kernel_id)) 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 346s value = future.result() 346s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 346s raise self._exception.with_traceback(self._exception_tb) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 346s result = coro.send(None) 346s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 346s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 346s raise km.ready.exception() # type: ignore[misc] 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 346s await kernel_awaitable 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 346s result = await obj 346s ^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s WARNING NotebookApp:handlers.py:612 Unhandled error 346s ERROR NotebookApp:log.py:55 { 346s "Host": "localhost:12341", 346s "Accept": "*/*", 346s "User-Agent": "python-requests/2.32.5" 346s } 346s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/d08e5c1e-4702-465f-bad1-c34adeccd2fd (127.0.0.1) 8.720000ms referer=None 346s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 346s 346s self = 346s 346s def test_no_kernels(self): 346s """Make sure there are no kernels running at the start""" 346s kernels = self.kern_api.list().json() 346s > self.assertEqual(kernels, []) 346s E AssertionError: Lists differ: [{'id': 'd08e5c1e-4702-465f-bad1-c34adeccd[281 chars]: 0}] != [] 346s E 346s E First list contains 2 additional elements. 346s E First extra element 0: 346s E {'id': 'd08e5c1e-4702-465f-bad1-c34adeccd2fd', 'name': 'python3', 'last_activity': '2026-01-22T18:29:04.236257Z', 'execution_state': 'starting', 'connections': 0} 346s E 346s E + [] 346s E - [{'connections': 0, 346s E - 'execution_state': 'starting', 346s E - 'id': 'd08e5c1e-4702-465f-bad1-c34adeccd2fd', 346s E - 'last_activity': '2026-01-22T18:29:04.236257Z', 346s E - 'name': 'python3'}, 346s E - {'connections': 0, 346s E - 'execution_state': 'starting', 346s E - 'id': 'be1d0626-d242-49e9-8138-b994563d73f1', 346s E - 'last_activity': '2026-01-22T18:29:04.263832Z', 346s E - 'name': 'python3'}] 346s 346s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 346s ------------------------------ Captured log call ------------------------------- 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.460000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.360000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d08e5c1e-4702-465f-bad1-c34adeccd2fd 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d08e5c1e-4702-465f-bad1-c34adeccd2fd 346s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/d08e5c1e-4702-465f-bad1-c34adeccd2fd (127.0.0.1) 1.630000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for be1d0626-d242-49e9-8138-b994563d73f1 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: be1d0626-d242-49e9-8138-b994563d73f1 346s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/be1d0626-d242-49e9-8138-b994563d73f1 (127.0.0.1) 1.840000ms 346s ---------------------------- Captured log teardown ----------------------------- 346s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0a7def44-4df9-4051-8682-735c648e30aa 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6ca9b2c4-c42b-43e1-ad07-523e6c18bd9c 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d08e5c1e-4702-465f-bad1-c34adeccd2fd 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 43d090e1-1686-4726-a7c9-7e233b248487 346s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 346s __________________________ SessionAPITest.test_create __________________________ 346s 346s @self.addCleanup 346s def cleanup_sessions(): 346s for session in self.sess_api.list().json(): 346s > self.sess_api.delete(session['id']) 346s 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 346s return self._req('DELETE', id) 346s ^^^^^^^^^^^^^^^^^^^^^^^ 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 346s response.raise_for_status() 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s 346s self = 346s 346s def raise_for_status(self): 346s """Raises :class:`HTTPError`, if one occurred.""" 346s 346s http_error_msg = "" 346s if isinstance(self.reason, bytes): 346s # We attempt to decode utf-8 first because some servers 346s # choose to localize their reason strings. If the string 346s # isn't utf-8, we fall back to iso-8859-1 for all other 346s # encodings. (See PR #3538) 346s try: 346s reason = self.reason.decode("utf-8") 346s except UnicodeDecodeError: 346s reason = self.reason.decode("iso-8859-1") 346s else: 346s reason = self.reason 346s 346s if 400 <= self.status_code < 500: 346s http_error_msg = ( 346s f"{self.status_code} Client Error: {reason} for url: {self.url}" 346s ) 346s 346s elif 500 <= self.status_code < 600: 346s http_error_msg = ( 346s f"{self.status_code} Server Error: {reason} for url: {self.url}" 346s ) 346s 346s if http_error_msg: 346s > raise HTTPError(http_error_msg, response=self) 346s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/51f3ec2d-4509-4363-9694-774bd2d327e0 346s 346s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 346s ------------------------------ Captured log setup ------------------------------ 346s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpamabdm0s/config', '/tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpamabdm0s/etc/jupyter'] for config files 346s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpamabdm0s/etc/jupyter 346s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 346s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 346s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpamabdm0s/config 346s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpamabdm0s/etc/jupyter 346s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 346s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 346s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpamabdm0s/config 346s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpamabdm0s/notebooks 346s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 346s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 346s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 346s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 346s WARNING NotebookApp:handlers.py:612 Forbidden 346s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (127.0.0.1) 1.140000ms referer=None 346s ------------------------------ Captured log call ------------------------------- 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.970000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 346s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpamabdm0s/runtime/kernel-b6efb7d4-41f6-4573-ba54-337fc5de5674.json'] 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45173 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53987 346s INFO NotebookApp:kernelmanager.py:179 Kernel started: b6efb7d4-41f6-4573-ba54-337fc5de5674, name: python3 346s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpamabdm0s/notebooks/foo'} 346s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 25.740000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.680000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/51f3ec2d-4509-4363-9694-774bd2d327e0 (127.0.0.1) 1.650000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.540000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b6efb7d4-41f6-4573-ba54-337fc5de5674 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b6efb7d4-41f6-4573-ba54-337fc5de5674 346s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/51f3ec2d-4509-4363-9694-774bd2d327e0 (127.0.0.1) 346s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/51f3ec2d-4509-4363-9694-774bd2d327e0', version='HTTP/1.1', remote_ip='127.0.0.1') 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 346s result = await result 346s ^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 346s yielded = self.gen.throw(exc) 346s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 346s yield maybe_future(sm.delete_session(session_id)) 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 346s value = future.result() 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 346s yielded = self.gen.send(value) 346s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 346s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 346s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 346s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 346s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 346s return _runner_map[name].run(inner) 346s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 346s return fut.result(None) 346s ~~~~~~~~~~^^^^^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 346s return self.__get_result() 346s ~~~~~~~~~~~~~~~~~^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 346s raise self._exception 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 346s result = coro.send(None) 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 346s stopper = ensure_async(km.shutdown_kernel(now, restart)) 346s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 346s return _runner_map[name].run(inner) 346s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 346s return fut.result(None) 346s ~~~~~~~~~~^^^^^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 346s return self.__get_result() 346s ~~~~~~~~~~~~~~~~~^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 346s raise self._exception 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 346s result = coro.send(None) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s WARNING NotebookApp:handlers.py:612 Unhandled error 346s ERROR NotebookApp:log.py:55 { 346s "Host": "localhost:12341", 346s "Accept": "*/*", 346s "User-Agent": "python-requests/2.32.5" 346s } 346s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/51f3ec2d-4509-4363-9694-774bd2d327e0 (127.0.0.1) 13.910000ms referer=None 346s --------------------------- Captured stderr teardown --------------------------- 346s Traceback (most recent call last): 346s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 346s return _run_code(code, main_globals, None, 346s "__main__", mod_spec) 346s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 346s exec(code, run_globals) 346s ~~~~^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 346s from ipykernel import kernelapp as app 346s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 346s from .connect import * # noqa: F403 346s ^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 346s from subprocess import PIPE, Popen 346s File "/usr/lib/python3.14/subprocess.py", line 49, in 346s import signal 346s File "/usr/lib/python3.14/signal.py", line 14, in 346s _IntEnum._convert_( 346s ~~~~~~~~~~~~~~~~~~^ 346s 'Handlers', __name__, 346s ^^^^^^^^^^^^^^^^^^^^^ 346s lambda name: name in ('SIG_DFL', 'SIG_IGN')) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3.14/enum.py", line 902, in _convert_ 346s members.sort(key=lambda t: (t[1], t[0])) 346s ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3.14/enum.py", line 902, in 346s members.sort(key=lambda t: (t[1], t[0])) 346s 346s KeyboardInterrupt 346s __________________ SessionAPITest.test_create_console_session __________________ 346s 346s @self.addCleanup 346s def cleanup_sessions(): 346s for session in self.sess_api.list().json(): 346s > self.sess_api.delete(session['id']) 346s 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 346s return self._req('DELETE', id) 346s ^^^^^^^^^^^^^^^^^^^^^^^ 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 346s response.raise_for_status() 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s 346s self = 346s 346s def raise_for_status(self): 346s """Raises :class:`HTTPError`, if one occurred.""" 346s 346s http_error_msg = "" 346s if isinstance(self.reason, bytes): 346s # We attempt to decode utf-8 first because some servers 346s # choose to localize their reason strings. If the string 346s # isn't utf-8, we fall back to iso-8859-1 for all other 346s # encodings. (See PR #3538) 346s try: 346s reason = self.reason.decode("utf-8") 346s except UnicodeDecodeError: 346s reason = self.reason.decode("iso-8859-1") 346s else: 346s reason = self.reason 346s 346s if 400 <= self.status_code < 500: 346s http_error_msg = ( 346s f"{self.status_code} Client Error: {reason} for url: {self.url}" 346s ) 346s 346s elif 500 <= self.status_code < 600: 346s http_error_msg = ( 346s f"{self.status_code} Server Error: {reason} for url: {self.url}" 346s ) 346s 346s if http_error_msg: 346s > raise HTTPError(http_error_msg, response=self) 346s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1fcceb56-8269-4f3e-9be3-2ed4604c4876 346s 346s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 346s ------------------------------ Captured log call ------------------------------- 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 346s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpamabdm0s/runtime/kernel-50387da5-0005-4f9e-82b0-61a0a1a4e98d.json'] 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45523 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54543 346s INFO NotebookApp:kernelmanager.py:179 Kernel started: 50387da5-0005-4f9e-82b0-61a0a1a4e98d, name: python3 346s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpamabdm0s/notebooks/foo'} 346s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 21.600000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.710000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b6efb7d4-41f6-4573-ba54-337fc5de5674 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b6efb7d4-41f6-4573-ba54-337fc5de5674 346s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/51f3ec2d-4509-4363-9694-774bd2d327e0 (127.0.0.1) 2.500000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 50387da5-0005-4f9e-82b0-61a0a1a4e98d 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 50387da5-0005-4f9e-82b0-61a0a1a4e98d 346s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1fcceb56-8269-4f3e-9be3-2ed4604c4876 (127.0.0.1) 346s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1fcceb56-8269-4f3e-9be3-2ed4604c4876', version='HTTP/1.1', remote_ip='127.0.0.1') 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 346s result = await result 346s ^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 346s yielded = self.gen.throw(exc) 346s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 346s yield maybe_future(sm.delete_session(session_id)) 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 346s value = future.result() 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 346s yielded = self.gen.send(value) 346s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 346s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 346s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 346s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 346s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 346s return _runner_map[name].run(inner) 346s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 346s return fut.result(None) 346s ~~~~~~~~~~^^^^^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 346s return self.__get_result() 346s ~~~~~~~~~~~~~~~~~^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 346s raise self._exception 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 346s result = coro.send(None) 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 346s stopper = ensure_async(km.shutdown_kernel(now, restart)) 346s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 346s return _runner_map[name].run(inner) 346s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 346s return fut.result(None) 346s ~~~~~~~~~~^^^^^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 346s return self.__get_result() 346s ~~~~~~~~~~~~~~~~~^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 346s raise self._exception 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 346s result = coro.send(None) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s WARNING NotebookApp:handlers.py:612 Unhandled error 346s ERROR NotebookApp:log.py:55 { 346s "Host": "localhost:12341", 346s "Accept": "*/*", 346s "User-Agent": "python-requests/2.32.5" 346s } 346s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1fcceb56-8269-4f3e-9be3-2ed4604c4876 (127.0.0.1) 10.510000ms referer=None 346s --------------------------- Captured stderr teardown --------------------------- 346s Traceback (most recent call last): 346s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 346s return _run_code(code, main_globals, None, 346s "__main__", mod_spec) 346s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 346s exec(code, run_globals) 346s ~~~~^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 346s from ipykernel import kernelapp as app 346s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 346s from ._version import ( 346s ...<4 lines>... 346s ) 346s File "/usr/lib/python3/dist-packages/ipykernel/_version.py", line 11, in 346s match = re.match(pattern, __version__) 346s File "/usr/lib/python3.14/re/__init__.py", line 167, in match 346s return _compile(pattern, flags).match(string) 346s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ 346s KeyboardInterrupt 346s ____________________ SessionAPITest.test_create_deprecated _____________________ 346s 346s @self.addCleanup 346s def cleanup_sessions(): 346s for session in self.sess_api.list().json(): 346s > self.sess_api.delete(session['id']) 346s 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 346s return self._req('DELETE', id) 346s ^^^^^^^^^^^^^^^^^^^^^^^ 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 346s response.raise_for_status() 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s 346s self = 346s 346s def raise_for_status(self): 346s """Raises :class:`HTTPError`, if one occurred.""" 346s 346s http_error_msg = "" 346s if isinstance(self.reason, bytes): 346s # We attempt to decode utf-8 first because some servers 346s # choose to localize their reason strings. If the string 346s # isn't utf-8, we fall back to iso-8859-1 for all other 346s # encodings. (See PR #3538) 346s try: 346s reason = self.reason.decode("utf-8") 346s except UnicodeDecodeError: 346s reason = self.reason.decode("iso-8859-1") 346s else: 346s reason = self.reason 346s 346s if 400 <= self.status_code < 500: 346s http_error_msg = ( 346s f"{self.status_code} Client Error: {reason} for url: {self.url}" 346s ) 346s 346s elif 500 <= self.status_code < 600: 346s http_error_msg = ( 346s f"{self.status_code} Server Error: {reason} for url: {self.url}" 346s ) 346s 346s if http_error_msg: 346s > raise HTTPError(http_error_msg, response=self) 346s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3d82c2c9-8386-4756-971e-7719f816bf45 346s 346s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 346s ------------------------------ Captured log call ------------------------------- 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 346s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 346s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpamabdm0s/runtime/kernel-4d5f881b-49f1-460d-9f94-d28e8637e501.json'] 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46505 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44519 346s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4d5f881b-49f1-460d-9f94-d28e8637e501, name: python3 346s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpamabdm0s/notebooks/foo'} 346s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 20.640000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.460000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 50387da5-0005-4f9e-82b0-61a0a1a4e98d 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 50387da5-0005-4f9e-82b0-61a0a1a4e98d 346s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/1fcceb56-8269-4f3e-9be3-2ed4604c4876 (127.0.0.1) 2.360000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4d5f881b-49f1-460d-9f94-d28e8637e501 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4d5f881b-49f1-460d-9f94-d28e8637e501 346s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3d82c2c9-8386-4756-971e-7719f816bf45 (127.0.0.1) 346s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3d82c2c9-8386-4756-971e-7719f816bf45', version='HTTP/1.1', remote_ip='127.0.0.1') 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 346s result = await result 346s ^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 346s yielded = self.gen.throw(exc) 346s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 346s yield maybe_future(sm.delete_session(session_id)) 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 346s value = future.result() 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 346s yielded = self.gen.send(value) 346s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 346s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 346s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 346s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 346s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 346s return _runner_map[name].run(inner) 346s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 346s return fut.result(None) 346s ~~~~~~~~~~^^^^^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 346s return self.__get_result() 346s ~~~~~~~~~~~~~~~~~^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 346s raise self._exception 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 346s result = coro.send(None) 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 346s stopper = ensure_async(km.shutdown_kernel(now, restart)) 346s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 346s return _runner_map[name].run(inner) 346s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 346s return fut.result(None) 346s ~~~~~~~~~~^^^^^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 346s return self.__get_result() 346s ~~~~~~~~~~~~~~~~~^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 346s raise self._exception 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 346s result = coro.send(None) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s WARNING NotebookApp:handlers.py:612 Unhandled error 346s ERROR NotebookApp:log.py:55 { 346s "Host": "localhost:12341", 346s "Accept": "*/*", 346s "User-Agent": "python-requests/2.32.5" 346s } 346s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/3d82c2c9-8386-4756-971e-7719f816bf45 (127.0.0.1) 10.340000ms referer=None 346s --------------------------- Captured stderr teardown --------------------------- 346s Traceback (most recent call last): 346s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 346s return _run_code(code, main_globals, None, 346s "__main__", mod_spec) 346s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 346s exec(code, run_globals) 346s ~~~~^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 346s from pathlib import Path 346s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 346s from glob import _StringGlobber, _no_recurse_symlinks 346s File "/usr/lib/python3.14/glob.py", line 237, in 346s magic_check_bytes = re.compile(b'([*?[])') 346s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 346s return _compile(pattern, flags) 346s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 346s p = _compiler.compile(pattern, flags) 346s File "/usr/lib/python3.14/re/_compiler.py", line 766, in compile 346s code = _code(p, flags) 346s File "/usr/lib/python3.14/re/_compiler.py", line 599, in _code 346s _compile(code, p.data, flags) 346s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3.14/re/_compiler.py", line 133, in _compile 346s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 346s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3.14/re/_compiler.py", line 88, in _compile 346s charset, hascased = _optimize_charset(av, iscased, tolower, fixes) 346s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3.14/re/_compiler.py", line 353, in _optimize_charset 346s data = _mk_bitmap(charmap) 346s File "/usr/lib/python3.14/re/_compiler.py", line 402, in _mk_bitmap 346s return [_int(s[i - _CODEBITS: i], 2) 346s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 346s KeyboardInterrupt 346s ___________________ SessionAPITest.test_create_file_session ____________________ 346s 346s @self.addCleanup 346s def cleanup_sessions(): 346s for session in self.sess_api.list().json(): 346s > self.sess_api.delete(session['id']) 346s 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 346s return self._req('DELETE', id) 346s ^^^^^^^^^^^^^^^^^^^^^^^ 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 346s response.raise_for_status() 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s 346s self = 346s 346s def raise_for_status(self): 346s """Raises :class:`HTTPError`, if one occurred.""" 346s 346s http_error_msg = "" 346s if isinstance(self.reason, bytes): 346s # We attempt to decode utf-8 first because some servers 346s # choose to localize their reason strings. If the string 346s # isn't utf-8, we fall back to iso-8859-1 for all other 346s # encodings. (See PR #3538) 346s try: 346s reason = self.reason.decode("utf-8") 346s except UnicodeDecodeError: 346s reason = self.reason.decode("iso-8859-1") 346s else: 346s reason = self.reason 346s 346s if 400 <= self.status_code < 500: 346s http_error_msg = ( 346s f"{self.status_code} Client Error: {reason} for url: {self.url}" 346s ) 346s 346s elif 500 <= self.status_code < 600: 346s http_error_msg = ( 346s f"{self.status_code} Server Error: {reason} for url: {self.url}" 346s ) 346s 346s if http_error_msg: 346s > raise HTTPError(http_error_msg, response=self) 346s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a1e4ca35-09ff-4cb3-a8bb-2d6dc7f57b15 346s 346s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 346s ------------------------------ Captured log call ------------------------------- 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 346s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpamabdm0s/runtime/kernel-3d9558e7-8385-4d23-b1ac-de17bf15a5c0.json'] 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52217 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57727 346s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3d9558e7-8385-4d23-b1ac-de17bf15a5c0, name: python3 346s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpamabdm0s/notebooks/foo'} 346s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 21.930000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.950000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4d5f881b-49f1-460d-9f94-d28e8637e501 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4d5f881b-49f1-460d-9f94-d28e8637e501 346s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/3d82c2c9-8386-4756-971e-7719f816bf45 (127.0.0.1) 4.000000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3d9558e7-8385-4d23-b1ac-de17bf15a5c0 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3d9558e7-8385-4d23-b1ac-de17bf15a5c0 346s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a1e4ca35-09ff-4cb3-a8bb-2d6dc7f57b15 (127.0.0.1) 346s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a1e4ca35-09ff-4cb3-a8bb-2d6dc7f57b15', version='HTTP/1.1', remote_ip='127.0.0.1') 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 346s result = await result 346s ^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 346s yielded = self.gen.throw(exc) 346s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 346s yield maybe_future(sm.delete_session(session_id)) 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 346s value = future.result() 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 346s yielded = self.gen.send(value) 346s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 346s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 346s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 346s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 346s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 346s return _runner_map[name].run(inner) 346s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 346s return fut.result(None) 346s ~~~~~~~~~~^^^^^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 346s return self.__get_result() 346s ~~~~~~~~~~~~~~~~~^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 346s raise self._exception 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 346s result = coro.send(None) 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 346s stopper = ensure_async(km.shutdown_kernel(now, restart)) 346s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 346s return _runner_map[name].run(inner) 346s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 346s return fut.result(None) 346s ~~~~~~~~~~^^^^^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 346s return self.__get_result() 346s ~~~~~~~~~~~~~~~~~^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 346s raise self._exception 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 346s result = coro.send(None) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s WARNING NotebookApp:handlers.py:612 Unhandled error 346s ERROR NotebookApp:log.py:55 { 346s "Host": "localhost:12341", 346s "Accept": "*/*", 346s "User-Agent": "python-requests/2.32.5" 346s } 346s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a1e4ca35-09ff-4cb3-a8bb-2d6dc7f57b15 (127.0.0.1) 14.550000ms referer=None 346s --------------------------- Captured stderr teardown --------------------------- 346s Traceback (most recent call last): 346s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 346s return _run_code(code, main_globals, None, 346s "__main__", mod_spec) 346s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 346s exec(code, run_globals) 346s ~~~~^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 346s from ipykernel import kernelapp as app 346s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 346s from .connect import * # noqa: F403 346s ^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 346s import json 346s File "/usr/lib/python3.14/json/__init__.py", line 106, in 346s from .decoder import JSONDecoder, JSONDecodeError 346s File "", line 466, in _lock_unlock_module 346s KeyboardInterrupt 346s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 346s 346s self = 346s 346s def test_create_with_kernel_id(self): 346s # create a new kernel 346s r = self.request('POST', 'api/kernels') 346s r.raise_for_status() 346s kernel = r.json() 346s 346s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 346s self.assertEqual(resp.status_code, 201) 346s newsession = resp.json() 346s self.assertIn('id', newsession) 346s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 346s self.assertEqual(newsession['kernel']['id'], kernel['id']) 346s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 346s 346s sessions = self.sess_api.list().json() 346s > self.assertEqual(sessions, [newsession]) 346s E AssertionError: Lists differ: [{'id': 'a1e4ca35-09ff-4cb3-a8bb-2d6dc7f57b15', 'p[553 chars]ne}}] != [{'id': '78a2aebf-8177-474f-a1a8-32b5c95de480', 'p[279 chars]ne}}] 346s E 346s E First differing element 0: 346s E {'id': 'a1e4ca35-09ff-4cb3-a8bb-2d6dc7f57b15', 'p[218 chars]: 0}} 346s E {'id': '78a2aebf-8177-474f-a1a8-32b5c95de480', 'p[278 chars]one}} 346s E 346s E First list contains 1 additional elements. 346s E First extra element 1: 346s E {'id': '78a2aebf-8177-474f-a1a8-32b5c95de480', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '3a3d3797-1b41-4a1f-847b-33ca14aaaf53', 'name': 'python3', 'last_activity': '2026-01-22T18:29:04.920010Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 346s E 346s E Diff is 830 characters long. Set self.maxDiff to None to see it. 346s 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 346s ------------------------------ Captured log call ------------------------------- 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 346s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpamabdm0s/runtime/kernel-3a3d3797-1b41-4a1f-847b-33ca14aaaf53.json'] 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41357 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50653 346s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3a3d3797-1b41-4a1f-847b-33ca14aaaf53, name: python3 346s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 346s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 20.080000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.790000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.610000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.580000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3d9558e7-8385-4d23-b1ac-de17bf15a5c0 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3d9558e7-8385-4d23-b1ac-de17bf15a5c0 346s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a1e4ca35-09ff-4cb3-a8bb-2d6dc7f57b15 (127.0.0.1) 2.500000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3a3d3797-1b41-4a1f-847b-33ca14aaaf53 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3a3d3797-1b41-4a1f-847b-33ca14aaaf53 346s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/78a2aebf-8177-474f-a1a8-32b5c95de480 (127.0.0.1) 346s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/78a2aebf-8177-474f-a1a8-32b5c95de480', version='HTTP/1.1', remote_ip='127.0.0.1') 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 346s result = await result 346s ^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 346s yielded = self.gen.throw(exc) 346s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 346s yield maybe_future(sm.delete_session(session_id)) 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 346s value = future.result() 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 346s yielded = self.gen.send(value) 346s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 346s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 346s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 346s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 346s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 346s return _runner_map[name].run(inner) 346s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 346s return fut.result(None) 346s ~~~~~~~~~~^^^^^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 346s return self.__get_result() 346s ~~~~~~~~~~~~~~~~~^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 346s raise self._exception 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 346s result = coro.send(None) 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 346s stopper = ensure_async(km.shutdown_kernel(now, restart)) 346s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 346s return _runner_map[name].run(inner) 346s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 346s return fut.result(None) 346s ~~~~~~~~~~^^^^^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 346s return self.__get_result() 346s ~~~~~~~~~~~~~~~~~^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 346s raise self._exception 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 346s result = coro.send(None) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s WARNING NotebookApp:handlers.py:612 Unhandled error 346s ERROR NotebookApp:log.py:55 { 346s "Host": "localhost:12341", 346s "Accept": "*/*", 346s "User-Agent": "python-requests/2.32.5" 346s } 346s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/78a2aebf-8177-474f-a1a8-32b5c95de480 (127.0.0.1) 10.830000ms referer=None 346s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 346s 346s @self.addCleanup 346s def cleanup_sessions(): 346s for session in self.sess_api.list().json(): 346s > self.sess_api.delete(session['id']) 346s 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 346s return self._req('DELETE', id) 346s ^^^^^^^^^^^^^^^^^^^^^^^ 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 346s response.raise_for_status() 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s 346s self = 346s 346s def raise_for_status(self): 346s """Raises :class:`HTTPError`, if one occurred.""" 346s 346s http_error_msg = "" 346s if isinstance(self.reason, bytes): 346s # We attempt to decode utf-8 first because some servers 346s # choose to localize their reason strings. If the string 346s # isn't utf-8, we fall back to iso-8859-1 for all other 346s # encodings. (See PR #3538) 346s try: 346s reason = self.reason.decode("utf-8") 346s except UnicodeDecodeError: 346s reason = self.reason.decode("iso-8859-1") 346s else: 346s reason = self.reason 346s 346s if 400 <= self.status_code < 500: 346s http_error_msg = ( 346s f"{self.status_code} Client Error: {reason} for url: {self.url}" 346s ) 346s 346s elif 500 <= self.status_code < 600: 346s http_error_msg = ( 346s f"{self.status_code} Server Error: {reason} for url: {self.url}" 346s ) 346s 346s if http_error_msg: 346s > raise HTTPError(http_error_msg, response=self) 346s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/78a2aebf-8177-474f-a1a8-32b5c95de480 346s 346s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 346s ---------------------------- Captured stderr setup ----------------------------- 346s Traceback (most recent call last): 346s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 346s return _run_code(code, main_globals, None, 346s "__main__", mod_spec) 346s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 346s exec(code, run_globals) 346s ~~~~^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 346s from ipykernel import kernelapp as app 346s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 346s from .connect import * # noqa: F403 346s ^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 346s from subprocess import PIPE, Popen 346s File "/usr/lib/python3.14/subprocess.py", line 52, in 346s import warnings 346s File "/usr/lib/python3.14/warnings.py", line 15, in 346s from _py_warnings import ( 346s ...<44 lines>... 346s ) 346s File "", line 1371, in _find_and_load 346s File "", line 1342, in _find_and_load_unlocked 346s File "", line 938, in _load_unlocked 346s File "", line 755, in exec_module 346s File "", line 888, in get_code 346s File "", line 511, in _compile_bytecode 346s KeyboardInterrupt 346s ------------------------------ Captured log call ------------------------------- 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.670000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 346s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpamabdm0s/runtime/kernel-249231ee-35d0-4a6c-a9d4-2604d09a693e.json'] 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50949 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50665 346s INFO NotebookApp:kernelmanager.py:179 Kernel started: 249231ee-35d0-4a6c-a9d4-2604d09a693e, name: python3 346s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 346s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 20.290000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3a3d3797-1b41-4a1f-847b-33ca14aaaf53 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3a3d3797-1b41-4a1f-847b-33ca14aaaf53 346s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/78a2aebf-8177-474f-a1a8-32b5c95de480 (127.0.0.1) 2.520000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.420000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.580000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 249231ee-35d0-4a6c-a9d4-2604d09a693e 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 249231ee-35d0-4a6c-a9d4-2604d09a693e 346s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/78a2aebf-8177-474f-a1a8-32b5c95de480 (127.0.0.1) 346s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/78a2aebf-8177-474f-a1a8-32b5c95de480', version='HTTP/1.1', remote_ip='127.0.0.1') 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 346s result = await result 346s ^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 346s yielded = self.gen.throw(exc) 346s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 346s yield maybe_future(sm.delete_session(session_id)) 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 346s value = future.result() 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 346s yielded = self.gen.send(value) 346s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 346s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 346s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 346s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 346s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 346s return _runner_map[name].run(inner) 346s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 346s return fut.result(None) 346s ~~~~~~~~~~^^^^^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 346s return self.__get_result() 346s ~~~~~~~~~~~~~~~~~^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 346s raise self._exception 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 346s result = coro.send(None) 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 346s stopper = ensure_async(km.shutdown_kernel(now, restart)) 346s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 346s return _runner_map[name].run(inner) 346s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 346s return fut.result(None) 346s ~~~~~~~~~~^^^^^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 346s return self.__get_result() 346s ~~~~~~~~~~~~~~~~~^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 346s raise self._exception 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 346s result = coro.send(None) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s WARNING NotebookApp:handlers.py:612 Unhandled error 346s ERROR NotebookApp:log.py:55 { 346s "Host": "localhost:12341", 346s "Accept": "*/*", 346s "User-Agent": "python-requests/2.32.5" 346s } 346s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/78a2aebf-8177-474f-a1a8-32b5c95de480 (127.0.0.1) 12.220000ms referer=None 346s --------------------------- Captured stderr teardown --------------------------- 346s Traceback (most recent call last): 346s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 346s return _run_code(code, main_globals, None, 346s "__main__", mod_spec) 346s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 346s exec(code, run_globals) 346s ~~~~^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 346s from ipykernel import kernelapp as app 346s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 346s from .connect import * # noqa: F403 346s ^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 346s from subprocess import PIPE, Popen 346s File "/usr/lib/python3.14/subprocess.py", line 46, in 346s import locale 346s File "", line 1371, in _find_and_load 346s File "", line 1342, in _find_and_load_unlocked 346s File "", line 938, in _load_unlocked 346s File "", line 755, in exec_module 346s File "", line 888, in get_code 346s File "", line 511, in _compile_bytecode 346s KeyboardInterrupt 346s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 346s 346s @self.addCleanup 346s def cleanup_sessions(): 346s for session in self.sess_api.list().json(): 346s > self.sess_api.delete(session['id']) 346s 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 346s return self._req('DELETE', id) 346s ^^^^^^^^^^^^^^^^^^^^^^^ 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 346s response.raise_for_status() 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s 346s self = 346s 346s def raise_for_status(self): 346s """Raises :class:`HTTPError`, if one occurred.""" 346s 346s http_error_msg = "" 346s if isinstance(self.reason, bytes): 346s # We attempt to decode utf-8 first because some servers 346s # choose to localize their reason strings. If the string 346s # isn't utf-8, we fall back to iso-8859-1 for all other 346s # encodings. (See PR #3538) 346s try: 346s reason = self.reason.decode("utf-8") 346s except UnicodeDecodeError: 346s reason = self.reason.decode("iso-8859-1") 346s else: 346s reason = self.reason 346s 346s if 400 <= self.status_code < 500: 346s http_error_msg = ( 346s f"{self.status_code} Client Error: {reason} for url: {self.url}" 346s ) 346s 346s elif 500 <= self.status_code < 600: 346s http_error_msg = ( 346s f"{self.status_code} Server Error: {reason} for url: {self.url}" 346s ) 346s 346s if http_error_msg: 346s > raise HTTPError(http_error_msg, response=self) 346s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/78a2aebf-8177-474f-a1a8-32b5c95de480 346s 346s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 346s ------------------------------ Captured log call ------------------------------- 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.800000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 346s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpamabdm0s/runtime/kernel-86c3e9ed-a8f8-4a93-afd8-c41810590dba.json'] 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42971 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56693 346s INFO NotebookApp:kernelmanager.py:179 Kernel started: 86c3e9ed-a8f8-4a93-afd8-c41810590dba, name: python3 346s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpamabdm0s/notebooks/foo'} 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 249231ee-35d0-4a6c-a9d4-2604d09a693e 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 249231ee-35d0-4a6c-a9d4-2604d09a693e 346s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/78a2aebf-8177-474f-a1a8-32b5c95de480 (127.0.0.1) 22.220000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.320000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.520000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 86c3e9ed-a8f8-4a93-afd8-c41810590dba 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 86c3e9ed-a8f8-4a93-afd8-c41810590dba 346s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/78a2aebf-8177-474f-a1a8-32b5c95de480 (127.0.0.1) 346s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/78a2aebf-8177-474f-a1a8-32b5c95de480', version='HTTP/1.1', remote_ip='127.0.0.1') 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 346s result = await result 346s ^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 346s yielded = self.gen.throw(exc) 346s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 346s yield maybe_future(sm.delete_session(session_id)) 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 346s value = future.result() 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 346s yielded = self.gen.send(value) 346s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 346s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 346s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 346s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 346s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 346s return _runner_map[name].run(inner) 346s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 346s return fut.result(None) 346s ~~~~~~~~~~^^^^^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 346s return self.__get_result() 346s ~~~~~~~~~~~~~~~~~^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 346s raise self._exception 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 346s result = coro.send(None) 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 346s stopper = ensure_async(km.shutdown_kernel(now, restart)) 346s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 346s return _runner_map[name].run(inner) 346s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 346s return fut.result(None) 346s ~~~~~~~~~~^^^^^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 346s return self.__get_result() 346s ~~~~~~~~~~~~~~~~~^^ 346s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 346s raise self._exception 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 346s result = coro.send(None) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s WARNING NotebookApp:handlers.py:612 Unhandled error 346s ERROR NotebookApp:log.py:55 { 346s "Host": "localhost:12341", 346s "Accept": "*/*", 346s "User-Agent": "python-requests/2.32.5" 346s } 346s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/78a2aebf-8177-474f-a1a8-32b5c95de480 (127.0.0.1) 10.620000ms referer=None 346s --------------------------- Captured stderr teardown --------------------------- 346s Traceback (most recent call last): 346s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 346s return _run_code(code, main_globals, None, 346s "__main__", mod_spec) 346s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 346s exec(code, run_globals) 346s ~~~~^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 346s from pathlib import Path 346s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 346s from pathlib._os import ( 346s ...<3 lines>... 346s ) 346s File "/usr/lib/python3.14/pathlib/_os.py", line 11, in 346s import fcntl 346s KeyboardInterrupt 346s ---------------------------- Captured log teardown ----------------------------- 346s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 86c3e9ed-a8f8-4a93-afd8-c41810590dba 346s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 346s _______________________ AsyncSessionAPITest.test_create ________________________ 346s 346s @self.addCleanup 346s def cleanup_sessions(): 346s for session in self.sess_api.list().json(): 346s > self.sess_api.delete(session['id']) 346s 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 346s return self._req('DELETE', id) 346s ^^^^^^^^^^^^^^^^^^^^^^^ 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 346s response.raise_for_status() 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s 346s self = 346s 346s def raise_for_status(self): 346s """Raises :class:`HTTPError`, if one occurred.""" 346s 346s http_error_msg = "" 346s if isinstance(self.reason, bytes): 346s # We attempt to decode utf-8 first because some servers 346s # choose to localize their reason strings. If the string 346s # isn't utf-8, we fall back to iso-8859-1 for all other 346s # encodings. (See PR #3538) 346s try: 346s reason = self.reason.decode("utf-8") 346s except UnicodeDecodeError: 346s reason = self.reason.decode("iso-8859-1") 346s else: 346s reason = self.reason 346s 346s if 400 <= self.status_code < 500: 346s http_error_msg = ( 346s f"{self.status_code} Client Error: {reason} for url: {self.url}" 346s ) 346s 346s elif 500 <= self.status_code < 600: 346s http_error_msg = ( 346s f"{self.status_code} Server Error: {reason} for url: {self.url}" 346s ) 346s 346s if http_error_msg: 346s > raise HTTPError(http_error_msg, response=self) 346s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/cf208bca-e655-4d93-9ede-cdb79413aea8 346s 346s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 346s ------------------------------ Captured log setup ------------------------------ 346s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpzu1p83g1/config', '/tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpzu1p83g1/etc/jupyter'] for config files 346s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpzu1p83g1/etc/jupyter 346s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 346s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 346s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpzu1p83g1/config 346s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpzu1p83g1/etc/jupyter 346s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 346s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 346s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpzu1p83g1/config 346s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpzu1p83g1/notebooks 346s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 346s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 346s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 346s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 346s WARNING NotebookApp:handlers.py:612 Forbidden 346s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (127.0.0.1) 1.050000ms referer=None 346s ------------------------------ Captured log call ------------------------------- 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.700000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 346s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzu1p83g1/runtime/kernel-655bcbb7-e064-47b8-8b92-5fbd8eb43fa4.json'] 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43027 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51363 346s INFO NotebookApp:kernelmanager.py:179 Kernel started: 655bcbb7-e064-47b8-8b92-5fbd8eb43fa4, name: python3 346s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpzu1p83g1/notebooks/foo'} 346s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 20.120000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.440000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/cf208bca-e655-4d93-9ede-cdb79413aea8 (127.0.0.1) 1.470000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.380000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 655bcbb7-e064-47b8-8b92-5fbd8eb43fa4 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 655bcbb7-e064-47b8-8b92-5fbd8eb43fa4 346s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 346s await kernel_awaitable 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 346s result = await obj 346s ^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/cf208bca-e655-4d93-9ede-cdb79413aea8 (127.0.0.1) 346s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/cf208bca-e655-4d93-9ede-cdb79413aea8', version='HTTP/1.1', remote_ip='127.0.0.1') 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 346s result = await result 346s ^^^^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 346s future.result() 346s ~~~~~~~~~~~~~^^ 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 346s yielded = self.gen.throw(exc) 346s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 346s yield maybe_future(sm.delete_session(session_id)) 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 346s value = future.result() 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 346s yielded = self.gen.throw(exc) 346s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 346s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 346s value = future.result() 346s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 346s raise self._exception.with_traceback(self._exception_tb) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 346s result = coro.send(None) 346s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 346s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 346s raise km.ready.exception() # type: ignore[misc] 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 346s await kernel_awaitable 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 346s result = await obj 346s ^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s WARNING NotebookApp:handlers.py:612 Unhandled error 346s ERROR NotebookApp:log.py:55 { 346s "Host": "localhost:12341", 346s "Accept": "*/*", 346s "User-Agent": "python-requests/2.32.5" 346s } 346s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/cf208bca-e655-4d93-9ede-cdb79413aea8 (127.0.0.1) 9.020000ms referer=None 346s --------------------------- Captured stderr teardown --------------------------- 346s Traceback (most recent call last): 346s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 346s return _run_code(code, main_globals, None, 346s "__main__", mod_spec) 346s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 346s exec(code, run_globals) 346s ~~~~^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 346s from ipykernel import kernelapp as app 346s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 346s from ._version import ( 346s ...<4 lines>... 346s ) 346s File "/usr/lib/python3/dist-packages/ipykernel/_version.py", line 11, in 346s match = re.match(pattern, __version__) 346s File "/usr/lib/python3.14/re/__init__.py", line 167, in match 346s return _compile(pattern, flags).match(string) 346s ~~~~~~~~^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 346s p = _compiler.compile(pattern, flags) 346s File "/usr/lib/python3.14/re/_compiler.py", line 766, in compile 346s code = _code(p, flags) 346s File "/usr/lib/python3.14/re/_compiler.py", line 599, in _code 346s _compile(code, p.data, flags) 346s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3.14/re/_compiler.py", line 133, in _compile 346s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 346s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3.14/re/_compiler.py", line 116, in _compile 346s _compile(code, av[2], flags) 346s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3.14/re/_compiler.py", line 58, in _compile 346s for op, av in pattern: 346s ^^^^^^^ 346s File "/usr/lib/python3.14/re/_parser.py", line 168, in __getitem__ 346s def __getitem__(self, index): 346s 346s KeyboardInterrupt 346s _______________ AsyncSessionAPITest.test_create_console_session ________________ 346s 346s @self.addCleanup 346s def cleanup_sessions(): 346s for session in self.sess_api.list().json(): 346s > self.sess_api.delete(session['id']) 346s 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 346s return self._req('DELETE', id) 346s ^^^^^^^^^^^^^^^^^^^^^^^ 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 346s response.raise_for_status() 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s 346s self = 346s 346s def raise_for_status(self): 346s """Raises :class:`HTTPError`, if one occurred.""" 346s 346s http_error_msg = "" 346s if isinstance(self.reason, bytes): 346s # We attempt to decode utf-8 first because some servers 346s # choose to localize their reason strings. If the string 346s # isn't utf-8, we fall back to iso-8859-1 for all other 346s # encodings. (See PR #3538) 346s try: 346s reason = self.reason.decode("utf-8") 346s except UnicodeDecodeError: 346s reason = self.reason.decode("iso-8859-1") 346s else: 346s reason = self.reason 346s 346s if 400 <= self.status_code < 500: 346s http_error_msg = ( 346s f"{self.status_code} Client Error: {reason} for url: {self.url}" 346s ) 346s 346s elif 500 <= self.status_code < 600: 346s http_error_msg = ( 346s f"{self.status_code} Server Error: {reason} for url: {self.url}" 346s ) 346s 346s if http_error_msg: 346s > raise HTTPError(http_error_msg, response=self) 346s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ab5c8329-ddb5-46eb-b604-9e731064af0e 346s 346s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 346s ------------------------------ Captured log call ------------------------------- 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 346s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzu1p83g1/runtime/kernel-c246f18c-d395-4a4f-b56a-6d98ddbe8bfe.json'] 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40811 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36441 346s INFO NotebookApp:kernelmanager.py:179 Kernel started: c246f18c-d395-4a4f-b56a-6d98ddbe8bfe, name: python3 346s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpzu1p83g1/notebooks/foo'} 346s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 19.010000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.520000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 655bcbb7-e064-47b8-8b92-5fbd8eb43fa4 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 655bcbb7-e064-47b8-8b92-5fbd8eb43fa4 346s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/cf208bca-e655-4d93-9ede-cdb79413aea8 (127.0.0.1) 1.850000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c246f18c-d395-4a4f-b56a-6d98ddbe8bfe 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c246f18c-d395-4a4f-b56a-6d98ddbe8bfe 346s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 346s await kernel_awaitable 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 346s result = await obj 346s ^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ab5c8329-ddb5-46eb-b604-9e731064af0e (127.0.0.1) 346s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ab5c8329-ddb5-46eb-b604-9e731064af0e', version='HTTP/1.1', remote_ip='127.0.0.1') 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 346s result = await result 346s ^^^^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 346s future.result() 346s ~~~~~~~~~~~~~^^ 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 346s yielded = self.gen.throw(exc) 346s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 346s yield maybe_future(sm.delete_session(session_id)) 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 346s value = future.result() 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 346s yielded = self.gen.throw(exc) 346s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 346s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 346s value = future.result() 346s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 346s raise self._exception.with_traceback(self._exception_tb) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 346s result = coro.send(None) 346s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 346s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 346s raise km.ready.exception() # type: ignore[misc] 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 346s await kernel_awaitable 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 346s result = await obj 346s ^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s WARNING NotebookApp:handlers.py:612 Unhandled error 346s ERROR NotebookApp:log.py:55 { 346s "Host": "localhost:12341", 346s "Accept": "*/*", 346s "User-Agent": "python-requests/2.32.5" 346s } 346s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/ab5c8329-ddb5-46eb-b604-9e731064af0e (127.0.0.1) 9.040000ms referer=None 346s --------------------------- Captured stderr teardown --------------------------- 346s Traceback (most recent call last): 346s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 346s return _run_code(code, main_globals, None, 346s "__main__", mod_spec) 346s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 346s exec(code, run_globals) 346s ~~~~^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 346s from pathlib import Path 346s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 346s from glob import _StringGlobber, _no_recurse_symlinks 346s File "/usr/lib/python3.14/glob.py", line 5, in 346s import re 346s File "/usr/lib/python3.14/re/__init__.py", line 126, in 346s from . import _compiler, _parser 346s File "/usr/lib/python3.14/re/_compiler.py", line 13, in 346s import _sre 346s File "", line 1365, in _find_and_load 346s KeyboardInterrupt 346s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 346s 346s @self.addCleanup 346s def cleanup_sessions(): 346s for session in self.sess_api.list().json(): 346s > self.sess_api.delete(session['id']) 346s 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 346s return self._req('DELETE', id) 346s ^^^^^^^^^^^^^^^^^^^^^^^ 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 346s response.raise_for_status() 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s 346s self = 346s 346s def raise_for_status(self): 346s """Raises :class:`HTTPError`, if one occurred.""" 346s 346s http_error_msg = "" 346s if isinstance(self.reason, bytes): 346s # We attempt to decode utf-8 first because some servers 346s # choose to localize their reason strings. If the string 346s # isn't utf-8, we fall back to iso-8859-1 for all other 346s # encodings. (See PR #3538) 346s try: 346s reason = self.reason.decode("utf-8") 346s except UnicodeDecodeError: 346s reason = self.reason.decode("iso-8859-1") 346s else: 346s reason = self.reason 346s 346s if 400 <= self.status_code < 500: 346s http_error_msg = ( 346s f"{self.status_code} Client Error: {reason} for url: {self.url}" 346s ) 346s 346s elif 500 <= self.status_code < 600: 346s http_error_msg = ( 346s f"{self.status_code} Server Error: {reason} for url: {self.url}" 346s ) 346s 346s if http_error_msg: 346s > raise HTTPError(http_error_msg, response=self) 346s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/70bba3da-c19d-40b8-9c70-c02171a40cbb 346s 346s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 346s ------------------------------ Captured log call ------------------------------- 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 346s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 346s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzu1p83g1/runtime/kernel-9d46b06f-73eb-4848-9986-e12cad451f89.json'] 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39743 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38961 346s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9d46b06f-73eb-4848-9986-e12cad451f89, name: python3 346s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpzu1p83g1/notebooks/foo'} 346s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 19.360000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.440000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c246f18c-d395-4a4f-b56a-6d98ddbe8bfe 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c246f18c-d395-4a4f-b56a-6d98ddbe8bfe 346s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/ab5c8329-ddb5-46eb-b604-9e731064af0e (127.0.0.1) 1.750000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9d46b06f-73eb-4848-9986-e12cad451f89 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9d46b06f-73eb-4848-9986-e12cad451f89 346s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 346s await kernel_awaitable 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 346s result = await obj 346s ^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/70bba3da-c19d-40b8-9c70-c02171a40cbb (127.0.0.1) 346s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/70bba3da-c19d-40b8-9c70-c02171a40cbb', version='HTTP/1.1', remote_ip='127.0.0.1') 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 346s result = await result 346s ^^^^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 346s future.result() 346s ~~~~~~~~~~~~~^^ 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 346s yielded = self.gen.throw(exc) 346s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 346s yield maybe_future(sm.delete_session(session_id)) 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 346s value = future.result() 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 346s yielded = self.gen.throw(exc) 346s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 346s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 346s value = future.result() 346s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 346s raise self._exception.with_traceback(self._exception_tb) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 346s result = coro.send(None) 346s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 346s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 346s raise km.ready.exception() # type: ignore[misc] 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 346s await kernel_awaitable 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 346s result = await obj 346s ^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s WARNING NotebookApp:handlers.py:612 Unhandled error 346s ERROR NotebookApp:log.py:55 { 346s "Host": "localhost:12341", 346s "Accept": "*/*", 346s "User-Agent": "python-requests/2.32.5" 346s } 346s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/70bba3da-c19d-40b8-9c70-c02171a40cbb (127.0.0.1) 9.070000ms referer=None 346s --------------------------- Captured stderr teardown --------------------------- 346s Traceback (most recent call last): 346s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 346s return _run_code(code, main_globals, None, 346s "__main__", mod_spec) 346s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 346s exec(code, run_globals) 346s ~~~~^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 346s from pathlib import Path 346s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 346s from glob import _StringGlobber, _no_recurse_symlinks 346s File "/usr/lib/python3.14/glob.py", line 5, in 346s import re 346s File "/usr/lib/python3.14/re/__init__.py", line 126, in 346s from . import _compiler, _parser 346s File "", line 1371, in _find_and_load 346s File "", line 1342, in _find_and_load_unlocked 346s File "", line 938, in _load_unlocked 346s File "", line 755, in exec_module 346s File "", line 888, in get_code 346s File "", line 511, in _compile_bytecode 346s KeyboardInterrupt 346s _________________ AsyncSessionAPITest.test_create_file_session _________________ 346s 346s @self.addCleanup 346s def cleanup_sessions(): 346s for session in self.sess_api.list().json(): 346s > self.sess_api.delete(session['id']) 346s 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 346s return self._req('DELETE', id) 346s ^^^^^^^^^^^^^^^^^^^^^^^ 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 346s response.raise_for_status() 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s 346s self = 346s 346s def raise_for_status(self): 346s """Raises :class:`HTTPError`, if one occurred.""" 346s 346s http_error_msg = "" 346s if isinstance(self.reason, bytes): 346s # We attempt to decode utf-8 first because some servers 346s # choose to localize their reason strings. If the string 346s # isn't utf-8, we fall back to iso-8859-1 for all other 346s # encodings. (See PR #3538) 346s try: 346s reason = self.reason.decode("utf-8") 346s except UnicodeDecodeError: 346s reason = self.reason.decode("iso-8859-1") 346s else: 346s reason = self.reason 346s 346s if 400 <= self.status_code < 500: 346s http_error_msg = ( 346s f"{self.status_code} Client Error: {reason} for url: {self.url}" 346s ) 346s 346s elif 500 <= self.status_code < 600: 346s http_error_msg = ( 346s f"{self.status_code} Server Error: {reason} for url: {self.url}" 346s ) 346s 346s if http_error_msg: 346s > raise HTTPError(http_error_msg, response=self) 346s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/814472ed-722a-4dc8-be16-1a8b0c1e5dd1 346s 346s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 346s ------------------------------ Captured log call ------------------------------- 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 346s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzu1p83g1/runtime/kernel-60ba6b73-afd3-4034-86ab-b3034080e0c8.json'] 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52469 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42963 346s INFO NotebookApp:kernelmanager.py:179 Kernel started: 60ba6b73-afd3-4034-86ab-b3034080e0c8, name: python3 346s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpzu1p83g1/notebooks/foo'} 346s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 19.140000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.640000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9d46b06f-73eb-4848-9986-e12cad451f89 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9d46b06f-73eb-4848-9986-e12cad451f89 346s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/70bba3da-c19d-40b8-9c70-c02171a40cbb (127.0.0.1) 1.810000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 60ba6b73-afd3-4034-86ab-b3034080e0c8 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 60ba6b73-afd3-4034-86ab-b3034080e0c8 346s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 346s await kernel_awaitable 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 346s result = await obj 346s ^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/814472ed-722a-4dc8-be16-1a8b0c1e5dd1 (127.0.0.1) 346s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/814472ed-722a-4dc8-be16-1a8b0c1e5dd1', version='HTTP/1.1', remote_ip='127.0.0.1') 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 346s result = await result 346s ^^^^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 346s future.result() 346s ~~~~~~~~~~~~~^^ 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 346s yielded = self.gen.throw(exc) 346s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 346s yield maybe_future(sm.delete_session(session_id)) 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 346s value = future.result() 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 346s yielded = self.gen.throw(exc) 346s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 346s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 346s value = future.result() 346s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 346s raise self._exception.with_traceback(self._exception_tb) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 346s result = coro.send(None) 346s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 346s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 346s raise km.ready.exception() # type: ignore[misc] 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 346s await kernel_awaitable 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 346s result = await obj 346s ^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s WARNING NotebookApp:handlers.py:612 Unhandled error 346s ERROR NotebookApp:log.py:55 { 346s "Host": "localhost:12341", 346s "Accept": "*/*", 346s "User-Agent": "python-requests/2.32.5" 346s } 346s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/814472ed-722a-4dc8-be16-1a8b0c1e5dd1 (127.0.0.1) 14.660000ms referer=None 346s --------------------------- Captured stderr teardown --------------------------- 346s Traceback (most recent call last): 346s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 346s return _run_code(code, main_globals, None, 346s "__main__", mod_spec) 346s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 346s exec(code, run_globals) 346s ~~~~^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 346s from pathlib import Path 346s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 346s from glob import _StringGlobber, _no_recurse_symlinks 346s File "/usr/lib/python3.14/glob.py", line 5, in 346s import re 346s File "/usr/lib/python3.14/re/__init__.py", line 126, in 346s from . import _compiler, _parser 346s File "/usr/lib/python3.14/re/_compiler.py", line 13, in 346s import _sre 346s KeyboardInterrupt 346s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 346s 346s self = 346s 346s def test_create_with_kernel_id(self): 346s # create a new kernel 346s r = self.request('POST', 'api/kernels') 346s r.raise_for_status() 346s kernel = r.json() 346s 346s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 346s self.assertEqual(resp.status_code, 201) 346s newsession = resp.json() 346s self.assertIn('id', newsession) 346s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 346s self.assertEqual(newsession['kernel']['id'], kernel['id']) 346s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 346s 346s sessions = self.sess_api.list().json() 346s > self.assertEqual(sessions, [newsession]) 346s E AssertionError: Lists differ: [{'id': '814472ed-722a-4dc8-be16-1a8b0c1e5dd1', 'p[553 chars]ne}}] != [{'id': '7292372f-b7ba-4985-b00a-9fcc2b75c4cf', 'p[279 chars]ne}}] 346s E 346s E First differing element 0: 346s E {'id': '814472ed-722a-4dc8-be16-1a8b0c1e5dd1', 'p[218 chars]: 0}} 346s E {'id': '7292372f-b7ba-4985-b00a-9fcc2b75c4cf', 'p[278 chars]one}} 346s E 346s E First list contains 1 additional elements. 346s E First extra element 1: 346s E {'id': '7292372f-b7ba-4985-b00a-9fcc2b75c4cf', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '5ca9eb88-9e50-4f98-88b6-8c16a4e36218', 'name': 'python3', 'last_activity': '2026-01-22T18:29:05.581951Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 346s E 346s E Diff is 830 characters long. Set self.maxDiff to None to see it. 346s 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 346s ------------------------------ Captured log call ------------------------------- 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 346s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzu1p83g1/runtime/kernel-5ca9eb88-9e50-4f98-88b6-8c16a4e36218.json'] 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59373 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38199 346s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5ca9eb88-9e50-4f98-88b6-8c16a4e36218, name: python3 346s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 346s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 19.070000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.660000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.540000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.570000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 60ba6b73-afd3-4034-86ab-b3034080e0c8 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 60ba6b73-afd3-4034-86ab-b3034080e0c8 346s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/814472ed-722a-4dc8-be16-1a8b0c1e5dd1 (127.0.0.1) 1.900000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5ca9eb88-9e50-4f98-88b6-8c16a4e36218 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5ca9eb88-9e50-4f98-88b6-8c16a4e36218 346s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 346s await kernel_awaitable 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 346s result = await obj 346s ^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7292372f-b7ba-4985-b00a-9fcc2b75c4cf (127.0.0.1) 346s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7292372f-b7ba-4985-b00a-9fcc2b75c4cf', version='HTTP/1.1', remote_ip='127.0.0.1') 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 346s result = await result 346s ^^^^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 346s future.result() 346s ~~~~~~~~~~~~~^^ 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 346s yielded = self.gen.throw(exc) 346s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 346s yield maybe_future(sm.delete_session(session_id)) 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 346s value = future.result() 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 346s yielded = self.gen.throw(exc) 346s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 346s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 346s value = future.result() 346s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 346s raise self._exception.with_traceback(self._exception_tb) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 346s result = coro.send(None) 346s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 346s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 346s raise km.ready.exception() # type: ignore[misc] 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 346s await kernel_awaitable 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 346s result = await obj 346s ^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s WARNING NotebookApp:handlers.py:612 Unhandled error 346s ERROR NotebookApp:log.py:55 { 346s "Host": "localhost:12341", 346s "Accept": "*/*", 346s "User-Agent": "python-requests/2.32.5" 346s } 346s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/7292372f-b7ba-4985-b00a-9fcc2b75c4cf (127.0.0.1) 9.560000ms referer=None 346s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 346s 346s @self.addCleanup 346s def cleanup_sessions(): 346s for session in self.sess_api.list().json(): 346s > self.sess_api.delete(session['id']) 346s 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 346s return self._req('DELETE', id) 346s ^^^^^^^^^^^^^^^^^^^^^^^ 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 346s response.raise_for_status() 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s 346s self = 346s 346s def raise_for_status(self): 346s """Raises :class:`HTTPError`, if one occurred.""" 346s 346s http_error_msg = "" 346s if isinstance(self.reason, bytes): 346s # We attempt to decode utf-8 first because some servers 346s # choose to localize their reason strings. If the string 346s # isn't utf-8, we fall back to iso-8859-1 for all other 346s # encodings. (See PR #3538) 346s try: 346s reason = self.reason.decode("utf-8") 346s except UnicodeDecodeError: 346s reason = self.reason.decode("iso-8859-1") 346s else: 346s reason = self.reason 346s 346s if 400 <= self.status_code < 500: 346s http_error_msg = ( 346s f"{self.status_code} Client Error: {reason} for url: {self.url}" 346s ) 346s 346s elif 500 <= self.status_code < 600: 346s http_error_msg = ( 346s f"{self.status_code} Server Error: {reason} for url: {self.url}" 346s ) 346s 346s if http_error_msg: 346s > raise HTTPError(http_error_msg, response=self) 346s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7292372f-b7ba-4985-b00a-9fcc2b75c4cf 346s 346s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 346s ---------------------------- Captured stderr setup ----------------------------- 346s Traceback (most recent call last): 346s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 346s return _run_code(code, main_globals, None, 346s "__main__", mod_spec) 346s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 346s exec(code, run_globals) 346s ~~~~^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 346s from ipykernel import kernelapp as app 346s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 346s from .connect import * # noqa: F403 346s ^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 346s from subprocess import PIPE, Popen 346s File "/usr/lib/python3.14/subprocess.py", line 49, in 346s import signal 346s File "/usr/lib/python3.14/signal.py", line 7, in 346s _IntEnum._convert_( 346s ~~~~~~~~~~~~~~~~~~^ 346s 'Signals', __name__, 346s ^^^^^^^^^^^^^^^^^^^^ 346s ...<2 lines>... 346s and (name.startswith('SIG') and not name.startswith('SIG_')) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s or name.startswith('CTRL_')) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3.14/enum.py", line 909, in _convert_ 346s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 346s File "/usr/lib/python3.14/enum.py", line 1895, in convert_class 346s setattr(enum_class, name, member) 346s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3.14/enum.py", line 810, in __setattr__ 346s def __setattr__(cls, name, value): 346s 346s KeyboardInterrupt 346s ------------------------------ Captured log call ------------------------------- 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.620000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 346s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzu1p83g1/runtime/kernel-7fe631c1-9c00-4159-84f5-f47a1630f14f.json'] 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46899 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57497 346s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7fe631c1-9c00-4159-84f5-f47a1630f14f, name: python3 346s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 346s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.720000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5ca9eb88-9e50-4f98-88b6-8c16a4e36218 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5ca9eb88-9e50-4f98-88b6-8c16a4e36218 346s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/7292372f-b7ba-4985-b00a-9fcc2b75c4cf (127.0.0.1) 3.300000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.410000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.450000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7fe631c1-9c00-4159-84f5-f47a1630f14f 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7fe631c1-9c00-4159-84f5-f47a1630f14f 346s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 346s await kernel_awaitable 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 346s result = await obj 346s ^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7292372f-b7ba-4985-b00a-9fcc2b75c4cf (127.0.0.1) 346s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7292372f-b7ba-4985-b00a-9fcc2b75c4cf', version='HTTP/1.1', remote_ip='127.0.0.1') 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 346s result = await result 346s ^^^^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 346s future.result() 346s ~~~~~~~~~~~~~^^ 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 346s yielded = self.gen.throw(exc) 346s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 346s yield maybe_future(sm.delete_session(session_id)) 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 346s value = future.result() 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 346s yielded = self.gen.throw(exc) 346s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 346s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 346s value = future.result() 346s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 346s raise self._exception.with_traceback(self._exception_tb) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 346s result = coro.send(None) 346s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 346s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 346s raise km.ready.exception() # type: ignore[misc] 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 346s await kernel_awaitable 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 346s result = await obj 346s ^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s WARNING NotebookApp:handlers.py:612 Unhandled error 346s ERROR NotebookApp:log.py:55 { 346s "Host": "localhost:12341", 346s "Accept": "*/*", 346s "User-Agent": "python-requests/2.32.5" 346s } 346s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/7292372f-b7ba-4985-b00a-9fcc2b75c4cf (127.0.0.1) 9.620000ms referer=None 346s --------------------------- Captured stderr teardown --------------------------- 346s Traceback (most recent call last): 346s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 346s return _run_code(code, main_globals, None, 346s "__main__", mod_spec) 346s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 346s exec(code, run_globals) 346s ~~~~^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 346s from ipykernel import kernelapp as app 346s File "", line 1371, in _find_and_load 346s File "", line 1333, in _find_and_load_unlocked 346s File "", line 1267, in _find_spec 346s File "", line 1292, in find_spec 346s File "", line 1266, in _get_spec 346s File "", line 1384, in find_spec 346s File "", line 166, in _path_isfile 346s File "", line 158, in _path_is_mode_type 346s File "", line 152, in _path_stat 346s KeyboardInterrupt 346s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 346s 346s @self.addCleanup 346s def cleanup_sessions(): 346s for session in self.sess_api.list().json(): 346s > self.sess_api.delete(session['id']) 346s 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 346s return self._req('DELETE', id) 346s ^^^^^^^^^^^^^^^^^^^^^^^ 346s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 346s response.raise_for_status() 346s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 346s 346s self = 346s 346s def raise_for_status(self): 346s """Raises :class:`HTTPError`, if one occurred.""" 346s 346s http_error_msg = "" 346s if isinstance(self.reason, bytes): 346s # We attempt to decode utf-8 first because some servers 346s # choose to localize their reason strings. If the string 346s # isn't utf-8, we fall back to iso-8859-1 for all other 346s # encodings. (See PR #3538) 346s try: 346s reason = self.reason.decode("utf-8") 346s except UnicodeDecodeError: 346s reason = self.reason.decode("iso-8859-1") 346s else: 346s reason = self.reason 346s 346s if 400 <= self.status_code < 500: 346s http_error_msg = ( 346s f"{self.status_code} Client Error: {reason} for url: {self.url}" 346s ) 346s 346s elif 500 <= self.status_code < 600: 346s http_error_msg = ( 346s f"{self.status_code} Server Error: {reason} for url: {self.url}" 346s ) 346s 346s if http_error_msg: 346s > raise HTTPError(http_error_msg, response=self) 346s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7292372f-b7ba-4985-b00a-9fcc2b75c4cf 346s 346s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 346s ------------------------------ Captured log call ------------------------------- 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.750000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 346s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzu1p83g1/runtime/kernel-dc789608-3004-4c5c-8e8d-d56640f10dc5.json'] 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48497 346s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52855 346s INFO NotebookApp:kernelmanager.py:179 Kernel started: dc789608-3004-4c5c-8e8d-d56640f10dc5, name: python3 346s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpzu1p83g1/notebooks/foo'} 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7fe631c1-9c00-4159-84f5-f47a1630f14f 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7fe631c1-9c00-4159-84f5-f47a1630f14f 346s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/7292372f-b7ba-4985-b00a-9fcc2b75c4cf (127.0.0.1) 19.840000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 2.440000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.810000ms 346s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 346s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dc789608-3004-4c5c-8e8d-d56640f10dc5 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dc789608-3004-4c5c-8e8d-d56640f10dc5 346s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 346s await kernel_awaitable 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 346s result = await obj 346s ^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7292372f-b7ba-4985-b00a-9fcc2b75c4cf (127.0.0.1) 346s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7292372f-b7ba-4985-b00a-9fcc2b75c4cf', version='HTTP/1.1', remote_ip='127.0.0.1') 346s Traceback (most recent call last): 346s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 346s result = await result 346s ^^^^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 346s future.result() 346s ~~~~~~~~~~~~~^^ 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 346s yielded = self.gen.throw(exc) 346s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 346s yield maybe_future(sm.delete_session(session_id)) 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 346s value = future.result() 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 346s yielded = self.gen.throw(exc) 346s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 346s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 346s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 346s value = future.result() 346s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 346s raise self._exception.with_traceback(self._exception_tb) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 346s result = coro.send(None) 346s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 346s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 346s raise km.ready.exception() # type: ignore[misc] 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 346s await kernel_awaitable 346s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 346s result = await obj 346s ^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 346s raise e 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 346s out = await method(self, *args, **kwargs) 346s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 346s await self._async_finish_shutdown(restart=restart) 346s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 346s await asyncio.wait_for( 346s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 346s ) 346s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 346s async with timeouts.timeout(timeout): 346s ~~~~~~~~~~~~~~~~^^^^^^^^^ 346s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 346s raise RuntimeError("Timeout should be used inside a task") 346s RuntimeError: Timeout should be used inside a task 346s WARNING NotebookApp:handlers.py:612 Unhandled error 346s ERROR NotebookApp:log.py:55 { 346s "Host": "localhost:12341", 346s "Accept": "*/*", 346s "User-Agent": "python-requests/2.32.5" 346s } 346s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/7292372f-b7ba-4985-b00a-9fcc2b75c4cf (127.0.0.1) 9.830000ms referer=None 346s --------------------------- Captured stderr teardown --------------------------- 346s Traceback (most recent call last): 346s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 346s return _run_code(code, main_globals, None, 346s "__main__", mod_spec) 346s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 346s exec(code, run_globals) 346s ~~~~^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 346s from pathlib import Path 346s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 346s from glob import _StringGlobber, _no_recurse_symlinks 346s File "/usr/lib/python3.14/glob.py", line 5, in 346s import re 346s File "/usr/lib/python3.14/re/__init__.py", line 143, in 346s @enum._simple_enum(enum.IntFlag, boundary=enum.KEEP) 346s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3.14/enum.py", line 1838, in convert_class 346s setattr(enum_class, name, member) 346s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 346s File "/usr/lib/python3.14/enum.py", line 810, in __setattr__ 346s def __setattr__(cls, name, value): 346s 346s KeyboardInterrupt 346s ---------------------------- Captured log teardown ----------------------------- 346s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7fe631c1-9c00-4159-84f5-f47a1630f14f 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 60ba6b73-afd3-4034-86ab-b3034080e0c8 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dc789608-3004-4c5c-8e8d-d56640f10dc5 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9d46b06f-73eb-4848-9986-e12cad451f89 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c246f18c-d395-4a4f-b56a-6d98ddbe8bfe 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5ca9eb88-9e50-4f98-88b6-8c16a4e36218 346s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 655bcbb7-e064-47b8-8b92-5fbd8eb43fa4 346s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 346s =============================== warnings summary =============================== 346s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 346s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 346s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 346s return LooseVersion(v) >= LooseVersion(check) 346s 346s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 346s services/kernels/tests/test_kernels_api.py: 72 warnings 346s services/sessions/tests/test_sessions_api.py: 88 warnings 346s /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). 346s dt = unaware(*args, **kwargs) 346s 346s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 346s /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 346s pytestmark = pytest.mark.integration_tests 346s 346s services/kernels/tests/test_kernels_api.py: 6 warnings 346s services/sessions/tests/test_sessions_api.py: 6 warnings 346s /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 346s policy = events.get_event_loop_policy() 346s 346s services/kernels/tests/test_kernels_api.py: 22 warnings 346s services/sessions/tests/test_sessions_api.py: 17 warnings 346s /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 346s loop = events.get_event_loop_policy().get_event_loop() 346s 346s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 346s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 346s loop.make_current() 346s 346s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 346s =========================== short test summary info ============================ 346s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 346s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 346s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 346s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 346s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 346s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 346s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 346s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 346s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 346s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 346s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 346s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 346s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 346s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 346s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 346s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 346s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 346s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 346s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 346s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 346s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 346s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 346s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 346s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 346s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 346s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 346s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 346s ========== 23 failed, 307 deselected, 216 warnings, 4 errors in 7.17s ========== 347s *** END OF RUN 4: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 347s *** 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 350s ============================= test session starts ============================== 350s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 350s rootdir: /tmp/autopkgtest.2Ulezp/autopkgtest_tmp 350s plugins: typeguard-4.4.4 350s collected 330 items / 307 deselected / 23 selected 350s run-last-failure: rerun previous 23 failures 350s 353s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 39%] 354s services/sessions/tests/test_sessions_api.py FFFFFEFFFFFFFEFF [100%] 354s 354s ==================================== ERRORS ==================================== 354s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 354s 354s self = 354s 354s def tearDown(self): 354s for k in self.kern_api.list().json(): 354s > self.kern_api.shutdown(k['id']) 354s 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 354s return self._req('DELETE', id) 354s ^^^^^^^^^^^^^^^^^^^^^^^ 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 354s response.raise_for_status() 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s 354s self = 354s 354s def raise_for_status(self): 354s """Raises :class:`HTTPError`, if one occurred.""" 354s 354s http_error_msg = "" 354s if isinstance(self.reason, bytes): 354s # We attempt to decode utf-8 first because some servers 354s # choose to localize their reason strings. If the string 354s # isn't utf-8, we fall back to iso-8859-1 for all other 354s # encodings. (See PR #3538) 354s try: 354s reason = self.reason.decode("utf-8") 354s except UnicodeDecodeError: 354s reason = self.reason.decode("iso-8859-1") 354s else: 354s reason = self.reason 354s 354s if 400 <= self.status_code < 500: 354s http_error_msg = ( 354s f"{self.status_code} Client Error: {reason} for url: {self.url}" 354s ) 354s 354s elif 500 <= self.status_code < 600: 354s http_error_msg = ( 354s f"{self.status_code} Server Error: {reason} for url: {self.url}" 354s ) 354s 354s if http_error_msg: 354s > raise HTTPError(http_error_msg, response=self) 354s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/21416e45-3d6b-4895-a3b6-077faf5bc8e3 354s 354s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 354s ----------------------------- Captured stderr call ----------------------------- 354s Traceback (most recent call last): 354s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 354s return _run_code(code, main_globals, None, 354s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 354s exec(code, run_globals) 354s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 354s from pathlib import Path 354s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 354s from glob import _StringGlobber, _no_recurse_symlinks 354s File "/usr/lib/python3.14/glob.py", line 3, in 354s import contextlib 354s File "/usr/lib/python3.14/contextlib.py", line 775, in 354s class nullcontext(AbstractContextManager, AbstractAsyncContextManager): 354s File "/usr/lib/python3.14/abc.py", line 106, in __new__ 354s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 354s KeyboardInterrupt 354s ------------------------------ Captured log call ------------------------------- 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 354s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0w3owpgu/runtime/kernel-21416e45-3d6b-4895-a3b6-077faf5bc8e3.json'] 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50581 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52757 354s INFO NotebookApp:kernelmanager.py:179 Kernel started: 21416e45-3d6b-4895-a3b6-077faf5bc8e3, name: python3 354s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 354s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 20.210000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.500000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 354s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0w3owpgu/runtime/kernel-5d776c10-e7a0-4c35-9914-78077023e95c.json'] 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38195 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45223 354s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5d776c10-e7a0-4c35-9914-78077023e95c, name: python3 354s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 354s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 20.350000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.380000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 5d776c10-e7a0-4c35-9914-78077023e95c 354s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/5d776c10-e7a0-4c35-9914-78077023e95c/interrupt (127.0.0.1) 3.460000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 354s yield maybe_future(km.restart_kernel(kernel_id)) 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 354s value = future.result() 354s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 354s raise self._exception.with_traceback(self._exception_tb) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 354s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 354s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 354s return _runner_map[name].run(inner) 354s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 354s return fut.result(None) 354s ~~~~~~~~~~^^^^^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 354s return self.__get_result() 354s ~~~~~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 354s raise self._exception 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 354s await ensure_async(kernel.restart_kernel(now=now)) 354s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 354s return _runner_map[name].run(inner) 354s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 354s return fut.result(None) 354s ~~~~~~~~~~^^^^^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 354s return self.__get_result() 354s ~~~~~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 354s raise self._exception 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 354s await self._async_shutdown_kernel(now=now, restart=True) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 354s raise e 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:log.py:55 { 354s "Host": "localhost:12341", 354s "Accept": "*/*", 354s "User-Agent": "python-requests/2.32.5" 354s } 354s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/5d776c10-e7a0-4c35-9914-78077023e95c/restart (127.0.0.1) 7.620000ms referer=None 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.480000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 21416e45-3d6b-4895-a3b6-077faf5bc8e3 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 21416e45-3d6b-4895-a3b6-077faf5bc8e3 354s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/21416e45-3d6b-4895-a3b6-077faf5bc8e3 (127.0.0.1) 354s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/21416e45-3d6b-4895-a3b6-077faf5bc8e3', version='HTTP/1.1', remote_ip='127.0.0.1') 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 354s result = await result 354s ^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 354s yielded = ctx_run(next, result) 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 354s yield maybe_future(km.shutdown_kernel(kernel_id)) 354s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 354s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 354s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 354s return _runner_map[name].run(inner) 354s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 354s return fut.result(None) 354s ~~~~~~~~~~^^^^^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 354s return self.__get_result() 354s ~~~~~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 354s raise self._exception 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 354s stopper = ensure_async(km.shutdown_kernel(now, restart)) 354s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 354s return _runner_map[name].run(inner) 354s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 354s return fut.result(None) 354s ~~~~~~~~~~^^^^^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 354s return self.__get_result() 354s ~~~~~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 354s raise self._exception 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 354s raise e 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s WARNING NotebookApp:handlers.py:612 Unhandled error 354s ERROR NotebookApp:log.py:55 { 354s "Host": "localhost:12341", 354s "Accept": "*/*", 354s "User-Agent": "python-requests/2.32.5" 354s } 354s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/21416e45-3d6b-4895-a3b6-077faf5bc8e3 (127.0.0.1) 10.440000ms referer=None 354s --------------------------- Captured stderr teardown --------------------------- 354s Traceback (most recent call last): 354s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 354s return _run_code(code, main_globals, None, 354s "__main__", mod_spec) 354s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 354s exec(code, run_globals) 354s ~~~~^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 354s from ipykernel import kernelapp as app 354s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 354s from .connect import * # noqa: F403 354s ^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 354s import jupyter_client 354s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 354s from .asynchronous import AsyncKernelClient 354s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 354s from .client import AsyncKernelClient # noqa 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 354s import zmq.asyncio 354s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 354s from zmq import sugar 354s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 354s from zmq.sugar import context, frame, poll, socket, tracker, version 354s File "/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 23, in 354s from .socket import Socket, SyncSocket 354s File "/usr/lib/python3/dist-packages/zmq/sugar/socket.py", line 42, in 354s _SocketType = TypeVar("_SocketType", bound="Socket") 354s File "/usr/lib/python3.14/typing.py", line 202, in _type_check 354s arg = _type_convert(arg, module=module, allow_special_forms=allow_special_forms, owner=owner) 354s File "/usr/lib/python3.14/typing.py", line 180, in _type_convert 354s return _make_forward_ref(arg, module=module, is_class=allow_special_forms, owner=owner) 354s File "/usr/lib/python3.14/typing.py", line 958, in _make_forward_ref 354s forward_ref = _lazy_annotationlib.ForwardRef(code, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3.14/typing.py", line 168, in __getattr__ 354s import annotationlib 354s File "/usr/lib/python3.14/annotationlib.py", line 3, in 354s import ast 354s File "/usr/lib/python3.14/ast.py", line 577, in 354s class slice(AST): 354s """Deprecated AST node class.""" 354s KeyboardInterrupt 354s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 354s 354s self = 354s 354s def tearDown(self): 354s for k in self.kern_api.list().json(): 354s > self.kern_api.shutdown(k['id']) 354s 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 354s return self._req('DELETE', id) 354s ^^^^^^^^^^^^^^^^^^^^^^^ 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 354s response.raise_for_status() 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s 354s self = 354s 354s def raise_for_status(self): 354s """Raises :class:`HTTPError`, if one occurred.""" 354s 354s http_error_msg = "" 354s if isinstance(self.reason, bytes): 354s # We attempt to decode utf-8 first because some servers 354s # choose to localize their reason strings. If the string 354s # isn't utf-8, we fall back to iso-8859-1 for all other 354s # encodings. (See PR #3538) 354s try: 354s reason = self.reason.decode("utf-8") 354s except UnicodeDecodeError: 354s reason = self.reason.decode("iso-8859-1") 354s else: 354s reason = self.reason 354s 354s if 400 <= self.status_code < 500: 354s http_error_msg = ( 354s f"{self.status_code} Client Error: {reason} for url: {self.url}" 354s ) 354s 354s elif 500 <= self.status_code < 600: 354s http_error_msg = ( 354s f"{self.status_code} Server Error: {reason} for url: {self.url}" 354s ) 354s 354s if http_error_msg: 354s > raise HTTPError(http_error_msg, response=self) 354s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/299b3483-1b22-42f0-89e2-79ec790bed75 354s 354s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 354s ----------------------------- Captured stderr call ----------------------------- 354s Traceback (most recent call last): 354s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 354s return _run_code(code, main_globals, None, 354s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 354s exec(code, run_globals) 354s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 354s from pathlib import Path 354s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 354s from glob import _StringGlobber, _no_recurse_symlinks 354s File "/usr/lib/python3.14/glob.py", line 3, in 354s import contextlib 354s File "/usr/lib/python3.14/contextlib.py", line 6, in 354s from collections import deque 354s File "/usr/lib/python3.14/collections/__init__.py", line 38, in 354s from keyword import iskeyword as _iskeyword 354s File "", line 1368, in _find_and_load 354s File "", line 420, in __enter__ 354s File "", line 459, in _get_module_lock 354s KeyboardInterrupt 354s ------------------------------ Captured log call ------------------------------- 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 354s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpazcuwd6s/runtime/kernel-299b3483-1b22-42f0-89e2-79ec790bed75.json'] 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34759 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49179 354s INFO NotebookApp:kernelmanager.py:179 Kernel started: 299b3483-1b22-42f0-89e2-79ec790bed75, name: python3 354s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 354s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 17.690000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.260000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 354s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpazcuwd6s/runtime/kernel-6949c2a9-433c-406b-a7d0-3d2bc6f0617b.json'] 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45093 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50557 354s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6949c2a9-433c-406b-a7d0-3d2bc6f0617b, name: python3 354s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 354s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 17.840000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.280000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 6949c2a9-433c-406b-a7d0-3d2bc6f0617b 354s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/6949c2a9-433c-406b-a7d0-3d2bc6f0617b/interrupt (127.0.0.1) 1.410000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 354s yield maybe_future(km.restart_kernel(kernel_id)) 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 354s value = future.result() 354s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 354s raise self._exception.with_traceback(self._exception_tb) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 354s result = coro.throw(exc) 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 354s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 354s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 354s yield self # This tells Task to wait for completion. 354s ^^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 354s future.result() 354s ~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 354s raise self._exception.with_traceback(self._exception_tb) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 354s await ensure_async(kernel.restart_kernel(now=now)) 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 354s result = await obj 354s ^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 354s await self._async_shutdown_kernel(now=now, restart=True) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 354s raise e 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:log.py:55 { 354s "Host": "localhost:12341", 354s "Accept": "*/*", 354s "User-Agent": "python-requests/2.32.5" 354s } 354s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/6949c2a9-433c-406b-a7d0-3d2bc6f0617b/restart (127.0.0.1) 4.770000ms referer=None 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.200000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 299b3483-1b22-42f0-89e2-79ec790bed75 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 299b3483-1b22-42f0-89e2-79ec790bed75 354s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 354s await kernel_awaitable 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 354s result = await obj 354s ^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 354s raise e 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/299b3483-1b22-42f0-89e2-79ec790bed75 (127.0.0.1) 354s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/299b3483-1b22-42f0-89e2-79ec790bed75', version='HTTP/1.1', remote_ip='127.0.0.1') 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 354s result = await result 354s ^^^^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 354s future.result() 354s ~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 354s yielded = self.gen.throw(exc) 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 354s yield maybe_future(km.shutdown_kernel(kernel_id)) 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 354s value = future.result() 354s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 354s raise self._exception.with_traceback(self._exception_tb) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 354s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 354s raise km.ready.exception() # type: ignore[misc] 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 354s await kernel_awaitable 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 354s result = await obj 354s ^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 354s raise e 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s WARNING NotebookApp:handlers.py:612 Unhandled error 354s ERROR NotebookApp:log.py:55 { 354s "Host": "localhost:12341", 354s "Accept": "*/*", 354s "User-Agent": "python-requests/2.32.5" 354s } 354s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/299b3483-1b22-42f0-89e2-79ec790bed75 (127.0.0.1) 8.070000ms referer=None 354s --------------------------- Captured stderr teardown --------------------------- 354s Traceback (most recent call last): 354s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 354s return _run_code(code, main_globals, None, 354s "__main__", mod_spec) 354s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 354s exec(code, run_globals) 354s ~~~~^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 354s from ipykernel import kernelapp as app 354s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 354s from .connect import * # noqa: F403 354s ^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 354s import jupyter_client 354s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 354s from .asynchronous import AsyncKernelClient 354s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 354s from .client import AsyncKernelClient # noqa 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 354s import zmq.asyncio 354s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 354s from zmq import backend 354s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 354s _ns = select_backend(first) 354s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 354s mod = import_module(name) 354s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 354s return _bootstrap._gcd_import(name[level:], package, level) 354s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 354s from . import _zmq 354s File "_zmq.py", line 156, in init zmq.backend.cython._zmq 354s File "/usr/lib/python3/dist-packages/zmq/constants.py", line 422, in 354s class PollEvent(IntFlag): 354s ...<8 lines>... 354s POLLPRI = 8 354s File "/usr/lib/python3.14/enum.py", line 549, in __new__ 354s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 354s File "/usr/lib/python3.14/enum.py", line 255, in __set_name__ 354s enum_member = enum_class._new_member_(enum_class, *args) 354s KeyboardInterrupt 354s Error calling __set_name__ on '_proto_member' instance 'POLLIN' in 'PollEvent' 354s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 354s 354s @self.addCleanup 354s def cleanup_sessions(): 354s for session in self.sess_api.list().json(): 354s > self.sess_api.delete(session['id']) 354s 354s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 354s return self._req('DELETE', id) 354s ^^^^^^^^^^^^^^^^^^^^^^^ 354s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 354s response.raise_for_status() 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s 354s self = 354s 354s def raise_for_status(self): 354s """Raises :class:`HTTPError`, if one occurred.""" 354s 354s http_error_msg = "" 354s if isinstance(self.reason, bytes): 354s # We attempt to decode utf-8 first because some servers 354s # choose to localize their reason strings. If the string 354s # isn't utf-8, we fall back to iso-8859-1 for all other 354s # encodings. (See PR #3538) 354s try: 354s reason = self.reason.decode("utf-8") 354s except UnicodeDecodeError: 354s reason = self.reason.decode("iso-8859-1") 354s else: 354s reason = self.reason 354s 354s if 400 <= self.status_code < 500: 354s http_error_msg = ( 354s f"{self.status_code} Client Error: {reason} for url: {self.url}" 354s ) 354s 354s elif 500 <= self.status_code < 600: 354s http_error_msg = ( 354s f"{self.status_code} Server Error: {reason} for url: {self.url}" 354s ) 354s 354s if http_error_msg: 354s > raise HTTPError(http_error_msg, response=self) 354s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/30ecb48d-c953-4f5c-8a5b-a277f8c858fb 354s 354s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 354s ------------------------------ Captured log call ------------------------------- 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 354s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmponksflhm/runtime/kernel-be9c5106-e694-4b22-9239-1ef15d240ab3.json'] 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33563 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59659 354s INFO NotebookApp:kernelmanager.py:179 Kernel started: be9c5106-e694-4b22-9239-1ef15d240ab3, name: python3 354s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 354s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 21.050000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.570000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.470000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.470000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5178233b-5dec-46c0-ad14-ab7a26a7f8aa 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5178233b-5dec-46c0-ad14-ab7a26a7f8aa 354s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/67c72f50-c947-4746-bc9a-67af9389ea6b (127.0.0.1) 2.200000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for be9c5106-e694-4b22-9239-1ef15d240ab3 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: be9c5106-e694-4b22-9239-1ef15d240ab3 354s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/30ecb48d-c953-4f5c-8a5b-a277f8c858fb (127.0.0.1) 354s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/30ecb48d-c953-4f5c-8a5b-a277f8c858fb', version='HTTP/1.1', remote_ip='127.0.0.1') 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 354s result = await result 354s ^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 354s yielded = self.gen.throw(exc) 354s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 354s yield maybe_future(sm.delete_session(session_id)) 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 354s value = future.result() 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 354s yielded = self.gen.send(value) 354s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 354s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 354s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 354s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 354s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 354s return _runner_map[name].run(inner) 354s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 354s return fut.result(None) 354s ~~~~~~~~~~^^^^^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 354s return self.__get_result() 354s ~~~~~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 354s raise self._exception 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 354s stopper = ensure_async(km.shutdown_kernel(now, restart)) 354s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 354s return _runner_map[name].run(inner) 354s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 354s return fut.result(None) 354s ~~~~~~~~~~^^^^^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 354s return self.__get_result() 354s ~~~~~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 354s raise self._exception 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 354s raise e 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s WARNING NotebookApp:handlers.py:612 Unhandled error 354s ERROR NotebookApp:log.py:55 { 354s "Host": "localhost:12341", 354s "Accept": "*/*", 354s "User-Agent": "python-requests/2.32.5" 354s } 354s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/30ecb48d-c953-4f5c-8a5b-a277f8c858fb (127.0.0.1) 10.530000ms referer=None 354s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 354s 354s @self.addCleanup 354s def cleanup_sessions(): 354s for session in self.sess_api.list().json(): 354s > self.sess_api.delete(session['id']) 354s 354s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 354s return self._req('DELETE', id) 354s ^^^^^^^^^^^^^^^^^^^^^^^ 354s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 354s response.raise_for_status() 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s 354s self = 354s 354s def raise_for_status(self): 354s """Raises :class:`HTTPError`, if one occurred.""" 354s 354s http_error_msg = "" 354s if isinstance(self.reason, bytes): 354s # We attempt to decode utf-8 first because some servers 354s # choose to localize their reason strings. If the string 354s # isn't utf-8, we fall back to iso-8859-1 for all other 354s # encodings. (See PR #3538) 354s try: 354s reason = self.reason.decode("utf-8") 354s except UnicodeDecodeError: 354s reason = self.reason.decode("iso-8859-1") 354s else: 354s reason = self.reason 354s 354s if 400 <= self.status_code < 500: 354s http_error_msg = ( 354s f"{self.status_code} Client Error: {reason} for url: {self.url}" 354s ) 354s 354s elif 500 <= self.status_code < 600: 354s http_error_msg = ( 354s f"{self.status_code} Server Error: {reason} for url: {self.url}" 354s ) 354s 354s if http_error_msg: 354s > raise HTTPError(http_error_msg, response=self) 354s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e4e68038-91b8-4497-8946-9ce790eb7863 354s 354s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 354s ------------------------------ Captured log call ------------------------------- 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 354s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptyd3c86n/runtime/kernel-c4fe2f30-c682-4204-bf2b-efbf57c7eacd.json'] 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53025 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41303 354s INFO NotebookApp:kernelmanager.py:179 Kernel started: c4fe2f30-c682-4204-bf2b-efbf57c7eacd, name: python3 354s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 354s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.610000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.700000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.570000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.480000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a0e10f17-5eda-4bbf-b690-1cc3b80dc628 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a0e10f17-5eda-4bbf-b690-1cc3b80dc628 354s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/be51e148-28fe-4da7-bae2-b755b895a3f3 (127.0.0.1) 1.800000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c4fe2f30-c682-4204-bf2b-efbf57c7eacd 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c4fe2f30-c682-4204-bf2b-efbf57c7eacd 354s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 354s await kernel_awaitable 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 354s result = await obj 354s ^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 354s raise e 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e4e68038-91b8-4497-8946-9ce790eb7863 (127.0.0.1) 354s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e4e68038-91b8-4497-8946-9ce790eb7863', version='HTTP/1.1', remote_ip='127.0.0.1') 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 354s result = await result 354s ^^^^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 354s future.result() 354s ~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 354s yielded = self.gen.throw(exc) 354s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 354s yield maybe_future(sm.delete_session(session_id)) 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 354s value = future.result() 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 354s yielded = self.gen.throw(exc) 354s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 354s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 354s value = future.result() 354s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 354s raise self._exception.with_traceback(self._exception_tb) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 354s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 354s raise km.ready.exception() # type: ignore[misc] 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 354s await kernel_awaitable 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 354s result = await obj 354s ^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 354s raise e 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s WARNING NotebookApp:handlers.py:612 Unhandled error 354s ERROR NotebookApp:log.py:55 { 354s "Host": "localhost:12341", 354s "Accept": "*/*", 354s "User-Agent": "python-requests/2.32.5" 354s } 354s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/e4e68038-91b8-4497-8946-9ce790eb7863 (127.0.0.1) 9.260000ms referer=None 354s =================================== FAILURES =================================== 354s ______________________ KernelAPITest.test_default_kernel _______________________ 354s 354s self = 354s 354s def tearDown(self): 354s for k in self.kern_api.list().json(): 354s > self.kern_api.shutdown(k['id']) 354s 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 354s return self._req('DELETE', id) 354s ^^^^^^^^^^^^^^^^^^^^^^^ 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 354s response.raise_for_status() 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s 354s self = 354s 354s def raise_for_status(self): 354s """Raises :class:`HTTPError`, if one occurred.""" 354s 354s http_error_msg = "" 354s if isinstance(self.reason, bytes): 354s # We attempt to decode utf-8 first because some servers 354s # choose to localize their reason strings. If the string 354s # isn't utf-8, we fall back to iso-8859-1 for all other 354s # encodings. (See PR #3538) 354s try: 354s reason = self.reason.decode("utf-8") 354s except UnicodeDecodeError: 354s reason = self.reason.decode("iso-8859-1") 354s else: 354s reason = self.reason 354s 354s if 400 <= self.status_code < 500: 354s http_error_msg = ( 354s f"{self.status_code} Client Error: {reason} for url: {self.url}" 354s ) 354s 354s elif 500 <= self.status_code < 600: 354s http_error_msg = ( 354s f"{self.status_code} Server Error: {reason} for url: {self.url}" 354s ) 354s 354s if http_error_msg: 354s > raise HTTPError(http_error_msg, response=self) 354s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/43d90ce4-d21b-4a00-bdc1-12a39a050fc0 354s 354s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 354s ------------------------------ Captured log setup ------------------------------ 354s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp0w3owpgu/config', '/tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp0w3owpgu/etc/jupyter'] for config files 354s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp0w3owpgu/etc/jupyter 354s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 354s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 354s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp0w3owpgu/config 354s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp0w3owpgu/etc/jupyter 354s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 354s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 354s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp0w3owpgu/config 354s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp0w3owpgu/notebooks 354s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 354s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 354s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 354s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 354s WARNING NotebookApp:handlers.py:612 Forbidden 354s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (127.0.0.1) 2.810000ms referer=None 354s ------------------------------ Captured log call ------------------------------- 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 354s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0w3owpgu/runtime/kernel-43d90ce4-d21b-4a00-bdc1-12a39a050fc0.json'] 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38277 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37855 354s INFO NotebookApp:kernelmanager.py:179 Kernel started: 43d90ce4-d21b-4a00-bdc1-12a39a050fc0, name: python3 354s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 354s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 71.810000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.800000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 43d90ce4-d21b-4a00-bdc1-12a39a050fc0 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 43d90ce4-d21b-4a00-bdc1-12a39a050fc0 354s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/43d90ce4-d21b-4a00-bdc1-12a39a050fc0 (127.0.0.1) 354s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/43d90ce4-d21b-4a00-bdc1-12a39a050fc0', version='HTTP/1.1', remote_ip='127.0.0.1') 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 354s result = await result 354s ^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 354s yielded = ctx_run(next, result) 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 354s yield maybe_future(km.shutdown_kernel(kernel_id)) 354s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 354s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 354s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 354s return _runner_map[name].run(inner) 354s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 354s return fut.result(None) 354s ~~~~~~~~~~^^^^^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 354s return self.__get_result() 354s ~~~~~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 354s raise self._exception 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 354s stopper = ensure_async(km.shutdown_kernel(now, restart)) 354s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 354s return _runner_map[name].run(inner) 354s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 354s return fut.result(None) 354s ~~~~~~~~~~^^^^^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 354s return self.__get_result() 354s ~~~~~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 354s raise self._exception 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 354s raise e 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s WARNING NotebookApp:handlers.py:612 Unhandled error 354s ERROR NotebookApp:log.py:55 { 354s "Host": "localhost:12341", 354s "Accept": "*/*", 354s "User-Agent": "python-requests/2.32.5" 354s } 354s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/43d90ce4-d21b-4a00-bdc1-12a39a050fc0 (127.0.0.1) 13.610000ms referer=None 354s --------------------------- Captured stderr teardown --------------------------- 354s Traceback (most recent call last): 354s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 354s return _run_code(code, main_globals, None, 354s "__main__", mod_spec) 354s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 354s exec(code, run_globals) 354s ~~~~^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 354s from pathlib import Path 354s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 354s from glob import _StringGlobber, _no_recurse_symlinks 354s File "/usr/lib/python3.14/glob.py", line 5, in 354s import re 354s File "/usr/lib/python3.14/re/__init__.py", line 125, in 354s import enum 354s File "/usr/lib/python3.14/enum.py", line 1341, in 354s class StrEnum(str, ReprEnum): 354s ...<30 lines>... 354s return name.lower() 354s File "/usr/lib/python3.14/enum.py", line 549, in __new__ 354s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 354s KeyboardInterrupt 354s ______________________ KernelAPITest.test_kernel_handler _______________________ 354s 354s self = 354s 354s def test_kernel_handler(self): 354s # GET kernel with given id 354s kid = self.kern_api.start().json()['id'] 354s r = self.kern_api.get(kid) 354s kern1 = r.json() 354s self.assertEqual(r.status_code, 200) 354s assert isinstance(kern1, dict) 354s self.assertIn('id', kern1) 354s self.assertEqual(kern1['id'], kid) 354s 354s # Request a bad kernel id and check that a JSON 354s # message is returned! 354s bad_id = '111-111-111-111-111' 354s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 354s self.kern_api.get(bad_id) 354s 354s # DELETE kernel with id 354s > r = self.kern_api.shutdown(kid) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 354s return self._req('DELETE', id) 354s ^^^^^^^^^^^^^^^^^^^^^^^ 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 354s response.raise_for_status() 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s 354s self = 354s 354s def raise_for_status(self): 354s """Raises :class:`HTTPError`, if one occurred.""" 354s 354s http_error_msg = "" 354s if isinstance(self.reason, bytes): 354s # We attempt to decode utf-8 first because some servers 354s # choose to localize their reason strings. If the string 354s # isn't utf-8, we fall back to iso-8859-1 for all other 354s # encodings. (See PR #3538) 354s try: 354s reason = self.reason.decode("utf-8") 354s except UnicodeDecodeError: 354s reason = self.reason.decode("iso-8859-1") 354s else: 354s reason = self.reason 354s 354s if 400 <= self.status_code < 500: 354s http_error_msg = ( 354s f"{self.status_code} Client Error: {reason} for url: {self.url}" 354s ) 354s 354s elif 500 <= self.status_code < 600: 354s http_error_msg = ( 354s f"{self.status_code} Server Error: {reason} for url: {self.url}" 354s ) 354s 354s if http_error_msg: 354s > raise HTTPError(http_error_msg, response=self) 354s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/d207dc21-3048-4df0-a033-bd6a4618b608 354s 354s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 354s ------------------------------ Captured log call ------------------------------- 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 354s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0w3owpgu/runtime/kernel-d207dc21-3048-4df0-a033-bd6a4618b608.json'] 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36091 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53225 354s INFO NotebookApp:kernelmanager.py:179 Kernel started: d207dc21-3048-4df0-a033-bd6a4618b608, name: python3 354s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 354s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 20.680000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/d207dc21-3048-4df0-a033-bd6a4618b608 (127.0.0.1) 1.300000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (127.0.0.1): Kernel does not exist: 111-111-111-111-111 354s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 354s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (127.0.0.1) 1.420000ms referer=None 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d207dc21-3048-4df0-a033-bd6a4618b608 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d207dc21-3048-4df0-a033-bd6a4618b608 354s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/d207dc21-3048-4df0-a033-bd6a4618b608 (127.0.0.1) 354s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/d207dc21-3048-4df0-a033-bd6a4618b608', version='HTTP/1.1', remote_ip='127.0.0.1') 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 354s result = await result 354s ^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 354s yielded = ctx_run(next, result) 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 354s yield maybe_future(km.shutdown_kernel(kernel_id)) 354s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 354s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 354s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 354s return _runner_map[name].run(inner) 354s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 354s return fut.result(None) 354s ~~~~~~~~~~^^^^^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 354s return self.__get_result() 354s ~~~~~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 354s raise self._exception 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 354s stopper = ensure_async(km.shutdown_kernel(now, restart)) 354s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 354s return _runner_map[name].run(inner) 354s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 354s return fut.result(None) 354s ~~~~~~~~~~^^^^^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 354s return self.__get_result() 354s ~~~~~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 354s raise self._exception 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 354s raise e 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s WARNING NotebookApp:handlers.py:612 Unhandled error 354s ERROR NotebookApp:log.py:55 { 354s "Host": "localhost:12341", 354s "Accept": "*/*", 354s "User-Agent": "python-requests/2.32.5" 354s } 354s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/d207dc21-3048-4df0-a033-bd6a4618b608 (12/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 354s gc.collect() 354s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 354s 7.0.0.1) 9.730000ms referer=None 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.530000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 43d90ce4-d21b-4a00-bdc1-12a39a050fc0 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 43d90ce4-d21b-4a00-bdc1-12a39a050fc0 354s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/43d90ce4-d21b-4a00-bdc1-12a39a050fc0 (127.0.0.1) 2.150000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d207dc21-3048-4df0-a033-bd6a4618b608 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d207dc21-3048-4df0-a033-bd6a4618b608 354s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/d207dc21-3048-4df0-a033-bd6a4618b608 (127.0.0.1) 2.070000ms 354s --------------------------- Captured stderr teardown --------------------------- 354s Traceback (most recent call last): 354s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 354s return _run_code(code, main_globals, None, 354s "__main__", mod_spec) 354s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 354s exec(code, run_globals) 354s ~~~~^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 354s from pathlib import Path 354s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 354s from glob import _StringGlobber, _no_recurse_symlinks 354s File "/usr/lib/python3.14/glob.py", line 5, in 354s import re 354s File "/usr/lib/python3.14/re/__init__.py", line 125, in 354s import enum 354s File "", line 1371, in _find_and_load 354s File "", line 1342, in _find_and_load_unlocked 354s File "", line 938, in _load_unlocked 354s File "", line 755, in exec_module 354s File "", line 845, in get_code 354s File "", line 968, in path_stats 354s File "", line 152, in _path_stat 354s KeyboardInterrupt 354s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 354s 354s self = 354s 354s def test_main_kernel_handler(self): 354s # POST request 354s r = self.kern_api.start() 354s kern1 = r.json() 354s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 354s self.assertEqual(r.status_code, 201) 354s self.assertIsInstance(kern1, dict) 354s 354s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 354s expected_csp = '; '.join([ 354s "frame-ancestors 'self'", 354s 'report-uri ' + report_uri, 354s "default-src 'none'" 354s ]) 354s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 354s 354s # GET request 354s r = self.kern_api.list() 354s self.assertEqual(r.status_code, 200) 354s assert isinstance(r.json(), list) 354s self.assertEqual(r.json()[0]['id'], kern1['id']) 354s self.assertEqual(r.json()[0]['name'], kern1['name']) 354s 354s # create another kernel and check that they both are added to the 354s # list of kernels from a GET request 354s kern2 = self.kern_api.start().json() 354s assert isinstance(kern2, dict) 354s r = self.kern_api.list() 354s kernels = r.json() 354s self.assertEqual(r.status_code, 200) 354s assert isinstance(kernels, list) 354s self.assertEqual(len(kernels), 2) 354s 354s # Interrupt a kernel 354s r = self.kern_api.interrupt(kern2['id']) 354s self.assertEqual(r.status_code, 204) 354s 354s # Restart a kernel 354s > r = self.kern_api.restart(kern2['id']) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 354s return self._req('POST', url_path_join(id, 'restart')) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 354s response.raise_for_status() 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s 354s self = 354s 354s def raise_for_status(self): 354s """Raises :class:`HTTPError`, if one occurred.""" 354s 354s http_error_msg = "" 354s if isinstance(self.reason, bytes): 354s # We attempt to decode utf-8 first because some servers 354s # choose to localize their reason strings. If the string 354s # isn't utf-8, we fall back to iso-8859-1 for all other 354s # encodings. (See PR #3538) 354s try: 354s reason = self.reason.decode("utf-8") 354s except UnicodeDecodeError: 354s reason = self.reason.decode("iso-8859-1") 354s else: 354s reason = self.reason 354s 354s if 400 <= self.status_code < 500: 354s http_error_msg = ( 354s f"{self.status_code} Client Error: {reason} for url: {self.url}" 354s ) 354s 354s elif 500 <= self.status_code < 600: 354s http_error_msg = ( 354s f"{self.status_code} Server Error: {reason} for url: {self.url}" 354s ) 354s 354s if http_error_msg: 354s > raise HTTPError(http_error_msg, response=self) 354s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/5d776c10-e7a0-4c35-9914-78077023e95c/restart 354s 354s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 354s ----------------------------- Captured stderr call ----------------------------- 354s Traceback (most recent call last): 354s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 354s return _run_code(code, main_globals, None, 354s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 354s exec(code, run_globals) 354s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 354s from pathlib import Path 354s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 354s from glob import _StringGlobber, _no_recurse_symlinks 354s File "/usr/lib/python3.14/glob.py", line 3, in 354s import contextlib 354s File "/usr/lib/python3.14/contextlib.py", line 775, in 354s class nullcontext(AbstractContextManager, AbstractAsyncContextManager): 354s File "/usr/lib/python3.14/abc.py", line 106, in __new__ 354s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 354s KeyboardInterrupt 354s ------------------------------ Captured log call ------------------------------- 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 354s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0w3owpgu/runtime/kernel-21416e45-3d6b-4895-a3b6-077faf5bc8e3.json'] 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50581 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52757 354s INFO NotebookApp:kernelmanager.py:179 Kernel started: 21416e45-3d6b-4895-a3b6-077faf5bc8e3, name: python3 354s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 354s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 20.210000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.500000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 354s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0w3owpgu/runtime/kernel-5d776c10-e7a0-4c35-9914-78077023e95c.json'] 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38195 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45223 354s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5d776c10-e7a0-4c35-9914-78077023e95c, name: python3 354s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 354s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 20.350000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.380000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 5d776c10-e7a0-4c35-9914-78077023e95c 354s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/5d776c10-e7a0-4c35-9914-78077023e95c/interrupt (127.0.0.1) 3.460000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 354s yield maybe_future(km.restart_kernel(kernel_id)) 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 354s value = future.result() 354s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 354s raise self._exception.with_traceback(self._exception_tb) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 354s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 354s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 354s return _runner_map[name].run(inner) 354s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 354s return fut.result(None) 354s ~~~~~~~~~~^^^^^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 354s return self.__get_result() 354s ~~~~~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 354s raise self._exception 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 354s await ensure_async(kernel.restart_kernel(now=now)) 354s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 354s return _runner_map[name].run(inner) 354s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 354s return fut.result(None) 354s ~~~~~~~~~~^^^^^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 354s return self.__get_result() 354s ~~~~~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 354s raise self._exception 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 354s await self._async_shutdown_kernel(now=now, restart=True) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 354s raise e 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:log.py:55 { 354s "Host": "localhost:12341", 354s "Accept": "*/*", 354s "User-Agent": "python-requests/2.32.5" 354s } 354s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/5d776c10-e7a0-4c35-9914-78077023e95c/restart (127.0.0.1) 7.620000ms referer=None 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.480000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 21416e45-3d6b-4895-a3b6-077faf5bc8e3 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 21416e45-3d6b-4895-a3b6-077faf5bc8e3 354s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/21416e45-3d6b-4895-a3b6-077faf5bc8e3 (127.0.0.1) 354s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/21416e45-3d6b-4895-a3b6-077faf5bc8e3', version='HTTP/1.1', remote_ip='127.0.0.1') 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 354s result = await result 354s ^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 354s yielded = ctx_run(next, result) 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 354s yield maybe_future(km.shutdown_kernel(kernel_id)) 354s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 354s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 354s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 354s return _runner_map[name].run(inner) 354s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 354s return fut.result(None) 354s ~~~~~~~~~~^^^^^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 354s return self.__get_result() 354s ~~~~~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 354s raise self._exception 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 354s stopper = ensure_async(km.shutdown_kernel(now, restart)) 354s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 354s return _runner_map[name].run(inner) 354s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 354s return fut.result(None) 354s ~~~~~~~~~~^^^^^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 354s return self.__get_result() 354s ~~~~~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 354s raise self._exception 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 354s raise e 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s WARNING NotebookApp:handlers.py:612 Unhandled error 354s ERROR NotebookApp:log.py:55 { 354s "Host": "localhost:12341", 354s "Accept": "*/*", 354s "User-Agent": "python-requests/2.32.5" 354s } 354s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/21416e45-3d6b-4895-a3b6-077faf5bc8e3 (127.0.0.1) 10.440000ms referer=None 354s ________________________ KernelAPITest.test_no_kernels _________________________ 354s 354s self = 354s 354s def test_no_kernels(self): 354s """Make sure there are no kernels running at the start""" 354s kernels = self.kern_api.list().json() 354s > self.assertEqual(kernels, []) 354s E AssertionError: Lists differ: [{'id': '21416e45-3d6b-4895-a3b6-077faf5bc[281 chars]: 0}] != [] 354s E 354s E First list contains 2 additional elements. 354s E First extra element 0: 354s E {'id': '21416e45-3d6b-4895-a3b6-077faf5bc8e3', 'name': 'python3', 'last_activity': '2026-01-22T18:29:11.697831Z', 'execution_state': 'starting', 'connections': 0} 354s E 354s E + [] 354s E - [{'connections': 0, 354s E - 'execution_state': 'starting', 354s E - 'id': '21416e45-3d6b-4895-a3b6-077faf5bc8e3', 354s E - 'last_activity': '2026-01-22T18:29:11.697831Z', 354s E - 'name': 'python3'}, 354s E - {'connections': 0, 354s E - 'execution_state': 'starting', 354s E - 'id': '5d776c10-e7a0-4c35-9914-78077023e95c', 354s E - 'last_activity': '2026-01-22T18:29:11.727830Z', 354s E - 'name': 'python3'}] 354s 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 354s ------------------------------ Captured log call ------------------------------- 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.470000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.470000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 21416e45-3d6b-4895-a3b6-077faf5bc8e3 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 21416e45-3d6b-4895-a3b6-077faf5bc8e3 354s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/21416e45-3d6b-4895-a3b6-077faf5bc8e3 (127.0.0.1) 2.360000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5d776c10-e7a0-4c35-9914-78077023e95c 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5d776c10-e7a0-4c35-9914-78077023e95c 354s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/5d776c10-e7a0-4c35-9914-78077023e95c (127.0.0.1) 2.240000ms 354s ---------------------------- Captured log teardown ----------------------------- 354s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 354s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 354s _____________________ AsyncKernelAPITest.test_connections ______________________ 354s 354s self = 354s 354s def tearDown(self): 354s for k in self.kern_api.list().json(): 354s > self.kern_api.shutdown(k['id']) 354s 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 354s return self._req('DELETE', id) 354s ^^^^^^^^^^^^^^^^^^^^^^^ 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 354s response.raise_for_status() 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s 354s self = 354s 354s def raise_for_status(self): 354s """Raises :class:`HTTPError`, if one occurred.""" 354s 354s http_error_msg = "" 354s if isinstance(self.reason, bytes): 354s # We attempt to decode utf-8 first because some servers 354s # choose to localize their reason strings. If the string 354s # isn't utf-8, we fall back to iso-8859-1 for all other 354s # encodings. (See PR #3538) 354s try: 354s reason = self.reason.decode("utf-8") 354s except UnicodeDecodeError: 354s reason = self.reason.decode("iso-8859-1") 354s else: 354s reason = self.reason 354s 354s if 400 <= self.status_code < 500: 354s http_error_msg = ( 354s f"{self.status_code} Client Error: {reason} for url: {self.url}" 354s ) 354s 354s elif 500 <= self.status_code < 600: 354s http_error_msg = ( 354s f"{self.status_code} Server Error: {reason} for url: {self.url}" 354s ) 354s 354s if http_error_msg: 354s > raise HTTPError(http_error_msg, response=self) 354s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/b0d47436-49df-4b91-8d0b-375021bce711 354s 354s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 354s ------------------------------ Captured log setup ------------------------------ 354s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpazcuwd6s/config', '/tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpazcuwd6s/etc/jupyter'] for config files 354s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpazcuwd6s/etc/jupyter 354s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 354s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 354s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpazcuwd6s/config 354s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpazcuwd6s/etc/jupyter 354s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 354s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 354s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpazcuwd6s/config 354s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpazcuwd6s/notebooks 354s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 354s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 354s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 354s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 354s WARNING NotebookApp:handlers.py:612 Forbidden 354s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (127.0.0.1) 2.190000ms referer=None 354s ------------------------------ Captured log call ------------------------------- 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 354s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpazcuwd6s/runtime/kernel-b0d47436-49df-4b91-8d0b-375021bce711.json'] 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48195 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43607 354s INFO NotebookApp:kernelmanager.py:179 Kernel started: b0d47436-49df-4b91-8d0b-375021bce711, name: python3 354s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 354s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 19.240000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/b0d47436-49df-4b91-8d0b-375021bce711 (127.0.0.1) 1.360000ms 354s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/b0d47436-49df-4b91-8d0b-375021bce711/channels 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 354s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from b0d47436-49df-4b91-8d0b-375021bce711 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55229 354s DEBUG NotebookApp:kernelmanager.py:423 activity on b0d47436-49df-4b91-8d0b-375021bce711: status (starting) 354s DEBUG NotebookApp:kernelmanager.py:423 activity on b0d47436-49df-4b91-8d0b-375021bce711: status (busy) 354s DEBUG NotebookApp:handlers.py:306 Received kernel info: {'status': 'ok', 'protocol_version': '5.3', 'implementation': 'ipython', 'implementation_version': '8.35.0', 'language_info': {'name': 'python', 'version': '3.14.2', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.14.2 (main, Dec 6 2025, 13:20:08) [GCC 15.2.0]\nType 'copyright', 'credits' or 'license' for more information\nIPython 8.35.0 -- An enhanced Interactive Python. Type '?' for help.\n", 'help_links': [{'text': 'Python Reference', 'url': 'https://docs.python.org/3.14'}, {'text': 'IPython Reference', 'url': 'https://ipython.org/documentation.html'}, {'text': 'NumPy Reference', 'url': 'https://docs.scipy.org/doc/numpy/reference/'}, {'text': 'SciPy Reference', 'url': 'https://docs.scipy.org/doc/scipy/reference/'}, {'text': 'Matplotlib Reference', 'url': 'https://matplotlib.org/contents.html'}, {'text': 'SymPy Reference', 'url': 'http://docs.sympy.org/latest/index.html'}, {'text': 'pandas Reference', 'url': 'https://pandas.pydata.org/pandas-docs/stable/'}]} 354s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel b0d47436-49df-4b91-8d0b-375021bce711) to 5.4 (client). 354s DEBUG NotebookApp:kernelmanager.py:423 activity on b0d47436-49df-4b91-8d0b-375021bce711: status (idle) 354s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/b0d47436-49df-4b91-8d0b-375021bce711/channels (127.0.0.1) 923.120000ms 354s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/b0d47436-49df-4b91-8d0b-375021bce711/channels 354s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for b0d47436-49df-4b91-8d0b-375021bce711 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43607 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55229 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48195 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43787 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55229 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48195 354s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 354s Setting websocket_ping_timeout=30000 354s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel b0d47436-49df-4b91-8d0b-375021bce711 354s DEBUG NotebookApp:kernelmanager.py:423 activity on b0d47436-49df-4b91-8d0b-375021bce711: status (busy) 354s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: b0d47436-49df-4b91-8d0b-375021bce711 354s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: b0d47436-49df-4b91-8d0b-375021bce711 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/b0d47436-49df-4b91-8d0b-375021bce711 (127.0.0.1) 1.560000ms 354s DEBUG NotebookApp:kernelmanager.py:423 activity on b0d47436-49df-4b91-8d0b-375021bce711: status (busy) 354s DEBUG NotebookApp:kernelmanager.py:423 activity on b0d47436-49df-4b91-8d0b-375021bce711: status (idle) 354s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: b0d47436-49df-4b91-8d0b-375021bce711 354s DEBUG NotebookApp:handlers.py:197 Nudge: resolving shell future: b0d47436-49df-4b91-8d0b-375021bce711 354s DEBUG NotebookApp:kernelmanager.py:423 activity on b0d47436-49df-4b91-8d0b-375021bce711: status (idle) 354s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: b0d47436-49df-4b91-8d0b-375021bce711 354s DEBUG NotebookApp:handlers.py:579 Websocket closed b0d47436-49df-4b91-8d0b-375021bce711:39613e44-a0dc8e2904237e0512e31f9e 354s INFO NotebookApp:kernelmanager.py:222 Starting buffering for b0d47436-49df-4b91-8d0b-375021bce711:39613e44-a0dc8e2904237e0512e31f9e 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b0d47436-49df-4b91-8d0b-375021bce711 354s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on b0d47436-49df-4b91-8d0b-375021bce711:iopub 354s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on b0d47436-49df-4b91-8d0b-375021bce711:iopub 354s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on b0d47436-49df-4b91-8d0b-375021bce711:iopub 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/b0d47436-49df-4b91-8d0b-375021bce711 (127.0.0.1) 1.290000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/b0d47436-49df-4b91-8d0b-375021bce711 (127.0.0.1) 1.250000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.300000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b0d47436-49df-4b91-8d0b-375021bce711 354s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for b0d47436-49df-4b91-8d0b-375021bce711:39613e44-a0dc8e2904237e0512e31f9e 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b0d47436-49df-4b91-8d0b-375021bce711 354s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 354s await kernel_awaitable 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 354s result = await obj 354s ^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 354s raise e 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/b0d47436-49df-4b91-8d0b-375021bce711 (127.0.0.1) 354s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/b0d47436-49df-4b91-8d0b-375021bce711', version='HTTP/1.1', remote_ip='127.0.0.1') 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 354s result = await result 354s ^^^^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 354s future.result() 354s ~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 354s yielded = self.gen.throw(exc) 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 354s yield maybe_future(km.shutdown_kernel(kernel_id)) 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 354s value = future.result() 354s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 354s raise self._exception.with_traceback(self._exception_tb) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 354s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 354s raise km.ready.exception() # type: ignore[misc] 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 354s await kernel_awaitable 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 354s result = await obj 354s ^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 354s raise e 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s WARNING NotebookApp:handlers.py:612 Unhandled error 354s ERROR NotebookApp:log.py:55 { 354s "Host": "localhost:12341", 354s "Accept": "*/*", 354s "User-Agent": "python-requests/2.32.5" 354s } 354s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/b0d47436-49df-4b91-8d0b-375021bce711 (127.0.0.1) 9.450000ms referer=None 354s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 354s 354s self = 354s 354s def tearDown(self): 354s for k in self.kern_api.list().json(): 354s > self.kern_api.shutdown(k['id']) 354s 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 354s return self._req('DELETE', id) 354s ^^^^^^^^^^^^^^^^^^^^^^^ 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 354s response.raise_for_status() 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s 354s self = 354s 354s def raise_for_status(self): 354s """Raises :class:`HTTPError`, if one occurred.""" 354s 354s http_error_msg = "" 354s if isinstance(self.reason, bytes): 354s # We attempt to decode utf-8 first because some servers 354s # choose to localize their reason strings. If the string 354s # isn't utf-8, we fall back to iso-8859-1 for all other 354s # encodings. (See PR #3538) 354s try: 354s reason = self.reason.decode("utf-8") 354s except UnicodeDecodeError: 354s reason = self.reason.decode("iso-8859-1") 354s else: 354s reason = self.reason 354s 354s if 400 <= self.status_code < 500: 354s http_error_msg = ( 354s f"{self.status_code} Client Error: {reason} for url: {self.url}" 354s ) 354s 354s elif 500 <= self.status_code < 600: 354s http_error_msg = ( 354s f"{self.status_code} Server Error: {reason} for url: {self.url}" 354s ) 354s 354s if http_error_msg: 354s > raise HTTPError(http_error_msg, response=self) 354s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/51cf56cf-5dbc-4348-8268-eed03b0ab5b0 354s 354s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 354s ------------------------------ Captured log call ------------------------------- 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 354s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpazcuwd6s/runtime/kernel-51cf56cf-5dbc-4348-8268-eed03b0ab5b0.json'] 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60655 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34709 354s INFO NotebookApp:kernelmanager.py:179 Kernel started: 51cf56cf-5dbc-4348-8268-eed03b0ab5b0, name: python3 354s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 354s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 19.240000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.440000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b0d47436-49df-4b91-8d0b-375021bce711 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b0d47436-49df-4b91-8d0b-375021bce711 354s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/b0d47436-49df-4b91-8d0b-375021bce711 (127.0.0.1) 1.700000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 51cf56cf-5dbc-4348-8268-eed03b0ab5b0 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 51cf56cf-5dbc-4348-8268-eed03b0ab5b0 354s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 354s await kernel_awaitable 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 354s result = await obj 354s ^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 354s raise e 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/51cf56cf-5dbc-4348-8268-eed03b0ab5b0 (127.0.0.1) 354s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/51cf56cf-5dbc-4348-8268-eed03b0ab5b0', version='HTTP/1.1', remote_ip='127.0.0.1') 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 354s result = await result 354s ^^^^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 354s future.result() 354s ~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 354s yielded = self.gen.throw(exc) 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 354s yield maybe_future(km.shutdown_kernel(kernel_id)) 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 354s value = future.result() 354s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 354s raise self._exception.with_traceback(self._exception_tb) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 354s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 354s raise km.ready.exception() # type: ignore[misc] 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 354s await kernel_awaitable 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 354s result = await obj 354s ^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 354s raise e 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s WARNING NotebookApp:handlers.py:612 Unhandled error 354s ERROR NotebookApp:log.py:55 { 354s "Host": "localhost:12341", 354s "Accept": "*/*", 354s "User-Agent": "python-requests/2.32.5" 354s } 354s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/51cf56cf-5dbc-4348-8268-eed03b0ab5b0 (127.0.0.1) 9.480000ms referer=None 354s --------------------------- Captured stderr teardown --------------------------- 354s Traceback (most recent call last): 354s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 354s return _run_code(code, main_globals, None, 354s "__main__", mod_spec) 354s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 354s exec(code, run_globals) 354s ~~~~^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 354s from pathlib import Path 354s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 354s from glob import _StringGlobber, _no_recurse_symlinks 354s File "/usr/lib/python3.14/glob.py", line 5, in 354s import re 354s File "/usr/lib/python3.14/re/__init__.py", line 143, in 354s @enum._simple_enum(enum.IntFlag, boundary=enum.KEEP) 354s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3.14/enum.py", line 1764, in convert_class 354s if issubclass(etype, Flag): 354s ~~~~~~~~~~^^^^^^^^^^^^^ 354s KeyboardInterrupt 354s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 354s 354s self = 354s 354s def test_kernel_handler(self): 354s # GET kernel with given id 354s kid = self.kern_api.start().json()['id'] 354s r = self.kern_api.get(kid) 354s kern1 = r.json() 354s self.assertEqual(r.status_code, 200) 354s assert isinstance(kern1, dict) 354s self.assertIn('id', kern1) 354s self.assertEqual(kern1['id'], kid) 354s 354s # Request a bad kernel id and check that a JSON 354s # message is returned! 354s bad_id = '111-111-111-111-111' 354s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 354s self.kern_api.get(bad_id) 354s 354s # DELETE kernel with id 354s > r = self.kern_api.shutdown(kid) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 354s return self._req('DELETE', id) 354s ^^^^^^^^^^^^^^^^^^^^^^^ 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 354s response.raise_for_status() 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s 354s self = 354s 354s def raise_for_status(self): 354s """Raises :class:`HTTPError`, if one occurred.""" 354s 354s http_error_msg = "" 354s if isinstance(self.reason, bytes): 354s # We attempt to decode utf-8 first because some servers 354s # choose to localize their reason strings. If the string 354s # isn't utf-8, we fall back to iso-8859-1 for all other 354s # encodings. (See PR #3538) 354s try: 354s reason = self.reason.decode("utf-8") 354s except UnicodeDecodeError: 354s reason = self.reason.decode("iso-8859-1") 354s else: 354s reason = self.reason 354s 354s if 400 <= self.status_code < 500: 354s http_error_msg = ( 354s f"{self.status_code} Client Error: {reason} for url: {self.url}" 354s ) 354s 354s elif 500 <= self.status_code < 600: 354s http_error_msg = ( 354s f"{self.status_code} Server Error: {reason} for url: {self.url}" 354s ) 354s 354s if http_error_msg: 354s > raise HTTPError(http_error_msg, response=self) 354s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/06228861-f279-47ae-8484-7dfc0a8d95cc 354s 354s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 354s ------------------------------ Captured log call ------------------------------- 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 354s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpazcuwd6s/runtime/kernel-06228861-f279-47ae-8484-7dfc0a8d95cc.json'] 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52269 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36643 354s INFO NotebookApp:kernelmanager.py:179 Kernel started: 06228861-f279-47ae-8484-7dfc0a8d95cc, name: python3 354s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 354s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 19.630000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/06228861-f279-47ae-8484-7dfc0a8d95cc (127.0.0.1) 3.250000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (127.0.0.1): Kernel does not exist: 111-111-111-111-111 354s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 354s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (127.0.0.1) 1.430000ms referer=None 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 06228861-f279-47ae-8484-7dfc0a8d95cc 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 06228861-f279-47ae-8484-7dfc0a8d95cc 354s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 354s await kernel_awaitable 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 354s result = await obj 354s ^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 354s raise e 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/06228861-f279-47ae-8484-7dfc0a8d95cc (127.0.0.1) 354s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/06228861-f279-47ae-8484-7dfc0a8d95cc', version='HTTP/1.1', remote_ip='127.0.0.1') 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 354s result = await result 354s ^^^^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 354s future.result() 354s ~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 354s yielded = self.gen.throw(exc) 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 354s yield maybe_future(km.shutdown_kernel(kernel_id)) 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 354s value = future.result() 354s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 354s raise self._exception.with_traceback(self._exception_tb) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 354s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 354s raise km.ready.exception() # type: ignore[misc] 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 354s await kernel_awaitable 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 354s result = await obj 354s ^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 354s raise e 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s WARNING NotebookApp:handlers.py:612 Unhandled error 354s ERROR NotebookApp:log.py:55 { 354s "Host": "localhost:12341", 354s "Accept": "*/*", 354s "User-Agent": "python-requests/2.32.5" 354s } 354s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/06228861-f279-47ae-8484-7dfc0a8d95cc (127.0.0.1) 9.650000ms referer=None 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.370000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 51cf56cf-5dbc-4348-8268-eed03b0ab5b0 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 51cf56cf-5dbc-4348-8268-eed03b0ab5b0 354s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/51cf56cf-5dbc-4348-8268-eed03b0ab5b0 (127.0.0.1) 1.590000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 06228861-f279-47ae-8484-7dfc0a8d95cc 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 06228861-f279-47ae-8484-7dfc0a8d95cc 354s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/06228861-f279-47ae-8484-7dfc0a8d95cc (127.0.0.1) 2.490000ms 354s --------------------------- Captured stderr teardown --------------------------- 354s Traceback (most recent call last): 354s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 354s return _run_code(code, main_globals, None, 354s "__main__", mod_spec) 354s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 354s exec(code, run_globals) 354s ~~~~^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 354s from pathlib import Path 354s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 354s from glob import _StringGlobber, _no_recurse_symlinks 354s File "/usr/lib/python3.14/glob.py", line 5, in 354s import re 354s File "/usr/lib/python3.14/re/__init__.py", line 125, in 354s import enum 354s File "", line 1371, in _find_and_load 354s File "", line 1342, in _find_and_load_unlocked 354s File "", line 938, in _load_unlocked 354s File "", line 755, in exec_module 354s File "", line 851, in get_code 354s File "", line 950, in get_data 354s KeyboardInterrupt 354s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 354s 354s self = 354s 354s def test_main_kernel_handler(self): 354s # POST request 354s r = self.kern_api.start() 354s kern1 = r.json() 354s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 354s self.assertEqual(r.status_code, 201) 354s self.assertIsInstance(kern1, dict) 354s 354s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 354s expected_csp = '; '.join([ 354s "frame-ancestors 'self'", 354s 'report-uri ' + report_uri, 354s "default-src 'none'" 354s ]) 354s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 354s 354s # GET request 354s r = self.kern_api.list() 354s self.assertEqual(r.status_code, 200) 354s assert isinstance(r.json(), list) 354s self.assertEqual(r.json()[0]['id'], kern1['id']) 354s self.assertEqual(r.json()[0]['name'], kern1['name']) 354s 354s # create another kernel and check that they both are added to the 354s # list of kernels from a GET request 354s kern2 = self.kern_api.start().json() 354s assert isinstance(kern2, dict) 354s r = self.kern_api.list() 354s kernels = r.json() 354s self.assertEqual(r.status_code, 200) 354s assert isinstance(kernels, list) 354s self.assertEqual(len(kernels), 2) 354s 354s # Interrupt a kernel 354s r = self.kern_api.interrupt(kern2['id']) 354s self.assertEqual(r.status_code, 204) 354s 354s # Restart a kernel 354s > r = self.kern_api.restart(kern2['id']) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 354s return self._req('POST', url_path_join(id, 'restart')) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 354s response.raise_for_status() 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s 354s self = 354s 354s def raise_for_status(self): 354s """Raises :class:`HTTPError`, if one occurred.""" 354s 354s http_error_msg = "" 354s if isinstance(self.reason, bytes): 354s # We attempt to decode utf-8 first because some servers 354s # choose to localize their reason strings. If the string 354s # isn't utf-8, we fall back to iso-8859-1 for all other 354s # encodings. (See PR #3538) 354s try: 354s reason = self.reason.decode("utf-8") 354s except UnicodeDecodeError: 354s reason = self.reason.decode("iso-8859-1") 354s else: 354s reason = self.reason 354s 354s if 400 <= self.status_code < 500: 354s http_error_msg = ( 354s f"{self.status_code} Client Error: {reason} for url: {self.url}" 354s ) 354s 354s elif 500 <= self.status_code < 600: 354s http_error_msg = ( 354s f"{self.status_code} Server Error: {reason} for url: {self.url}" 354s ) 354s 354s if http_error_msg: 354s > raise HTTPError(http_error_msg, response=self) 354s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/6949c2a9-433c-406b-a7d0-3d2bc6f0617b/restart 354s 354s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 354s ----------------------------- Captured stderr call ----------------------------- 354s Traceback (most recent call last): 354s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 354s return _run_code(code, main_globals, None, 354s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 354s exec(code, run_globals) 354s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 354s from pathlib import Path 354s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 354s from glob import _StringGlobber, _no_recurse_symlinks 354s File "/usr/lib/python3.14/glob.py", line 3, in 354s import contextlib 354s File "/usr/lib/python3.14/contextlib.py", line 6, in 354s from collections import deque 354s File "/usr/lib/python3.14/collections/__init__.py", line 38, in 354s from keyword import iskeyword as _iskeyword 354s File "", line 1368, in _find_and_load 354s File "", line 420, in __enter__ 354s File "", line 459, in _get_module_lock 354s KeyboardInterrupt 354s ------------------------------ Captured log call ------------------------------- 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 354s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpazcuwd6s/runtime/kernel-299b3483-1b22-42f0-89e2-79ec790bed75.json'] 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34759 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49179 354s INFO NotebookApp:kernelmanager.py:179 Kernel started: 299b3483-1b22-42f0-89e2-79ec790bed75, name: python3 354s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 354s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 17.690000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.260000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 354s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpazcuwd6s/runtime/kernel-6949c2a9-433c-406b-a7d0-3d2bc6f0617b.json'] 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45093 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50557 354s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6949c2a9-433c-406b-a7d0-3d2bc6f0617b, name: python3 354s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 354s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 17.840000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.280000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 6949c2a9-433c-406b-a7d0-3d2bc6f0617b 354s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/6949c2a9-433c-406b-a7d0-3d2bc6f0617b/interrupt (127.0.0.1) 1.410000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 354s yield maybe_future(km.restart_kernel(kernel_id)) 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 354s value = future.result() 354s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 354s raise self._exception.with_traceback(self._exception_tb) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 354s result = coro.throw(exc) 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 354s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 354s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 354s yield self # This tells Task to wait for completion. 354s ^^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 354s future.result() 354s ~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 354s raise self._exception.with_traceback(self._exception_tb) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 354s await ensure_async(kernel.restart_kernel(now=now)) 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 354s result = await obj 354s ^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 354s await self._async_shutdown_kernel(now=now, restart=True) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 354s raise e 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:log.py:55 { 354s "Host": "localhost:12341", 354s "Accept": "*/*", 354s "User-Agent": "python-requests/2.32.5" 354s } 354s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/6949c2a9-433c-406b-a7d0-3d2bc6f0617b/restart (127.0.0.1) 4.770000ms referer=None 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.200000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 299b3483-1b22-42f0-89e2-79ec790bed75 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 299b3483-1b22-42f0-89e2-79ec790bed75 354s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 354s await kernel_awaitable 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 354s result = await obj 354s ^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 354s raise e 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/299b3483-1b22-42f0-89e2-79ec790bed75 (127.0.0.1) 354s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/299b3483-1b22-42f0-89e2-79ec790bed75', version='HTTP/1.1', remote_ip='127.0.0.1') 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 354s result = await result 354s ^^^^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 354s future.result() 354s ~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 354s yielded = self.gen.throw(exc) 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 354s yield maybe_future(km.shutdown_kernel(kernel_id)) 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 354s value = future.result() 354s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 354s raise self._exception.with_traceback(self._exception_tb) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 354s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 354s raise km.ready.exception() # type: ignore[misc] 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 354s await kernel_awaitable 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 354s result = await obj 354s ^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 354s raise e 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s WARNING NotebookApp:handlers.py:612 Unhandled error 354s ERROR NotebookApp:log.py:55 { 354s "Host": "localhost:12341", 354s "Accept": "*/*", 354s "User-Agent": "python-requests/2.32.5" 354s } 354s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/299b3483-1b22-42f0-89e2-79ec790bed75 (127.0.0.1) 8.070000ms referer=None 354s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 354s 354s self = 354s 354s def test_no_kernels(self): 354s """Make sure there are no kernels running at the start""" 354s kernels = self.kern_api.list().json() 354s > self.assertEqual(kernels, []) 354s E AssertionError: Lists differ: [{'id': '299b3483-1b22-42f0-89e2-79ec790be[281 chars]: 0}] != [] 354s E 354s E First list contains 2 additional elements. 354s E First extra element 0: 354s E {'id': '299b3483-1b22-42f0-89e2-79ec790bed75', 'name': 'python3', 'last_activity': '2026-01-22T18:29:13.178323Z', 'execution_state': 'starting', 'connections': 0} 354s E 354s E + [] 354s E - [{'connections': 0, 354s E - 'execution_state': 'starting', 354s E - 'id': '299b3483-1b22-42f0-89e2-79ec790bed75', 354s E - 'last_activity': '2026-01-22T18:29:13.178323Z', 354s E - 'name': 'python3'}, 354s E - {'connections': 0, 354s E - 'execution_state': 'starting', 354s E - 'id': '6949c2a9-433c-406b-a7d0-3d2bc6f0617b', 354s E - 'last_activity': '2026-01-22T18:29:13.204363Z', 354s E - 'name': 'python3'}] 354s 354s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 354s ------------------------------ Captured log call ------------------------------- 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.310000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.280000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 299b3483-1b22-42f0-89e2-79ec790bed75 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 299b3483-1b22-42f0-89e2-79ec790bed75 354s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/299b3483-1b22-42f0-89e2-79ec790bed75 (127.0.0.1) 3.860000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6949c2a9-433c-406b-a7d0-3d2bc6f0617b 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6949c2a9-433c-406b-a7d0-3d2bc6f0617b 354s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/6949c2a9-433c-406b-a7d0-3d2bc6f0617b (127.0.0.1) 1.720000ms 354s ---------------------------- Captured log teardown ----------------------------- 354s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 06228861-f279-47ae-8484-7dfc0a8d95cc 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b0d47436-49df-4b91-8d0b-375021bce711 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 299b3483-1b22-42f0-89e2-79ec790bed75 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 51cf56cf-5dbc-4348-8268-eed03b0ab5b0 354s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 354s __________________________ SessionAPITest.test_create __________________________ 354s 354s @self.addCleanup 354s def cleanup_sessions(): 354s for session in self.sess_api.list().json(): 354s > self.sess_api.delete(session['id']) 354s 354s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 354s return self._req('DELETE', id) 354s ^^^^^^^^^^^^^^^^^^^^^^^ 354s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 354s response.raise_for_status() 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s 354s self = 354s 354s def raise_for_status(self): 354s """Raises :class:`HTTPError`, if one occurred.""" 354s 354s http_error_msg = "" 354s if isinstance(self.reason, bytes): 354s # We attempt to decode utf-8 first because some servers 354s # choose to localize their reason strings. If the string 354s # isn't utf-8, we fall back to iso-8859-1 for all other 354s # encodings. (See PR #3538) 354s try: 354s reason = self.reason.decode("utf-8") 354s except UnicodeDecodeError: 354s reason = self.reason.decode("iso-8859-1") 354s else: 354s reason = self.reason 354s 354s if 400 <= self.status_code < 500: 354s http_error_msg = ( 354s f"{self.status_code} Client Error: {reason} for url: {self.url}" 354s ) 354s 354s elif 500 <= self.status_code < 600: 354s http_error_msg = ( 354s f"{self.status_code} Server Error: {reason} for url: {self.url}" 354s ) 354s 354s if http_error_msg: 354s > raise HTTPError(http_error_msg, response=self) 354s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/2158ebc8-5f34-4988-ad43-b2bb8e2d16a2 354s 354s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 354s ------------------------------ Captured log setup ------------------------------ 354s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmponksflhm/config', '/tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmponksflhm/etc/jupyter'] for config files 354s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmponksflhm/etc/jupyter 354s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 354s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 354s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmponksflhm/config 354s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmponksflhm/etc/jupyter 354s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 354s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 354s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmponksflhm/config 354s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmponksflhm/notebooks 354s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 354s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 354s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 354s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 354s WARNING NotebookApp:handlers.py:612 Forbidden 354s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (127.0.0.1) 1.060000ms referer=None 354s ------------------------------ Captured log call ------------------------------- 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.820000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 354s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmponksflhm/runtime/kernel-bc33cedf-a14f-4ee7-8470-2f2510d9656e.json'] 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42561 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60687 354s INFO NotebookApp:kernelmanager.py:179 Kernel started: bc33cedf-a14f-4ee7-8470-2f2510d9656e, name: python3 354s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmponksflhm/notebooks/foo'} 354s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 25.170000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.570000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/2158ebc8-5f34-4988-ad43-b2bb8e2d16a2 (127.0.0.1) 1.540000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.510000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bc33cedf-a14f-4ee7-8470-2f2510d9656e 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bc33cedf-a14f-4ee7-8470-2f2510d9656e 354s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/2158ebc8-5f34-4988-ad43-b2bb8e2d16a2 (127.0.0.1) 354s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/2158ebc8-5f34-4988-ad43-b2bb8e2d16a2', version='HTTP/1.1', remote_ip='127.0.0.1') 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 354s result = await result 354s ^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 354s yielded = self.gen.throw(exc) 354s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 354s yield maybe_future(sm.delete_session(session_id)) 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 354s value = future.result() 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 354s yielded = self.gen.send(value) 354s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 354s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 354s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 354s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 354s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 354s return _runner_map[name].run(inner) 354s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 354s return fut.result(None) 354s ~~~~~~~~~~^^^^^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 354s return self.__get_result() 354s ~~~~~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 354s raise self._exception 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 354s stopper = ensure_async(km.shutdown_kernel(now, restart)) 354s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 354s return _runner_map[name].run(inner) 354s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 354s return fut.result(None) 354s ~~~~~~~~~~^^^^^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 354s return self.__get_result() 354s ~~~~~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 354s raise self._exception 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 354s raise e 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s WARNING NotebookApp:handlers.py:612 Unhandled error 354s ERROR NotebookApp:log.py:55 { 354s "Host": "localhost:12341", 354s "Accept": "*/*", 354s "User-Agent": "python-requests/2.32.5" 354s } 354s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/2158ebc8-5f34-4988-ad43-b2bb8e2d16a2 (127.0.0.1) 11.630000ms referer=None 354s --------------------------- Captured stderr teardown --------------------------- 354s Traceback (most recent call last): 354s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 354s return _run_code(code, main_globals, None, 354s "__main__", mod_spec) 354s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 354s exec(code, run_globals) 354s ~~~~^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 354s from ipykernel import kernelapp as app 354s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 354s from .connect import * # noqa: F403 354s ^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 354s from subprocess import PIPE, Popen 354s File "/usr/lib/python3.14/subprocess.py", line 49, in 354s import signal 354s File "/usr/lib/python3.14/signal.py", line 7, in 354s _IntEnum._convert_( 354s ~~~~~~~~~~~~~~~~~~^ 354s 'Signals', __name__, 354s ^^^^^^^^^^^^^^^^^^^^ 354s ...<2 lines>... 354s and (name.startswith('SIG') and not name.startswith('SIG_')) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s or name.startswith('CTRL_')) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3.14/enum.py", line 909, in _convert_ 354s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 354s File "/usr/lib/python3.14/enum.py", line 1895, in convert_class 354s setattr(enum_class, name, member) 354s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3.14/enum.py", line 810, in __setattr__ 354s def __setattr__(cls, name, value): 354s 354s KeyboardInterrupt 354s __________________ SessionAPITest.test_create_console_session __________________ 354s 354s @self.addCleanup 354s def cleanup_sessions(): 354s for session in self.sess_api.list().json(): 354s > self.sess_api.delete(session['id']) 354s 354s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 354s return self._req('DELETE', id) 354s ^^^^^^^^^^^^^^^^^^^^^^^ 354s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 354s response.raise_for_status() 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s 354s self = 354s 354s def raise_for_status(self): 354s """Raises :class:`HTTPError`, if one occurred.""" 354s 354s http_error_msg = "" 354s if isinstance(self.reason, bytes): 354s # We attempt to decode utf-8 first because some servers 354s # choose to localize their reason strings. If the string 354s # isn't utf-8, we fall back to iso-8859-1 for all other 354s # encodings. (See PR #3538) 354s try: 354s reason = self.reason.decode("utf-8") 354s except UnicodeDecodeError: 354s reason = self.reason.decode("iso-8859-1") 354s else: 354s reason = self.reason 354s 354s if 400 <= self.status_code < 500: 354s http_error_msg = ( 354s f"{self.status_code} Client Error: {reason} for url: {self.url}" 354s ) 354s 354s elif 500 <= self.status_code < 600: 354s http_error_msg = ( 354s f"{self.status_code} Server Error: {reason} for url: {self.url}" 354s ) 354s 354s if http_error_msg: 354s > raise HTTPError(http_error_msg, response=self) 354s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b2ac63ee-7afc-470a-92f8-abf1a32383c5 354s 354s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 354s ------------------------------ Captured log call ------------------------------- 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 354s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmponksflhm/runtime/kernel-09230e22-1021-4d28-9a74-23a1b9dff4ea.json'] 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34727 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42541 354s INFO NotebookApp:kernelmanager.py:179 Kernel started: 09230e22-1021-4d28-9a74-23a1b9dff4ea, name: python3 354s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmponksflhm/notebooks/foo'} 354s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 21.210000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.560000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bc33cedf-a14f-4ee7-8470-2f2510d9656e 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bc33cedf-a14f-4ee7-8470-2f2510d9656e 354s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/2158ebc8-5f34-4988-ad43-b2bb8e2d16a2 (127.0.0.1) 2.460000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 09230e22-1021-4d28-9a74-23a1b9dff4ea 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 09230e22-1021-4d28-9a74-23a1b9dff4ea 354s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b2ac63ee-7afc-470a-92f8-abf1a32383c5 (127.0.0.1) 354s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b2ac63ee-7afc-470a-92f8-abf1a32383c5', version='HTTP/1.1', remote_ip='127.0.0.1') 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 354s result = await result 354s ^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 354s yielded = self.gen.throw(exc) 354s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 354s yield maybe_future(sm.delete_session(session_id)) 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 354s value = future.result() 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 354s yielded = self.gen.send(value) 354s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 354s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 354s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 354s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 354s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 354s return _runner_map[name].run(inner) 354s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 354s return fut.result(None) 354s ~~~~~~~~~~^^^^^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 354s return self.__get_result() 354s ~~~~~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 354s raise self._exception 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 354s stopper = ensure_async(km.shutdown_kernel(now, restart)) 354s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 354s return _runner_map[name].run(inner) 354s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 354s return fut.result(None) 354s ~~~~~~~~~~^^^^^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 354s return self.__get_result() 354s ~~~~~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 354s raise self._exception 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 354s raise e 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s WARNING NotebookApp:handlers.py:612 Unhandled error 354s ERROR NotebookApp:log.py:55 { 354s "Host": "localhost:12341", 354s "Accept": "*/*", 354s "User-Agent": "python-requests/2.32.5" 354s } 354s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b2ac63ee-7afc-470a-92f8-abf1a32383c5 (127.0.0.1) 10.660000ms referer=None 354s --------------------------- Captured stderr teardown --------------------------- 354s Traceback (most recent call last): 354s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 354s return _run_code(code, main_globals, None, 354s "__main__", mod_spec) 354s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 354s exec(code, run_globals) 354s ~~~~^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 354s from ipykernel import kernelapp as app 354s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 354s from ._version import ( 354s ...<4 lines>... 354s ) 354s File "/usr/lib/python3/dist-packages/ipykernel/_version.py", line 11, in 354s match = re.match(pattern, __version__) 354s File "/usr/lib/python3.14/re/__init__.py", line 167, in match 354s return _compile(pattern, flags).match(string) 354s ~~~~~~~~^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 354s p = _compiler.compile(pattern, flags) 354s File "/usr/lib/python3.14/re/_compiler.py", line 762, in compile 354s p = _parser.parse(p, flags) 354s File "/usr/lib/python3.14/re/_parser.py", line 973, in parse 354s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 354s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 354s itemsappend(_parse(source, state, verbose, nested + 1, 354s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s not nested and not items)) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3.14/re/_parser.py", line 514, in _parse 354s subpattern = SubPattern(state) 354s File "/usr/lib/python3.14/re/_parser.py", line 113, in __init__ 354s def __init__(self, state, data=None): 354s 354s KeyboardInterrupt 354s ____________________ SessionAPITest.test_create_deprecated _____________________ 354s 354s @self.addCleanup 354s def cleanup_sessions(): 354s for session in self.sess_api.list().json(): 354s > self.sess_api.delete(session['id']) 354s 354s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 354s return self._req('DELETE', id) 354s ^^^^^^^^^^^^^^^^^^^^^^^ 354s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 354s response.raise_for_status() 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s 354s self = 354s 354s def raise_for_status(self): 354s """Raises :class:`HTTPError`, if one occurred.""" 354s 354s http_error_msg = "" 354s if isinstance(self.reason, bytes): 354s # We attempt to decode utf-8 first because some servers 354s # choose to localize their reason strings. If the string 354s # isn't utf-8, we fall back to iso-8859-1 for all other 354s # encodings. (See PR #3538) 354s try: 354s reason = self.reason.decode("utf-8") 354s except UnicodeDecodeError: 354s reason = self.reason.decode("iso-8859-1") 354s else: 354s reason = self.reason 354s 354s if 400 <= self.status_code < 500: 354s http_error_msg = ( 354s f"{self.status_code} Client Error: {reason} for url: {self.url}" 354s ) 354s 354s elif 500 <= self.status_code < 600: 354s http_error_msg = ( 354s f"{self.status_code} Server Error: {reason} for url: {self.url}" 354s ) 354s 354s if http_error_msg: 354s > raise HTTPError(http_error_msg, response=self) 354s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ec22d170-80cd-4d02-9352-f8b1022239f2 354s 354s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 354s ------------------------------ Captured log call ------------------------------- 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 354s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 354s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmponksflhm/runtime/kernel-63e7dcfa-9672-4b91-a647-a9469b9fc419.json'] 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40275 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44663 354s INFO NotebookApp:kernelmanager.py:179 Kernel started: 63e7dcfa-9672-4b91-a647-a9469b9fc419, name: python3 354s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmponksflhm/notebooks/foo'} 354s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 21.430000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.580000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 09230e22-1021-4d28-9a74-23a1b9dff4ea 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 09230e22-1021-4d28-9a74-23a1b9dff4ea 354s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/b2ac63ee-7afc-470a-92f8-abf1a32383c5 (127.0.0.1) 2.490000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 63e7dcfa-9672-4b91-a647-a9469b9fc419 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 63e7dcfa-9672-4b91-a647-a9469b9fc419 354s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ec22d170-80cd-4d02-9352-f8b1022239f2 (127.0.0.1) 354s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ec22d170-80cd-4d02-9352-f8b1022239f2', version='HTTP/1.1', remote_ip='127.0.0.1') 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 354s result = await result 354s ^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 354s yielded = self.gen.throw(exc) 354s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 354s yield maybe_future(sm.delete_session(session_id)) 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 354s value = future.result() 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 354s yielded = self.gen.send(value) 354s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 354s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 354s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 354s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 354s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 354s return _runner_map[name].run(inner) 354s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 354s return fut.result(None) 354s ~~~~~~~~~~^^^^^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 354s return self.__get_result() 354s ~~~~~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 354s raise self._exception 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 354s stopper = ensure_async(km.shutdown_kernel(now, restart)) 354s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 354s return _runner_map[name].run(inner) 354s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 354s return fut.result(None) 354s ~~~~~~~~~~^^^^^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 354s return self.__get_result() 354s ~~~~~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 354s raise self._exception 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 354s raise e 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s WARNING NotebookApp:handlers.py:612 Unhandled error 354s ERROR NotebookApp:log.py:55 { 354s "Host": "localhost:12341", 354s "Accept": "*/*", 354s "User-Agent": "python-requests/2.32.5" 354s } 354s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/ec22d170-80cd-4d02-9352-f8b1022239f2 (127.0.0.1) 11.080000ms referer=None 354s --------------------------- Captured stderr teardown --------------------------- 354s Traceback (most recent call last): 354s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 354s return _run_code(code, main_globals, None, 354s "__main__", mod_spec) 354s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 354s exec(code, run_globals) 354s ~~~~^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 354s from ipykernel import kernelapp as app 354s File "", line 1371, in _find_and_load 354s File "", line 1333, in _find_and_load_unlocked 354s File "", line 1267, in _find_spec 354s File "", line 987, in find_spec 354s KeyboardInterrupt 354s ___________________ SessionAPITest.test_create_file_session ____________________ 354s 354s @self.addCleanup 354s def cleanup_sessions(): 354s for session in self.sess_api.list().json(): 354s > self.sess_api.delete(session['id']) 354s 354s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 354s return self._req('DELETE', id) 354s ^^^^^^^^^^^^^^^^^^^^^^^ 354s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 354s response.raise_for_status() 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s 354s self = 354s 354s def raise_for_status(self): 354s """Raises :class:`HTTPError`, if one occurred.""" 354s 354s http_error_msg = "" 354s if isinstance(self.reason, bytes): 354s # We attempt to decode utf-8 first because some servers 354s # choose to localize their reason strings. If the string 354s # isn't utf-8, we fall back to iso-8859-1 for all other 354s # encodings. (See PR #3538) 354s try: 354s reason = self.reason.decode("utf-8") 354s except UnicodeDecodeError: 354s reason = self.reason.decode("iso-8859-1") 354s else: 354s reason = self.reason 354s 354s if 400 <= self.status_code < 500: 354s http_error_msg = ( 354s f"{self.status_code} Client Error: {reason} for url: {self.url}" 354s ) 354s 354s elif 500 <= self.status_code < 600: 354s http_error_msg = ( 354s f"{self.status_code} Server Error: {reason} for url: {self.url}" 354s ) 354s 354s if http_error_msg: 354s > raise HTTPError(http_error_msg, response=self) 354s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/67c72f50-c947-4746-bc9a-67af9389ea6b 354s 354s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 354s ------------------------------ Captured log call ------------------------------- 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 354s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmponksflhm/runtime/kernel-5178233b-5dec-46c0-ad14-ab7a26a7f8aa.json'] 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33111 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37387 354s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5178233b-5dec-46c0-ad14-ab7a26a7f8aa, name: python3 354s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmponksflhm/notebooks/foo'} 354s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 20.790000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.540000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 63e7dcfa-9672-4b91-a647-a9469b9fc419 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 63e7dcfa-9672-4b91-a647-a9469b9fc419 354s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/ec22d170-80cd-4d02-9352-f8b1022239f2 (127.0.0.1) 2.250000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5178233b-5dec-46c0-ad14-ab7a26a7f8aa 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5178233b-5dec-46c0-ad14-ab7a26a7f8aa 354s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/67c72f50-c947-4746-bc9a-67af9389ea6b (127.0.0.1) 354s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/67c72f50-c947-4746-bc9a-67af9389ea6b', version='HTTP/1.1', remote_ip='127.0.0.1') 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 354s result = await result 354s ^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 354s yielded = self.gen.throw(exc) 354s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 354s yield maybe_future(sm.delete_session(session_id)) 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 354s value = future.result() 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 354s yielded = self.gen.send(value) 354s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 354s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 354s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 354s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 354s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 354s return _runner_map[name].run(inner) 354s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 354s return fut.result(None) 354s ~~~~~~~~~~^^^^^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 354s return self.__get_result() 354s ~~~~~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 354s raise self._exception 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 354s stopper = ensure_async(km.shutdown_kernel(now, restart)) 354s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 354s return _runner_map[name].run(inner) 354s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 354s return fut.result(None) 354s ~~~~~~~~~~^^^^^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 354s return self.__get_result() 354s ~~~~~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 354s raise self._exception 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 354s raise e 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s WARNING NotebookApp:handlers.py:612 Unhandled error 354s ERROR NotebookApp:log.py:55 { 354s "Host": "localhost:12341", 354s "Accept": "*/*", 354s "User-Agent": "python-requests/2.32.5" 354s } 354s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/67c72f50-c947-4746-bc9a-67af9389ea6b (127.0.0.1) 10.480000ms referer=None 354s --------------------------- Captured stderr teardown --------------------------- 354s Traceback (most recent call last): 354s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 354s return _run_code(code, main_globals, None, 354s "__main__", mod_spec) 354s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 354s exec(code, run_globals) 354s ~~~~^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 354s from pathlib import Path 354s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 354s class PureWindowsPath(PurePath): 354s ...<7 lines>... 354s __slots__ = () 354s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 354s import ntpath 354s File "", line 1371, in _find_and_load 354s File "", line 1333, in _find_and_load_unlocked 354s File "", line 1267, in _find_spec 354s File "", line 1292, in find_spec 354s File "", line 1266, in _get_spec 354s File "", line 1365, in find_spec 354s File "", line 152, in _path_stat 354s KeyboardInterrupt 354s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 354s 354s self = 354s 354s def test_create_with_kernel_id(self): 354s # create a new kernel 354s r = self.request('POST', 'api/kernels') 354s r.raise_for_status() 354s kernel = r.json() 354s 354s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 354s self.assertEqual(resp.status_code, 201) 354s newsession = resp.json() 354s self.assertIn('id', newsession) 354s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 354s self.assertEqual(newsession['kernel']['id'], kernel['id']) 354s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 354s 354s sessions = self.sess_api.list().json() 354s > self.assertEqual(sessions, [newsession]) 354s E AssertionError: Lists differ: [{'id': '67c72f50-c947-4746-bc9a-67af9389ea6b', 'p[553 chars]ne}}] != [{'id': '30ecb48d-c953-4f5c-8a5b-a277f8c858fb', 'p[279 chars]ne}}] 354s E 354s E First differing element 0: 354s E {'id': '67c72f50-c947-4746-bc9a-67af9389ea6b', 'p[218 chars]: 0}} 354s E {'id': '30ecb48d-c953-4f5c-8a5b-a277f8c858fb', 'p[278 chars]one}} 354s E 354s E First list contains 1 additional elements. 354s E First extra element 1: 354s E {'id': '30ecb48d-c953-4f5c-8a5b-a277f8c858fb', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'be9c5106-e694-4b22-9239-1ef15d240ab3', 'name': 'python3', 'last_activity': '2026-01-22T18:29:13.844457Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 354s E 354s E Diff is 830 characters long. Set self.maxDiff to None to see it. 354s 354s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 354s ------------------------------ Captured log call ------------------------------- 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 354s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmponksflhm/runtime/kernel-be9c5106-e694-4b22-9239-1ef15d240ab3.json'] 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33563 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59659 354s INFO NotebookApp:kernelmanager.py:179 Kernel started: be9c5106-e694-4b22-9239-1ef15d240ab3, name: python3 354s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 354s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 21.050000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.570000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.470000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.470000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5178233b-5dec-46c0-ad14-ab7a26a7f8aa 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5178233b-5dec-46c0-ad14-ab7a26a7f8aa 354s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/67c72f50-c947-4746-bc9a-67af9389ea6b (127.0.0.1) 2.200000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for be9c5106-e694-4b22-9239-1ef15d240ab3 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: be9c5106-e694-4b22-9239-1ef15d240ab3 354s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/30ecb48d-c953-4f5c-8a5b-a277f8c858fb (127.0.0.1) 354s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/30ecb48d-c953-4f5c-8a5b-a277f8c858fb', version='HTTP/1.1', remote_ip='127.0.0.1') 354s Traceback (most recent call last): 354s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 354s result = await result 354s ^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 354s yielded = self.gen.throw(exc) 354s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 354s yield maybe_future(sm.delete_session(session_id)) 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 354s value = future.result() 354s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 354s yielded = self.gen.send(value) 354s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 354s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 354s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 354s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 354s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 354s return _runner_map[name].run(inner) 354s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 354s return fut.result(None) 354s ~~~~~~~~~~^^^^^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 354s return self.__get_result() 354s ~~~~~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 354s raise self._exception 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 354s stopper = ensure_async(km.shutdown_kernel(now, restart)) 354s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 354s return _runner_map[name].run(inner) 354s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 354s return fut.result(None) 354s ~~~~~~~~~~^^^^^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 354s return self.__get_result() 354s ~~~~~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 354s raise self._exception 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 354s result = coro.send(None) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 354s raise e 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 354s out = await method(self, *args, **kwargs) 354s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 354s await self._async_finish_shutdown(restart=restart) 354s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 354s await asyncio.wait_for( 354s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 354s ) 354s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 354s async with timeouts.timeout(timeout): 354s ~~~~~~~~~~~~~~~~^^^^^^^^^ 354s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 354s raise RuntimeError("Timeout should be used inside a task") 354s RuntimeError: Timeout should be used inside a task 354s WARNING NotebookApp:handlers.py:612 Unhandled error 354s ERROR NotebookApp:log.py:55 { 354s "Host": "localhost:12341", 354s "Accept": "*/*", 354s "User-Agent": "python-requests/2.32.5" 354s } 354s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/30ecb48d-c953-4f5c-8a5b-a277f8c858fb (127.0.0.1) 10.530000ms referer=None 354s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 354s 354s @self.addCleanup 354s def cleanup_sessions(): 354s for session in self.sess_api.list().json(): 354s > self.sess_api.delete(session['id']) 354s 354s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 354s return self._req('DELETE', id) 354s ^^^^^^^^^^^^^^^^^^^^^^^ 354s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 354s response.raise_for_status() 354s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 354s 354s self = 354s 354s def raise_for_status(self): 354s """Raises :class:`HTTPError`, if one occurred.""" 354s 354s http_error_msg = "" 354s if isinstance(self.reason, bytes): 354s # We attempt to decode utf-8 first because some servers 354s # choose to localize their reason strings. If the string 354s # isn't utf-8, we fall back to iso-8859-1 for all other 354s # encodings. (See PR #3538) 354s try: 354s reason = self.reason.decode("utf-8") 354s except UnicodeDecodeError: 354s reason = self.reason.decode("iso-8859-1") 354s else: 354s reason = self.reason 354s 354s if 400 <= self.status_code < 500: 354s http_error_msg = ( 354s f"{self.status_code} Client Error: {reason} for url: {self.url}" 354s ) 354s 354s elif 500 <= self.status_code < 600: 354s http_error_msg = ( 354s f"{self.status_code} Server Error: {reason} for url: {self.url}" 354s ) 354s 354s if http_error_msg: 354s > raise HTTPError(http_error_msg, response=self) 354s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/30ecb48d-c953-4f5c-8a5b-a277f8c858fb 354s 354s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 354s ---------------------------- Captured stderr setup ----------------------------- 354s Traceback (most recent call last): 354s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 354s return _run_code(code, main_globals, None, 354s "__main__", mod_spec) 354s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 354s exec(code, run_globals) 354s ~~~~^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 354s from ipykernel import kernelapp as app 354s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 354s from .connect import * # noqa: F403 354s ^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 354s from subprocess import PIPE, Popen 354s File "/usr/lib/python3.14/subprocess.py", line 51, in 354s import threading 354s File "/usr/lib/python3.14/threading.py", line 1557, in 354s _main_thread = _MainThread() 354s File "/usr/lib/python3.14/threading.py", line 1394, in __init__ 354s Thread.__init__(self, name="MainThread", daemon=False) 354s ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 354s File "/usr/lib/python3.14/threading.py", line 944, in __init__ 354s self._invoke_excepthook = _make_invoke_excepthook() 354s ~~~~~~~~~~~~~~~~~~~~~~~^^ 354s File "/usr/lib/python3.14/threading.py", line 1308, in _make_invoke_excepthook 354s def _make_invoke_excepthook(): 354s 354s KeyboardInterrupt 354s ------------------------------ Captured log call ------------------------------- 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.560000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 354s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmponksflhm/runtime/kernel-570889af-8606-47f3-95d5-4984ecfa70d0.json'] 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42611 354s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34663 354s INFO NotebookApp:kernelmanager.py:179 Kernel started: 570889af-8606-47f3-95d5-4984ecfa70d0, name: python3 354s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 354s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 20.400000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for be9c5106-e694-4b22-9239-1ef15d240ab3 354s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: be9c5106-e694-4b22-9239-1ef15d240ab3 354s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/30ecb48d-c953-4f5c-8a5b-a277f8c858fb (127.0.0.1) 2.620000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.360000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 354s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.410000ms 354s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 570889af-8606-47f3-95d5-4984ecfa70d0 355s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 570889af-8606-47f3-95d5-4984ecfa70d0 355s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 355s Traceback (most recent call last): 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 355s out = await method(self, *args, **kwargs) 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 355s await self._async_finish_shutdown(restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 355s await asyncio.wait_for( 355s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 355s ) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 355s async with timeouts.timeout(timeout): 355s ~~~~~~~~~~~~~~~~^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 355s raise RuntimeError("Timeout should be used inside a task") 355s RuntimeError: Timeout should be used inside a task 355s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/30ecb48d-c953-4f5c-8a5b-a277f8c858fb (127.0.0.1) 355s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/30ecb48d-c953-4f5c-8a5b-a277f8c858fb', version='HTTP/1.1', remote_ip='127.0.0.1') 355s Traceback (most recent call last): 355s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 355s result = await result 355s ^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 355s yielded = self.gen.throw(exc) 355s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 355s yield maybe_future(sm.delete_session(session_id)) 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 355s value = future.result() 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 355s yielded = self.gen.send(value) 355s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 355s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 355s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 355s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 355s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 355s return _runner_map[name].run(inner) 355s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 355s return fut.result(None) 355s ~~~~~~~~~~^^^^^^ 355s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 355s return self.__get_result() 355s ~~~~~~~~~~~~~~~~~^^ 355s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 355s raise self._exception 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 355s result = coro.send(None) 355s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 355s stopper = ensure_async(km.shutdown_kernel(now, restart)) 355s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 355s return _runner_map[name].run(inner) 355s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 355s return fut.result(None) 355s ~~~~~~~~~~^^^^^^ 355s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 355s return self.__get_result() 355s ~~~~~~~~~~~~~~~~~^^ 355s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 355s raise self._exception 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 355s result = coro.send(None) 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 355s raise e 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 355s out = await method(self, *args, **kwargs) 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 355s await self._async_finish_shutdown(restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 355s await asyncio.wait_for( 355s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 355s ) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 355s async with timeouts.timeout(timeout): 355s ~~~~~~~~~~~~~~~~^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 355s raise RuntimeError("Timeout should be used inside a task") 355s RuntimeError: Timeout should be used inside a task 355s WARNING NotebookApp:handlers.py:612 Unhandled error 355s ERROR NotebookApp:log.py:55 { 355s "Host": "localhost:12341", 355s "Accept": "*/*", 355s "User-Agent": "python-requests/2.32.5" 355s } 355s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/30ecb48d-c953-4f5c-8a5b-a277f8c858fb (127.0.0.1) 10.650000ms referer=None 355s --------------------------- Captured stderr teardown --------------------------- 355s Traceback (most recent call last): 355s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 355s return _run_code(code, main_globals, None, 355s "__main__", mod_spec) 355s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 355s exec(code, run_globals) 355s ~~~~^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 355s from ipykernel import kernelapp as app 355s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 355s from .connect import * # noqa: F403 355s ^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 355s import json 355s File "/usr/lib/python3.14/json/__init__.py", line 107, in 355s from .encoder import JSONEncoder 355s File "", line 1371, in _find_and_load 355s File "", line 1342, in _find_and_load_unlocked 355s File "", line 938, in _load_unlocked 355s File "", line 755, in exec_module 355s File "", line 888, in get_code 355s File "", line 511, in _compile_bytecode 355s KeyboardInterrupt 355s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 355s 355s @self.addCleanup 355s def cleanup_sessions(): 355s for session in self.sess_api.list().json(): 355s > self.sess_api.delete(session['id']) 355s 355s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 355s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 355s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 355s return self._req('DELETE', id) 355s ^^^^^^^^^^^^^^^^^^^^^^^ 355s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 355s response.raise_for_status() 355s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 355s 355s self = 355s 355s def raise_for_status(self): 355s """Raises :class:`HTTPError`, if one occurred.""" 355s 355s http_error_msg = "" 355s if isinstance(self.reason, bytes): 355s # We attempt to decode utf-8 first because some servers 355s # choose to localize their reason strings. If the string 355s # isn't utf-8, we fall back to iso-8859-1 for all other 355s # encodings. (See PR #3538) 355s try: 355s reason = self.reason.decode("utf-8") 355s except UnicodeDecodeError: 355s reason = self.reason.decode("iso-8859-1") 355s else: 355s reason = self.reason 355s 355s if 400 <= self.status_code < 500: 355s http_error_msg = ( 355s f"{self.status_code} Client Error: {reason} for url: {self.url}" 355s ) 355s 355s elif 500 <= self.status_code < 600: 355s http_error_msg = ( 355s f"{self.status_code} Server Error: {reason} for url: {self.url}" 355s ) 355s 355s if http_error_msg: 355s > raise HTTPError(http_error_msg, response=self) 355s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/30ecb48d-c953-4f5c-8a5b-a277f8c858fb 355s 355s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 355s ------------------------------ Captured log call ------------------------------- 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.570000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 355s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmponksflhm/runtime/kernel-23fadb33-1297-454b-9b56-b2215d64cdfb.json'] 355s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36575 355s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34101 355s INFO NotebookApp:kernelmanager.py:179 Kernel started: 23fadb33-1297-454b-9b56-b2215d64cdfb, name: python3 355s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmponksflhm/notebooks/foo'} 355s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 570889af-8606-47f3-95d5-4984ecfa70d0 355s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 570889af-8606-47f3-95d5-4984ecfa70d0 355s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/30ecb48d-c953-4f5c-8a5b-a277f8c858fb (127.0.0.1) 22.260000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.360000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.460000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 23fadb33-1297-454b-9b56-b2215d64cdfb 355s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 23fadb33-1297-454b-9b56-b2215d64cdfb 355s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 355s Traceback (most recent call last): 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 355s out = await method(self, *args, **kwargs) 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 355s await self._async_finish_shutdown(restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 355s await asyncio.wait_for( 355s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 355s ) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 355s async with timeouts.timeout(timeout): 355s ~~~~~~~~~~~~~~~~^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 355s raise RuntimeError("Timeout should be used inside a task") 355s RuntimeError: Timeout should be used inside a task 355s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/30ecb48d-c953-4f5c-8a5b-a277f8c858fb (127.0.0.1) 355s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/30ecb48d-c953-4f5c-8a5b-a277f8c858fb', version='HTTP/1.1', remote_ip='127.0.0.1') 355s Traceback (most recent call last): 355s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 355s result = await result 355s ^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 355s yielded = self.gen.throw(exc) 355s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 355s yield maybe_future(sm.delete_session(session_id)) 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 355s value = future.result() 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 355s yielded = self.gen.send(value) 355s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 355s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 355s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 355s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 355s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 355s return _runner_map[name].run(inner) 355s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 355s return fut.result(None) 355s ~~~~~~~~~~^^^^^^ 355s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 355s return self.__get_result() 355s ~~~~~~~~~~~~~~~~~^^ 355s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 355s raise self._exception 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 355s result = coro.send(None) 355s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 355s stopper = ensure_async(km.shutdown_kernel(now, restart)) 355s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 355s return _runner_map[name].run(inner) 355s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 355s return fut.result(None) 355s ~~~~~~~~~~^^^^^^ 355s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 355s return self.__get_result() 355s ~~~~~~~~~~~~~~~~~^^ 355s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 355s raise self._exception 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 355s result = coro.send(None) 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 355s raise e 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 355s out = await method(self, *args, **kwargs) 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 355s await self._async_finish_shutdown(restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 355s await asyncio.wait_for( 355s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 355s ) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 355s async with timeouts.timeout(timeout): 355s ~~~~~~~~~~~~~~~~^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 355s raise RuntimeError("Timeout should be used inside a task") 355s RuntimeError: Timeout should be used inside a task 355s WARNING NotebookApp:handlers.py:612 Unhandled error 355s ERROR NotebookApp:log.py:55 { 355s "Host": "localhost:12341", 355s "Accept": "*/*", 355s "User-Agent": "python-requests/2.32.5" 355s } 355s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/30ecb48d-c953-4f5c-8a5b-a277f8c858fb (127.0.0.1) 11.740000ms referer=None 355s --------------------------- Captured stderr teardown --------------------------- 355s Traceback (most recent call last): 355s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 355s return _run_code(code, main_globals, None, 355s "__main__", mod_spec) 355s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 355s exec(code, run_globals) 355s ~~~~^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 355s from pathlib import Path 355s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 355s class PureWindowsPath(PurePath): 355s ...<7 lines>... 355s __slots__ = () 355s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 355s import ntpath 355s File "/usr/lib/python3.14/ntpath.py", line 45, in 355s from _winapi import ( 355s ...<2 lines>... 355s LCMAP_LOWERCASE as _LCMAP_LOWERCASE) 355s File "", line 1368, in _find_and_load 355s File "", line 421, in __enter__ 355s File "", line 311, in acquire 355s File "", line 162, in __enter__ 355s KeyboardInterrupt 355s ---------------------------- Captured log teardown ----------------------------- 355s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 355s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 23fadb33-1297-454b-9b56-b2215d64cdfb 355s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 355s _______________________ AsyncSessionAPITest.test_create ________________________ 355s 355s @self.addCleanup 355s def cleanup_sessions(): 355s for session in self.sess_api.list().json(): 355s > self.sess_api.delete(session['id']) 355s 355s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 355s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 355s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 355s return self._req('DELETE', id) 355s ^^^^^^^^^^^^^^^^^^^^^^^ 355s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 355s response.raise_for_status() 355s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 355s 355s self = 355s 355s def raise_for_status(self): 355s """Raises :class:`HTTPError`, if one occurred.""" 355s 355s http_error_msg = "" 355s if isinstance(self.reason, bytes): 355s # We attempt to decode utf-8 first because some servers 355s # choose to localize their reason strings. If the string 355s # isn't utf-8, we fall back to iso-8859-1 for all other 355s # encodings. (See PR #3538) 355s try: 355s reason = self.reason.decode("utf-8") 355s except UnicodeDecodeError: 355s reason = self.reason.decode("iso-8859-1") 355s else: 355s reason = self.reason 355s 355s if 400 <= self.status_code < 500: 355s http_error_msg = ( 355s f"{self.status_code} Client Error: {reason} for url: {self.url}" 355s ) 355s 355s elif 500 <= self.status_code < 600: 355s http_error_msg = ( 355s f"{self.status_code} Server Error: {reason} for url: {self.url}" 355s ) 355s 355s if http_error_msg: 355s > raise HTTPError(http_error_msg, response=self) 355s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/87966b5c-2ffb-41d1-abb0-1054a871f56b 355s 355s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 355s ------------------------------ Captured log setup ------------------------------ 355s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmptyd3c86n/config', '/tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmptyd3c86n/etc/jupyter'] for config files 355s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmptyd3c86n/etc/jupyter 355s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 355s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 355s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmptyd3c86n/config 355s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmptyd3c86n/etc/jupyter 355s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 355s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.2Ulezp/autopkgtest_tmp/home/.local/etc/jupyter 355s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmptyd3c86n/config 355s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmptyd3c86n/notebooks 355s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 355s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 355s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 355s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 355s WARNING NotebookApp:handlers.py:612 Forbidden 355s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (127.0.0.1) 1.090000ms referer=None 355s ------------------------------ Captured log call ------------------------------- 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.760000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 355s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptyd3c86n/runtime/kernel-4487750d-278b-467c-a808-26b2bb2a2498.json'] 355s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53197 355s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53307 355s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4487750d-278b-467c-a808-26b2bb2a2498, name: python3 355s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmptyd3c86n/notebooks/foo'} 355s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 20.130000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.500000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/87966b5c-2ffb-41d1-abb0-1054a871f56b (127.0.0.1) 1.520000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.400000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4487750d-278b-467c-a808-26b2bb2a2498 355s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4487750d-278b-467c-a808-26b2bb2a2498 355s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 355s Traceback (most recent call last): 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 355s out = await method(self, *args, **kwargs) 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 355s await self._async_finish_shutdown(restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 355s await asyncio.wait_for( 355s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 355s ) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 355s async with timeouts.timeout(timeout): 355s ~~~~~~~~~~~~~~~~^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 355s raise RuntimeError("Timeout should be used inside a task") 355s RuntimeError: Timeout should be used inside a task 355s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 355s Traceback (most recent call last): 355s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 355s await kernel_awaitable 355s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 355s result = await obj 355s ^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 355s raise e 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 355s out = await method(self, *args, **kwargs) 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 355s await self._async_finish_shutdown(restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 355s await asyncio.wait_for( 355s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 355s ) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 355s async with timeouts.timeout(timeout): 355s ~~~~~~~~~~~~~~~~^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 355s raise RuntimeError("Timeout should be used inside a task") 355s RuntimeError: Timeout should be used inside a task 355s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/87966b5c-2ffb-41d1-abb0-1054a871f56b (127.0.0.1) 355s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/87966b5c-2ffb-41d1-abb0-1054a871f56b', version='HTTP/1.1', remote_ip='127.0.0.1') 355s Traceback (most recent call last): 355s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 355s result = await result 355s ^^^^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 355s future.result() 355s ~~~~~~~~~~~~~^^ 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 355s yielded = self.gen.throw(exc) 355s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 355s yield maybe_future(sm.delete_session(session_id)) 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 355s value = future.result() 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 355s yielded = self.gen.throw(exc) 355s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 355s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 355s value = future.result() 355s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 355s raise self._exception.with_traceback(self._exception_tb) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 355s result = coro.send(None) 355s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 355s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 355s raise km.ready.exception() # type: ignore[misc] 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 355s await kernel_awaitable 355s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 355s result = await obj 355s ^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 355s raise e 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 355s out = await method(self, *args, **kwargs) 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 355s await self._async_finish_shutdown(restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 355s await asyncio.wait_for( 355s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 355s ) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 355s async with timeouts.timeout(timeout): 355s ~~~~~~~~~~~~~~~~^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 355s raise RuntimeError("Timeout should be used inside a task") 355s RuntimeError: Timeout should be used inside a task 355s WARNING NotebookApp:handlers.py:612 Unhandled error 355s ERROR NotebookApp:log.py:55 { 355s "Host": "localhost:12341", 355s "Accept": "*/*", 355s "User-Agent": "python-requests/2.32.5" 355s } 355s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/87966b5c-2ffb-41d1-abb0-1054a871f56b (127.0.0.1) 9.560000ms referer=None 355s --------------------------- Captured stderr teardown --------------------------- 355s Traceback (most recent call last): 355s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 355s return _run_code(code, main_globals, None, 355s "__main__", mod_spec) 355s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 355s exec(code, run_globals) 355s ~~~~^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 355s from ipykernel import kernelapp as app 355s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 355s from .connect import * # noqa: F403 355s ^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 355s import json 355s File "/usr/lib/python3.14/json/__init__.py", line 106, in 355s from .decoder import JSONDecoder, JSONDecodeError 355s File "/usr/lib/python3.14/json/decoder.py", line 5, in 355s from json import scanner 355s File "", line 1371, in _find_and_load 355s File "", line 1342, in _find_and_load_unlocked 355s File "", line 938, in _load_unlocked 355s File "", line 755, in exec_module 355s File "", line 851, in get_code 355s File "", line 950, in get_data 355s KeyboardInterrupt 355s _______________ AsyncSessionAPITest.test_create_console_session ________________ 355s 355s @self.addCleanup 355s def cleanup_sessions(): 355s for session in self.sess_api.list().json(): 355s > self.sess_api.delete(session['id']) 355s 355s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 355s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 355s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 355s return self._req('DELETE', id) 355s ^^^^^^^^^^^^^^^^^^^^^^^ 355s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 355s response.raise_for_status() 355s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 355s 355s self = 355s 355s def raise_for_status(self): 355s """Raises :class:`HTTPError`, if one occurred.""" 355s 355s http_error_msg = "" 355s if isinstance(self.reason, bytes): 355s # We attempt to decode utf-8 first because some servers 355s # choose to localize their reason strings. If the string 355s # isn't utf-8, we fall back to iso-8859-1 for all other 355s # encodings. (See PR #3538) 355s try: 355s reason = self.reason.decode("utf-8") 355s except UnicodeDecodeError: 355s reason = self.reason.decode("iso-8859-1") 355s else: 355s reason = self.reason 355s 355s if 400 <= self.status_code < 500: 355s http_error_msg = ( 355s f"{self.status_code} Client Error: {reason} for url: {self.url}" 355s ) 355s 355s elif 500 <= self.status_code < 600: 355s http_error_msg = ( 355s f"{self.status_code} Server Error: {reason} for url: {self.url}" 355s ) 355s 355s if http_error_msg: 355s > raise HTTPError(http_error_msg, response=self) 355s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d1550734-f9d3-4f65-8ab1-a8afcbe9983e 355s 355s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 355s ------------------------------ Captured log call ------------------------------- 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 355s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptyd3c86n/runtime/kernel-62ead94d-7285-49ed-99ef-4f140c65d56a.json'] 355s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36977 355s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47259 355s INFO NotebookApp:kernelmanager.py:179 Kernel started: 62ead94d-7285-49ed-99ef-4f140c65d56a, name: python3 355s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmptyd3c86n/notebooks/foo'} 355s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 18.970000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 2.370000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4487750d-278b-467c-a808-26b2bb2a2498 355s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4487750d-278b-467c-a808-26b2bb2a2498 355s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/87966b5c-2ffb-41d1-abb0-1054a871f56b (127.0.0.1) 1.880000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 62ead94d-7285-49ed-99ef-4f140c65d56a 355s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 62ead94d-7285-49ed-99ef-4f140c65d56a 355s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 355s Traceback (most recent call last): 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 355s out = await method(self, *args, **kwargs) 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 355s await self._async_finish_shutdown(restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 355s await asyncio.wait_for( 355s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 355s ) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 355s async with timeouts.timeout(timeout): 355s ~~~~~~~~~~~~~~~~^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 355s raise RuntimeError("Timeout should be used inside a task") 355s RuntimeError: Timeout should be used inside a task 355s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 355s Traceback (most recent call last): 355s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 355s await kernel_awaitable 355s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 355s result = await obj 355s ^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 355s raise e 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 355s out = await method(self, *args, **kwargs) 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 355s await self._async_finish_shutdown(restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 355s await asyncio.wait_for( 355s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 355s ) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 355s async with timeouts.timeout(timeout): 355s ~~~~~~~~~~~~~~~~^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 355s raise RuntimeError("Timeout should be used inside a task") 355s RuntimeError: Timeout should be used inside a task 355s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d1550734-f9d3-4f65-8ab1-a8afcbe9983e (127.0.0.1) 355s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d1550734-f9d3-4f65-8ab1-a8afcbe9983e', version='HTTP/1.1', remote_ip='127.0.0.1') 355s Traceback (most recent call last): 355s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 355s result = await result 355s ^^^^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 355s future.result() 355s ~~~~~~~~~~~~~^^ 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 355s yielded = self.gen.throw(exc) 355s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 355s yield maybe_future(sm.delete_session(session_id)) 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 355s value = future.result() 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 355s yielded = self.gen.throw(exc) 355s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 355s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 355s value = future.result() 355s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 355s raise self._exception.with_traceback(self._exception_tb) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 355s result = coro.send(None) 355s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 355s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 355s raise km.ready.exception() # type: ignore[misc] 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 355s await kernel_awaitable 355s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 355s result = await obj 355s ^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 355s raise e 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 355s out = await method(self, *args, **kwargs) 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 355s await self._async_finish_shutdown(restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 355s await asyncio.wait_for( 355s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 355s ) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 355s async with timeouts.timeout(timeout): 355s ~~~~~~~~~~~~~~~~^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 355s raise RuntimeError("Timeout should be used inside a task") 355s RuntimeError: Timeout should be used inside a task 355s WARNING NotebookApp:handlers.py:612 Unhandled error 355s ERROR NotebookApp:log.py:55 { 355s "Host": "localhost:12341", 355s "Accept": "*/*", 355s "User-Agent": "python-requests/2.32.5" 355s } 355s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/d1550734-f9d3-4f65-8ab1-a8afcbe9983e (127.0.0.1) 9.340000ms referer=None 355s --------------------------- Captured stderr teardown --------------------------- 355s Traceback (most recent call last): 355s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 355s return _run_code(code, main_globals, None, 355s "__main__", mod_spec) 355s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 355s exec(code, run_globals) 355s ~~~~^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 355s from pathlib import Path 355s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 355s from glob import _StringGlobber, _no_recurse_symlinks 355s File "/usr/lib/python3.14/glob.py", line 5, in 355s import re 355s File "/usr/lib/python3.14/re/__init__.py", line 381, in 355s import copyreg 355s File "", line 1371, in _find_and_load 355s File "", line 1333, in _find_and_load_unlocked 355s File "", line 1267, in _find_spec 355s File "", line 1292, in find_spec 355s File "", line 1264, in _get_spec 355s File "", line 1233, in _path_importer_cache 355s KeyboardInterrupt 355s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 355s 355s @self.addCleanup 355s def cleanup_sessions(): 355s for session in self.sess_api.list().json(): 355s > self.sess_api.delete(session['id']) 355s 355s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 355s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 355s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 355s return self._req('DELETE', id) 355s ^^^^^^^^^^^^^^^^^^^^^^^ 355s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 355s response.raise_for_status() 355s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 355s 355s self = 355s 355s def raise_for_status(self): 355s """Raises :class:`HTTPError`, if one occurred.""" 355s 355s http_error_msg = "" 355s if isinstance(self.reason, bytes): 355s # We attempt to decode utf-8 first because some servers 355s # choose to localize their reason strings. If the string 355s # isn't utf-8, we fall back to iso-8859-1 for all other 355s # encodings. (See PR #3538) 355s try: 355s reason = self.reason.decode("utf-8") 355s except UnicodeDecodeError: 355s reason = self.reason.decode("iso-8859-1") 355s else: 355s reason = self.reason 355s 355s if 400 <= self.status_code < 500: 355s http_error_msg = ( 355s f"{self.status_code} Client Error: {reason} for url: {self.url}" 355s ) 355s 355s elif 500 <= self.status_code < 600: 355s http_error_msg = ( 355s f"{self.status_code} Server Error: {reason} for url: {self.url}" 355s ) 355s 355s if http_error_msg: 355s > raise HTTPError(http_error_msg, response=self) 355s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d52d961e-1b9a-4ca2-a5e1-eef57787a9ea 355s 355s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 355s ------------------------------ Captured log call ------------------------------- 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 355s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 355s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptyd3c86n/runtime/kernel-d3bd8f64-49df-4b1e-916a-24dc5060521f.json'] 355s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47283 355s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36867 355s INFO NotebookApp:kernelmanager.py:179 Kernel started: d3bd8f64-49df-4b1e-916a-24dc5060521f, name: python3 355s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmptyd3c86n/notebooks/foo'} 355s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 19.130000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.560000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 62ead94d-7285-49ed-99ef-4f140c65d56a 355s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 62ead94d-7285-49ed-99ef-4f140c65d56a 355s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d1550734-f9d3-4f65-8ab1-a8afcbe9983e (127.0.0.1) 1.780000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d3bd8f64-49df-4b1e-916a-24dc5060521f 355s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d3bd8f64-49df-4b1e-916a-24dc5060521f 355s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 355s Traceback (most recent call last): 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 355s out = await method(self, *args, **kwargs) 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 355s await self._async_finish_shutdown(restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 355s await asyncio.wait_for( 355s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 355s ) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 355s async with timeouts.timeout(timeout): 355s ~~~~~~~~~~~~~~~~^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 355s raise RuntimeError("Timeout should be used inside a task") 355s RuntimeError: Timeout should be used inside a task 355s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 355s Traceback (most recent call last): 355s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 355s await kernel_awaitable 355s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 355s result = await obj 355s ^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 355s raise e 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 355s out = await method(self, *args, **kwargs) 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 355s await self._async_finish_shutdown(restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 355s await asyncio.wait_for( 355s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 355s ) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 355s async with timeouts.timeout(timeout): 355s ~~~~~~~~~~~~~~~~^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 355s raise RuntimeError("Timeout should be used inside a task") 355s RuntimeError: Timeout should be used inside a task 355s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d52d961e-1b9a-4ca2-a5e1-eef57787a9ea (127.0.0.1) 355s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d52d961e-1b9a-4ca2-a5e1-eef57787a9ea', version='HTTP/1.1', remote_ip='127.0.0.1') 355s Traceback (most recent call last): 355s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 355s result = await result 355s ^^^^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 355s future.result() 355s ~~~~~~~~~~~~~^^ 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 355s yielded = self.gen.throw(exc) 355s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 355s yield maybe_future(sm.delete_session(session_id)) 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 355s value = future.result() 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 355s yielded = self.gen.throw(exc) 355s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 355s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 355s value = future.result() 355s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 355s raise self._exception.with_traceback(self._exception_tb) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 355s result = coro.send(None) 355s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 355s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 355s raise km.ready.exception() # type: ignore[misc] 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 355s await kernel_awaitable 355s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 355s result = await obj 355s ^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 355s raise e 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 355s out = await method(self, *args, **kwargs) 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 355s await self._async_finish_shutdown(restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 355s await asyncio.wait_for( 355s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 355s ) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 355s async with timeouts.timeout(timeout): 355s ~~~~~~~~~~~~~~~~^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 355s raise RuntimeError("Timeout should be used inside a task") 355s RuntimeError: Timeout should be used inside a task 355s WARNING NotebookApp:handlers.py:612 Unhandled error 355s ERROR NotebookApp:log.py:55 { 355s "Host": "localhost:12341", 355s "Accept": "*/*", 355s "User-Agent": "python-requests/2.32.5" 355s } 355s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/d52d961e-1b9a-4ca2-a5e1-eef57787a9ea (127.0.0.1) 9.300000ms referer=None 355s --------------------------- Captured stderr teardown --------------------------- 355s Traceback (most recent call last): 355s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 355s return _run_code(code, main_globals, None, 355s "__main__", mod_spec) 355s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 355s exec(code, run_globals) 355s ~~~~^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 355s from pathlib import Path 355s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 355s from glob import _StringGlobber, _no_recurse_symlinks 355s File "/usr/lib/python3.14/glob.py", line 6, in 355s import fnmatch 355s File "", line 1371, in _find_and_load 355s File "", line 1333, in _find_and_load_unlocked 355s File "", line 1267, in _find_spec 355s File "", line 1292, in find_spec 355s File "", line 1266, in _get_spec 355s File "", line 1365, in find_spec 355s File "", line 152, in _path_stat 355s KeyboardInterrupt 355s _________________ AsyncSessionAPITest.test_create_file_session _________________ 355s 355s @self.addCleanup 355s def cleanup_sessions(): 355s for session in self.sess_api.list().json(): 355s > self.sess_api.delete(session['id']) 355s 355s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 355s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 355s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 355s return self._req('DELETE', id) 355s ^^^^^^^^^^^^^^^^^^^^^^^ 355s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 355s response.raise_for_status() 355s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 355s 355s self = 355s 355s def raise_for_status(self): 355s """Raises :class:`HTTPError`, if one occurred.""" 355s 355s http_error_msg = "" 355s if isinstance(self.reason, bytes): 355s # We attempt to decode utf-8 first because some servers 355s # choose to localize their reason strings. If the string 355s # isn't utf-8, we fall back to iso-8859-1 for all other 355s # encodings. (See PR #3538) 355s try: 355s reason = self.reason.decode("utf-8") 355s except UnicodeDecodeError: 355s reason = self.reason.decode("iso-8859-1") 355s else: 355s reason = self.reason 355s 355s if 400 <= self.status_code < 500: 355s http_error_msg = ( 355s f"{self.status_code} Client Error: {reason} for url: {self.url}" 355s ) 355s 355s elif 500 <= self.status_code < 600: 355s http_error_msg = ( 355s f"{self.status_code} Server Error: {reason} for url: {self.url}" 355s ) 355s 355s if http_error_msg: 355s > raise HTTPError(http_error_msg, response=self) 355s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/be51e148-28fe-4da7-bae2-b755b895a3f3 355s 355s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 355s ------------------------------ Captured log call ------------------------------- 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 355s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptyd3c86n/runtime/kernel-a0e10f17-5eda-4bbf-b690-1cc3b80dc628.json'] 355s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57351 355s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36779 355s INFO NotebookApp:kernelmanager.py:179 Kernel started: a0e10f17-5eda-4bbf-b690-1cc3b80dc628, name: python3 355s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmptyd3c86n/notebooks/foo'} 355s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 18.830000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.480000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d3bd8f64-49df-4b1e-916a-24dc5060521f 355s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d3bd8f64-49df-4b1e-916a-24dc5060521f 355s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d52d961e-1b9a-4ca2-a5e1-eef57787a9ea (127.0.0.1) 1.720000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a0e10f17-5eda-4bbf-b690-1cc3b80dc628 355s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a0e10f17-5eda-4bbf-b690-1cc3b80dc628 355s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 355s Traceback (most recent call last): 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 355s out = await method(self, *args, **kwargs) 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 355s await self._async_finish_shutdown(restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 355s await asyncio.wait_for( 355s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 355s ) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 355s async with timeouts.timeout(timeout): 355s ~~~~~~~~~~~~~~~~^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 355s raise RuntimeError("Timeout should be used inside a task") 355s RuntimeError: Timeout should be used inside a task 355s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 355s Traceback (most recent call last): 355s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 355s await kernel_awaitable 355s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 355s result = await obj 355s ^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 355s raise e 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 355s out = await method(self, *args, **kwargs) 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 355s await self._async_finish_shutdown(restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 355s await asyncio.wait_for( 355s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 355s ) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 355s async with timeouts.timeout(timeout): 355s ~~~~~~~~~~~~~~~~^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 355s raise RuntimeError("Timeout should be used inside a task") 355s RuntimeError: Timeout should be used inside a task 355s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/be51e148-28fe-4da7-bae2-b755b895a3f3 (127.0.0.1) 355s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/be51e148-28fe-4da7-bae2-b755b895a3f3', version='HTTP/1.1', remote_ip='127.0.0.1') 355s Traceback (most recent call last): 355s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 355s result = await result 355s ^^^^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 355s future.result() 355s ~~~~~~~~~~~~~^^ 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 355s yielded = self.gen.throw(exc) 355s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 355s yield maybe_future(sm.delete_session(session_id)) 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 355s value = future.result() 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 355s yielded = self.gen.throw(exc) 355s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 355s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 355s value = future.result() 355s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 355s raise self._exception.with_traceback(self._exception_tb) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 355s result = coro.send(None) 355s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 355s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 355s raise km.ready.exception() # type: ignore[misc] 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 355s await kernel_awaitable 355s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 355s result = await obj 355s ^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 355s raise e 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 355s out = await method(self, *args, **kwargs) 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 355s await self._async_finish_shutdown(restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 355s await asyncio.wait_for( 355s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 355s ) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 355s async with timeouts.timeout(timeout): 355s ~~~~~~~~~~~~~~~~^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 355s raise RuntimeError("Timeout should be used inside a task") 355s RuntimeError: Timeout should be used inside a task 355s WARNING NotebookApp:handlers.py:612 Unhandled error 355s ERROR NotebookApp:log.py:55 { 355s "Host": "localhost:12341", 355s "Accept": "*/*", 355s "User-Agent": "python-requests/2.32.5" 355s } 355s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/be51e148-28fe-4da7-bae2-b755b895a3f3 (127.0.0.1) 9.220000ms referer=None 355s --------------------------- Captured stderr teardown --------------------------- 355s Traceback (most recent call last): 355s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 355s return _run_code(code, main_globals, None, 355s "__main__", mod_spec) 355s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 355s exec(code, run_globals) 355s ~~~~^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 355s from pathlib import Path 355s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 355s from glob import _StringGlobber, _no_recurse_symlinks 355s File "/usr/lib/python3.14/glob.py", line 6, in 355s import fnmatch 355s File "/usr/lib/python3.14/fnmatch.py", line 42, in 355s @functools.lru_cache(maxsize=32768, typed=True) 355s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3.14/functools.py", line 596, in decorating_function 355s return update_wrapper(wrapper, user_function) 355s File "/usr/lib/python3.14/functools.py", line 58, in update_wrapper 355s getattr(wrapper, attr).update(getattr(wrapped, attr, {})) 355s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s KeyboardInterrupt 355s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 355s 355s self = 355s 355s def test_create_with_kernel_id(self): 355s # create a new kernel 355s r = self.request('POST', 'api/kernels') 355s r.raise_for_status() 355s kernel = r.json() 355s 355s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 355s self.assertEqual(resp.status_code, 201) 355s newsession = resp.json() 355s self.assertIn('id', newsession) 355s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 355s self.assertEqual(newsession['kernel']['id'], kernel['id']) 355s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 355s 355s sessions = self.sess_api.list().json() 355s > self.assertEqual(sessions, [newsession]) 355s E AssertionError: Lists differ: [{'id': 'be51e148-28fe-4da7-bae2-b755b895a3f3', 'p[553 chars]ne}}] != [{'id': 'e4e68038-91b8-4497-8946-9ce790eb7863', 'p[279 chars]ne}}] 355s E 355s E First differing element 0: 355s E {'id': 'be51e148-28fe-4da7-bae2-b755b895a3f3', 'p[218 chars]: 0}} 355s E {'id': 'e4e68038-91b8-4497-8946-9ce790eb7863', 'p[278 chars]one}} 355s E 355s E First list contains 1 additional elements. 355s E First extra element 1: 355s E {'id': 'e4e68038-91b8-4497-8946-9ce790eb7863', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'c4fe2f30-c682-4204-bf2b-efbf57c7eacd', 'name': 'python3', 'last_activity': '2026-01-22T18:29:14.494173Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 355s E 355s E Diff is 830 characters long. Set self.maxDiff to None to see it. 355s 355s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 355s ------------------------------ Captured log call ------------------------------- 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 355s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptyd3c86n/runtime/kernel-c4fe2f30-c682-4204-bf2b-efbf57c7eacd.json'] 355s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53025 355s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41303 355s INFO NotebookApp:kernelmanager.py:179 Kernel started: c4fe2f30-c682-4204-bf2b-efbf57c7eacd, name: python3 355s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 355s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.610000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.700000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.570000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.480000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a0e10f17-5eda-4bbf-b690-1cc3b80dc628 355s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a0e10f17-5eda-4bbf-b690-1cc3b80dc628 355s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/be51e148-28fe-4da7-bae2-b755b895a3f3 (127.0.0.1) 1.800000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c4fe2f30-c682-4204-bf2b-efbf57c7eacd 355s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c4fe2f30-c682-4204-bf2b-efbf57c7eacd 355s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 355s Traceback (most recent call last): 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 355s out = await method(self, *args, **kwargs) 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 355s await self._async_finish_shutdown(restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 355s await asyncio.wait_for( 355s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 355s ) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 355s async with timeouts.timeout(timeout): 355s ~~~~~~~~~~~~~~~~^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 355s raise RuntimeError("Timeout should be used inside a task") 355s RuntimeError: Timeout should be used inside a task 355s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 355s Traceback (most recent call last): 355s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 355s await kernel_awaitable 355s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 355s result = await obj 355s ^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 355s raise e 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 355s out = await method(self, *args, **kwargs) 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 355s await self._async_finish_shutdown(restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 355s await asyncio.wait_for( 355s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 355s ) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 355s async with timeouts.timeout(timeout): 355s ~~~~~~~~~~~~~~~~^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 355s raise RuntimeError("Timeout should be used inside a task") 355s RuntimeError: Timeout should be used inside a task 355s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e4e68038-91b8-4497-8946-9ce790eb7863 (127.0.0.1) 355s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e4e68038-91b8-4497-8946-9ce790eb7863', version='HTTP/1.1', remote_ip='127.0.0.1') 355s Traceback (most recent call last): 355s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 355s result = await result 355s ^^^^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 355s future.result() 355s ~~~~~~~~~~~~~^^ 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 355s yielded = self.gen.throw(exc) 355s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 355s yield maybe_future(sm.delete_session(session_id)) 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 355s value = future.result() 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 355s yielded = self.gen.throw(exc) 355s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 355s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 355s value = future.result() 355s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 355s raise self._exception.with_traceback(self._exception_tb) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 355s result = coro.send(None) 355s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 355s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 355s raise km.ready.exception() # type: ignore[misc] 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 355s await kernel_awaitable 355s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 355s result = await obj 355s ^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 355s raise e 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 355s out = await method(self, *args, **kwargs) 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 355s await self._async_finish_shutdown(restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 355s await asyncio.wait_for( 355s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 355s ) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 355s async with timeouts.timeout(timeout): 355s ~~~~~~~~~~~~~~~~^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 355s raise RuntimeError("Timeout should be used inside a task") 355s RuntimeError: Timeout should be used inside a task 355s WARNING NotebookApp:handlers.py:612 Unhandled error 355s ERROR NotebookApp:log.py:55 { 355s "Host": "localhost:12341", 355s "Accept": "*/*", 355s "User-Agent": "python-requests/2.32.5" 355s } 355s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/e4e68038-91b8-4497-8946-9ce790eb7863 (127.0.0.1) 9.260000ms referer=None 355s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 355s 355s @self.addCleanup 355s def cleanup_sessions(): 355s for session in self.sess_api.list().json(): 355s > self.sess_api.delete(session['id']) 355s 355s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 355s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 355s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 355s return self._req('DELETE', id) 355s ^^^^^^^^^^^^^^^^^^^^^^^ 355s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 355s response.raise_for_status() 355s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 355s 355s self = 355s 355s def raise_for_status(self): 355s """Raises :class:`HTTPError`, if one occurred.""" 355s 355s http_error_msg = "" 355s if isinstance(self.reason, bytes): 355s # We attempt to decode utf-8 first because some servers 355s # choose to localize their reason strings. If the string 355s # isn't utf-8, we fall back to iso-8859-1 for all other 355s # encodings. (See PR #3538) 355s try: 355s reason = self.reason.decode("utf-8") 355s except UnicodeDecodeError: 355s reason = self.reason.decode("iso-8859-1") 355s else: 355s reason = self.reason 355s 355s if 400 <= self.status_code < 500: 355s http_error_msg = ( 355s f"{self.status_code} Client Error: {reason} for url: {self.url}" 355s ) 355s 355s elif 500 <= self.status_code < 600: 355s http_error_msg = ( 355s f"{self.status_code} Server Error: {reason} for url: {self.url}" 355s ) 355s 355s if http_error_msg: 355s > raise HTTPError(http_error_msg, response=self) 355s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e4e68038-91b8-4497-8946-9ce790eb7863 355s 355s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 355s ---------------------------- Captured stderr setup ----------------------------- 355s Traceback (most recent call last): 355s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 355s return _run_code(code, main_globals, None, 355s "__main__", mod_spec) 355s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 355s exec(code, run_globals) 355s ~~~~^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 355s from ipykernel import kernelapp as app 355s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 355s from .connect import * # noqa: F403 355s ^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 355s from subprocess import PIPE, Popen 355s File "/usr/lib/python3.14/subprocess.py", line 49, in 355s import signal 355s File "/usr/lib/python3.14/signal.py", line 7, in 355s _IntEnum._convert_( 355s ~~~~~~~~~~~~~~~~~~^ 355s 'Signals', __name__, 355s ^^^^^^^^^^^^^^^^^^^^ 355s ...<2 lines>... 355s and (name.startswith('SIG') and not name.startswith('SIG_')) 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s or name.startswith('CTRL_')) 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3.14/enum.py", line 909, in _convert_ 355s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 355s File "/usr/lib/python3.14/enum.py", line 1895, in convert_class 355s setattr(enum_class, name, member) 355s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3.14/enum.py", line 810, in __setattr__ 355s def __setattr__(cls, name, value): 355s 355s KeyboardInterrupt 355s ------------------------------ Captured log call ------------------------------- 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.600000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 355s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptyd3c86n/runtime/kernel-ec53a573-65b8-4596-a372-d866ed3dccca.json'] 355s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33321 355s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55609 355s INFO NotebookApp:kernelmanager.py:179 Kernel started: ec53a573-65b8-4596-a372-d866ed3dccca, name: python3 355s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 355s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (127.0.0.1) 18.340000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c4fe2f30-c682-4204-bf2b-efbf57c7eacd 355s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c4fe2f30-c682-4204-bf2b-efbf57c7eacd 355s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/e4e68038-91b8-4497-8946-9ce790eb7863 (127.0.0.1) 2.120000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.350000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.390000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ec53a573-65b8-4596-a372-d866ed3dccca 355s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ec53a573-65b8-4596-a372-d866ed3dccca 355s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 355s Traceback (most recent call last): 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 355s out = await method(self, *args, **kwargs) 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 355s await self._async_finish_shutdown(restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 355s await asyncio.wait_for( 355s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 355s ) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 355s async with timeouts.timeout(timeout): 355s ~~~~~~~~~~~~~~~~^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 355s raise RuntimeError("Timeout should be used inside a task") 355s RuntimeError: Timeout should be used inside a task 355s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 355s Traceback (most recent call last): 355s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 355s await kernel_awaitable 355s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 355s result = await obj 355s ^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 355s raise e 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 355s out = await method(self, *args, **kwargs) 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 355s await self._async_finish_shutdown(restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 355s await asyncio.wait_for( 355s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 355s ) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 355s async with timeouts.timeout(timeout): 355s ~~~~~~~~~~~~~~~~^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 355s raise RuntimeError("Timeout should be used inside a task") 355s RuntimeError: Timeout should be used inside a task 355s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e4e68038-91b8-4497-8946-9ce790eb7863 (127.0.0.1) 355s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e4e68038-91b8-4497-8946-9ce790eb7863', version='HTTP/1.1', remote_ip='127.0.0.1') 355s Traceback (most recent call last): 355s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 355s result = await result 355s ^^^^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 355s future.result() 355s ~~~~~~~~~~~~~^^ 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 355s yielded = self.gen.throw(exc) 355s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 355s yield maybe_future(sm.delete_session(session_id)) 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 355s value = future.result() 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 355s yielded = self.gen.throw(exc) 355s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 355s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 355s value = future.result() 355s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 355s raise self._exception.with_traceback(self._exception_tb) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 355s result = coro.send(None) 355s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 355s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 355s raise km.ready.exception() # type: ignore[misc] 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 355s await kernel_awaitable 355s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 355s result = await obj 355s ^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 355s raise e 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 355s out = await method(self, *args, **kwargs) 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 355s await self._async_finish_shutdown(restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 355s await asyncio.wait_for( 355s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 355s ) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 355s async with timeouts.timeout(timeout): 355s ~~~~~~~~~~~~~~~~^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 355s raise RuntimeError("Timeout should be used inside a task") 355s RuntimeError: Timeout should be used inside a task 355s WARNING NotebookApp:handlers.py:612 Unhandled error 355s ERROR NotebookApp:log.py:55 { 355s "Host": "localhost:12341", 355s "Accept": "*/*", 355s "User-Agent": "python-requests/2.32.5" 355s } 355s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/e4e68038-91b8-4497-8946-9ce790eb7863 (127.0.0.1) 9.150000ms referer=None 355s --------------------------- Captured stderr teardown --------------------------- 355s Traceback (most recent call last): 355s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 355s return _run_code(code, main_globals, None, 355s "__main__", mod_spec) 355s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 355s exec(code, run_globals) 355s ~~~~^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 355s from ipykernel import kernelapp as app 355s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 355s from .connect import * # noqa: F403 355s ^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 355s import json 355s File "", line 1371, in _find_and_load 355s File "", line 1342, in _find_and_load_unlocked 355s File "", line 938, in _load_unlocked 355s File "", line 755, in exec_module 355s File "", line 851, in get_code 355s File "", line 950, in get_data 355s KeyboardInterrupt 355s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 355s 355s @self.addCleanup 355s def cleanup_sessions(): 355s for session in self.sess_api.list().json(): 355s > self.sess_api.delete(session['id']) 355s 355s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 355s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 355s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 355s return self._req('DELETE', id) 355s ^^^^^^^^^^^^^^^^^^^^^^^ 355s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 355s response.raise_for_status() 355s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 355s 355s self = 355s 355s def raise_for_status(self): 355s """Raises :class:`HTTPError`, if one occurred.""" 355s 355s http_error_msg = "" 355s if isinstance(self.reason, bytes): 355s # We attempt to decode utf-8 first because some servers 355s # choose to localize their reason strings. If the string 355s # isn't utf-8, we fall back to iso-8859-1 for all other 355s # encodings. (See PR #3538) 355s try: 355s reason = self.reason.decode("utf-8") 355s except UnicodeDecodeError: 355s reason = self.reason.decode("iso-8859-1") 355s else: 355s reason = self.reason 355s 355s if 400 <= self.status_code < 500: 355s http_error_msg = ( 355s f"{self.status_code} Client Error: {reason} for url: {self.url}" 355s ) 355s 355s elif 500 <= self.status_code < 600: 355s http_error_msg = ( 355s f"{self.status_code} Server Error: {reason} for url: {self.url}" 355s ) 355s 355s if http_error_msg: 355s > raise HTTPError(http_error_msg, response=self) 355s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e4e68038-91b8-4497-8946-9ce790eb7863 355s 355s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 355s ------------------------------ Captured log call ------------------------------- 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (127.0.0.1) 1.640000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 355s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptyd3c86n/runtime/kernel-2978bf4b-c3b1-4afa-8cdf-f7493d31e183.json'] 355s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43871 355s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40697 355s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2978bf4b-c3b1-4afa-8cdf-f7493d31e183, name: python3 355s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmptyd3c86n/notebooks/foo'} 355s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ec53a573-65b8-4596-a372-d866ed3dccca 355s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ec53a573-65b8-4596-a372-d866ed3dccca 355s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/e4e68038-91b8-4497-8946-9ce790eb7863 (127.0.0.1) 19.600000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (127.0.0.1) 1.390000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (127.0.0.1) 1.420000ms 355s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 355s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2978bf4b-c3b1-4afa-8cdf-f7493d31e183 355s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2978bf4b-c3b1-4afa-8cdf-f7493d31e183 355s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 355s Traceback (most recent call last): 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 355s out = await method(self, *args, **kwargs) 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 355s await self._async_finish_shutdown(restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 355s await asyncio.wait_for( 355s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 355s ) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 355s async with timeouts.timeout(timeout): 355s ~~~~~~~~~~~~~~~~^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 355s raise RuntimeError("Timeout should be used inside a task") 355s RuntimeError: Timeout should be used inside a task 355s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 355s Traceback (most recent call last): 355s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 355s await kernel_awaitable 355s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 355s result = await obj 355s ^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 355s raise e 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 355s out = await method(self, *args, **kwargs) 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 355s await self._async_finish_shutdown(restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 355s await asyncio.wait_for( 355s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 355s ) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 355s async with timeouts.timeout(timeout): 355s ~~~~~~~~~~~~~~~~^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 355s raise RuntimeError("Timeout should be used inside a task") 355s RuntimeError: Timeout should be used inside a task 355s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e4e68038-91b8-4497-8946-9ce790eb7863 (127.0.0.1) 355s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e4e68038-91b8-4497-8946-9ce790eb7863', version='HTTP/1.1', remote_ip='127.0.0.1') 355s Traceback (most recent call last): 355s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 355s result = await result 355s ^^^^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 355s future.result() 355s ~~~~~~~~~~~~~^^ 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 355s yielded = self.gen.throw(exc) 355s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 355s yield maybe_future(sm.delete_session(session_id)) 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 355s value = future.result() 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 355s yielded = self.gen.throw(exc) 355s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 355s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 355s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 355s value = future.result() 355s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 355s raise self._exception.with_traceback(self._exception_tb) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 355s result = coro.send(None) 355s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 355s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 355s raise km.ready.exception() # type: ignore[misc] 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 355s await kernel_awaitable 355s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 355s result = await obj 355s ^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 355s raise e 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 355s out = await method(self, *args, **kwargs) 355s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 355s await self._async_finish_shutdown(restart=restart) 355s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 355s await asyncio.wait_for( 355s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 355s ) 355s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 355s async with timeouts.timeout(timeout): 355s ~~~~~~~~~~~~~~~~^^^^^^^^^ 355s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 355s raise RuntimeError("Timeout should be used inside a task") 355s RuntimeError: Timeout should be used inside a task 355s WARNING NotebookApp:handlers.py:612 Unhandled error 355s ERROR NotebookApp:log.py:55 { 355s "Host": "localhost:12341", 355s "Accept": "*/*", 355s "User-Agent": "python-requests/2.32.5" 355s } 355s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/e4e68038-91b8-4497-8946-9ce790eb7863 (127.0.0.1) 14.170000ms referer=None 355s --------------------------- Captured stderr teardown --------------------------- 355s Traceback (most recent call last): 355s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 355s return _run_code(code, main_globals, None, 355s "__main__", mod_spec) 355s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 355s exec(code, run_globals) 355s ~~~~^^^^^^^^^^^^^^^^^^^ 355s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 355s from pathlib import Path 355s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 355s from glob import _StringGlobber, _no_recurse_symlinks 355s File "/usr/lib/python3.14/glob.py", line 5, in 355s import re 355s File "/usr/lib/python3.14/re/__init__.py", line 381, in 355s import copyreg 355s File "", line 1371, in _find_and_load 355s File "", line 1342, in _find_and_load_unlocked 355s File "", line 924, in _load_unlocked 355s File "", line 822, in module_from_spec 355s File "", line 801, in _init_module_attrs 355s File "", line 641, in cached 355s File "", line 372, in _get_cached 355s File "", line 265, in cache_from_source 355s File "", line 137, in _path_split 355s KeyboardInterrupt 355s ---------------------------- Captured log teardown ----------------------------- 355s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 355s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d3bd8f64-49df-4b1e-916a-24dc5060521f 355s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c4fe2f30-c682-4204-bf2b-efbf57c7eacd 355s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a0e10f17-5eda-4bbf-b690-1cc3b80dc628 355s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 62ead94d-7285-49ed-99ef-4f140c65d56a 355s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4487750d-278b-467c-a808-26b2bb2a2498 355s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ec53a573-65b8-4596-a372-d866ed3dccca 355s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2978bf4b-c3b1-4afa-8cdf-f7493d31e183 355s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 355s =============================== warnings summary =============================== 355s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 355s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 355s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 355s return LooseVersion(v) >= LooseVersion(check) 355s 355s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 355s services/kernels/tests/test_kernels_api.py: 72 warnings 355s services/sessions/tests/test_sessions_api.py: 88 warnings 355s /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). 355s dt = unaware(*args, **kwargs) 355s 355s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 355s /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 355s pytestmark = pytest.mark.integration_tests 355s 355s services/kernels/tests/test_kernels_api.py: 6 warnings 355s services/sessions/tests/test_sessions_api.py: 6 warnings 355s /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 355s policy = events.get_event_loop_policy() 355s 355s services/kernels/tests/test_kernels_api.py: 22 warnings 355s services/sessions/tests/test_sessions_api.py: 17 warnings 355s /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 355s loop = events.get_event_loop_policy().get_event_loop() 355s 355s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 355s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 355s loop.make_current() 355s 355s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 355s =========================== short test summary info ============================ 355s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 355s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 355s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 355s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 355s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 355s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 355s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 355s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 355s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 355s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 355s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 355s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 355s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 355s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 355s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 355s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 355s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 355s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 355s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 355s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 355s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 355s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 355s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 355s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 355s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 355s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 355s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 355s ========== 23 failed, 307 deselected, 216 warnings, 4 errors in 7.03s ========== 356s *** END OF RUN 5: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 356s *** SOME TESTS FAILED/ERRORED EVERY RUN, ABORTING *** 356s autopkgtest [18:29:16]: test pytest: -----------------------] 361s autopkgtest [18:29:21]: test pytest: - - - - - - - - - - results - - - - - - - - - - 361s pytest FAIL non-zero exit status 1 365s autopkgtest [18:29:25]: @@@@@@@@@@@@@@@@@@@@ summary 365s pytest FAIL non-zero exit status 1